Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting plaform macro settings externally #2580

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion installplatform
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ VENDOR="${4}"
OS="${5}"
RPMRC_GNU="${6}"

for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2` ${RPM_CUSTOM_ARCH:+custom}; do
RPMRC_OPTFLAGS="`sed -n 's/^optflags: '$ARCH' //p' $RPMRC`"
RPMRC_OPTFLAGS="`echo $RPMRC_OPTFLAGS | sed -e 's, ,\ ,g'`"
case $RPMRC_OPTFLAGS in
Expand All @@ -30,6 +30,13 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
CANONCOLOR=
FILTER=cat
case "${ARCH}" in
custom)
ARCH=$RPM_CUSTOM_ARCH
ISANAME=$RPM_CUSTOM_ISANAME
ISABITS=$RPM_CUSTOM_ISABITS
CANONARCH=$RPM_CUSTOM_CANONARCH
CANONCOLOR=$RPM_CUSTOM_CANONCOLOR
;;
sparc64*)
ISANAME=sparc
ISABITS=64
Expand Down