summaryrefslogtreecommitdiff
path: root/BeagleBoardPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-29 12:16:02 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-29 12:16:02 +0000
commitf5df743f4860553a5fd7f045fd1b77d5654788ae (patch)
tree68f9e946df529e98d6a992582a389ee96101c97f /BeagleBoardPkg
parente7b872fd02440ce523a3393c3011d56b50706d2c (diff)
BeagleBoard: Allow to overwrite the default toolchain
Each OS has its own default EDK2 toolchain. This change allows to overwrite this default option. Example: On Linux the default toolchain is ARMLINUXGCC, this command line can overwrite it: TARGET_TOOLS=ARMGCC ./build.sh git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12901 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BeagleBoardPkg')
-rwxr-xr-xBeagleBoardPkg/build.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/BeagleBoardPkg/build.sh b/BeagleBoardPkg/build.sh
index f2592b9c7..87f29891b 100755
--- a/BeagleBoardPkg/build.sh
+++ b/BeagleBoardPkg/build.sh
@@ -51,20 +51,22 @@ else
fi
#
-# Pick a default tool type for a given OS
+# Pick a default tool type for a given OS if no toolchain already defined
#
-case `uname` in
- CYGWIN*)
+if [ -z "$TARGET_TOOLS" ]
+then
+ case `uname` in
+ CYGWIN*)
TARGET_TOOLS=RVCT31CYGWIN
;;
- Linux*)
+ Linux*)
if [[ ! -z `locate arm-linux-gnueabi-gcc` ]]; then
TARGET_TOOLS=ARMLINUXGCC
else
TARGET_TOOLS=ARMGCC
fi
;;
- Darwin*)
+ Darwin*)
Major=$(uname -r | cut -f 1 -d '.')
if [[ $Major == 9 ]]
then
@@ -74,7 +76,8 @@ case `uname` in
TARGET_TOOLS=XCODE32
fi
;;
-esac
+ esac
+fi
TARGET=DEBUG
for arg in "$@"