[OpenBIOS] [PATCH] Add non-standard compiler prefix support
Programmingkid
programmingkidx at gmail.com
Wed Apr 29 15:57:27 CEST 2015
This patch gives OpenBIOS users the ability to specify
their own compiler prefix. It can be used by just adding
PREFIX=<your prefix> right before the switch-arch command.
Example: PREFIX=ppc-elf- ./switch-arch ppc
Signed-off-by: John Arbuckle <programmingkidx at gmail.com>
Index: config/scripts/switch-arch
===================================================================
--- config/scripts/switch-arch (revision 1335)
+++ config/scripts/switch-arch (working copy)
@@ -99,6 +99,13 @@
select_prefix()
{
+ # if the user specified the prefix like this: PREFIX=ppc-elf- ./switch-arch ppc
+ if [ $PREFIX ]
+ then
+ TARGET=$PREFIX
+ return
+ fi
+
for TARGET in ${1}-unknown-linux-gnu- ${1}-linux-gnu- ${1}-linux- ${1}-elf- ${1}-eabi-
do
if type ${TARGET}gcc > /dev/null 2>&1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.openfirmware.info/pipermail/openbios/attachments/20150429/21987bbf/attachment.html>
More information about the OpenBIOS
mailing list