j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Wed May 13 01:00:33 2015 New Revision: 1336 URL: http://tracker.coreboot.org/trac/openbios/changeset/1336
Log: switch-arch: Add non-standard compiler prefix support
Allow a user-defined compiler prefix to be specified via the CROSS_COMPILE variable when running switch-arch, e.g.
CROSS_COMPILE=powerpc-linux- ./config/scripts/switch-arch ppc
Based upon an original patch by John Arbuckle programmingkidx@gmail.com.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/config/scripts/switch-arch
Modified: trunk/openbios-devel/config/scripts/switch-arch ============================================================================== --- trunk/openbios-devel/config/scripts/switch-arch Sun Apr 26 21:49:15 2015 (r1335) +++ trunk/openbios-devel/config/scripts/switch-arch Wed May 13 01:00:33 2015 (r1336) @@ -99,7 +99,13 @@
select_prefix() { - for TARGET in ${1}-unknown-linux-gnu- ${1}-linux-gnu- ${1}-linux- ${1}-elf- ${1}-eabi- + TARGETS="${1}-unknown-linux-gnu- ${1}-linux-gnu- ${1}-linux- ${1}-elf- ${1}-eabi-" + + if [ x"$CROSS_COMPILE" != "x" ]; then + TARGETS=$CROSS_COMPILE + fi + + for TARGET in $TARGETS do if type ${TARGET}gcc > /dev/null 2>&1 then