[OpenBIOS] [PATCH] have switch-arch tell you compiler name

Programmingkid programmingkidx at gmail.com
Tue Nov 13 18:21:41 CET 2012


This patch adds a feature to switch-arch so it tells you the names of the compilers is it looking for. I had just installed a cross compiler and was confused as to why switch-arch wouldn't detect it. This feature helped me figure out that the problem was with the name of the compiler I was using.

signed-off-by: John Arbuckle <programmingkidx at gmail.com>

Index: /Users/misbah/Desktop/openbios/trunk/openbios-devel/config/scripts/switch-arch
===================================================================
--- /Users/misbah/Desktop/openbios/trunk/openbios-devel/config/scripts/switch-arch	(revision 1067)
+++ /Users/misbah/Desktop/openbios/trunk/openbios-devel/config/scripts/switch-arch	(working copy)
@@ -99,6 +99,7 @@
 {
     for TARGET in ${1}-linux-gnu- ${1}-linux- ${1}-elf- ${1}-eabi-
     do
+        echo "Trying compiler ${TARGET}gcc"
         if type ${TARGET}gcc > /dev/null 2>&1
         then
             return




More information about the OpenBIOS mailing list