]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BeagleBoardPkg: Check if the compiler arm-linux-gnueabi-gcc is present in the path
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 8 Nov 2011 18:30:26 +0000 (18:30 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 8 Nov 2011 18:30:26 +0000 (18:30 +0000)
'arm-linux-gnueabi-gcc' is the compiler attached to the ARMLINUXGCC toolchain.
This compiler is available in the PATH environment variable when the Linaro's
toolchain package is installed (Ubuntu distribution).

If if compiler is in the path then select the ARMLINUXGCC toolchain. This change
is to make easier to build UEFI on the BeagleBoard for new starters by hiding the
toolchain.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12673 6f19259b-4bc3-4df7-8a09-765794883524

BeagleBoardPkg/build.sh

index 3ce923e9ee5993b67b3729bbba855441f5409226..f2592b9c752e1e7eecebaae1c08eca6d3fa279de 100755 (executable)
@@ -58,8 +58,11 @@ case `uname` in
       TARGET_TOOLS=RVCT31CYGWIN 
       ;;
   Linux*)  
-      # Not tested
-      TARGET_TOOLS=ARMGCC 
+      if [[ ! -z `locate arm-linux-gnueabi-gcc` ]]; then
+        TARGET_TOOLS=ARMLINUXGCC
+      else 
+        TARGET_TOOLS=ARMGCC 
+      fi
       ;;
   Darwin*) 
       Major=$(uname -r | cut -f 1 -d '.')