summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-08 18:30:26 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-08 18:30:26 +0000
commit0b6b57c4d7181ffe805ffd6a60ee8d59fd76348d (patch)
tree5d365065db69aa81dfa998df03f9fe9375a3d1c7
parentfb849d0dc0b28f0d174bff8d2ffbd8fcd180a028 (diff)
downloadedk2-0b6b57c4d7181ffe805ffd6a60ee8d59fd76348d.zip
edk2-0b6b57c4d7181ffe805ffd6a60ee8d59fd76348d.tar.gz
edk2-0b6b57c4d7181ffe805ffd6a60ee8d59fd76348d.tar.bz2
BeagleBoardPkg: Check if the compiler arm-linux-gnueabi-gcc is present in the path
'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
-rwxr-xr-xBeagleBoardPkg/build.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/BeagleBoardPkg/build.sh b/BeagleBoardPkg/build.sh
index 3ce923e..f2592b9 100755
--- a/BeagleBoardPkg/build.sh
+++ b/BeagleBoardPkg/build.sh
@@ -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 '.')