summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/build.sh
diff options
context:
space:
mode:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2013-01-16 06:50:21 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2013-01-16 06:50:21 +0000
commit429c05fa2bbfd4cb5b9c36f052c219bcb67e2c20 (patch)
tree48ed68443e4591061ae127b308c708a8377d7356 /OvmfPkg/build.sh
parenta205121e3cafaa2ec78f5392097392cc4ed31db4 (diff)
downloadedk2-429c05fa2bbfd4cb5b9c36f052c219bcb67e2c20.tar.gz
edk2-429c05fa2bbfd4cb5b9c36f052c219bcb67e2c20.tar.bz2
edk2-429c05fa2bbfd4cb5b9c36f052c219bcb67e2c20.zip
OvmfPkg/build.sh: Fix compilation error on OS X
This patch sets the default TARGET_TOOLS/PROCESSOR on Darwin/Linux platforms. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Pike R. Alpha <pikeralpha@yahoo.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14054 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/build.sh')
-rwxr-xr-xOvmfPkg/build.sh19
1 files changed, 12 insertions, 7 deletions
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index 61b3ff85c1..6751551b10 100755
--- a/OvmfPkg/build.sh
+++ b/OvmfPkg/build.sh
@@ -58,15 +58,20 @@ case `uname` in
echo Cygwin not fully supported yet.
;;
Darwin*)
- Major=$(uname -r | cut -f 1 -d '.')
- if [[ $Major == 9 ]]
- then
+ Major=$(uname -r | cut -f 1 -d '.')
+ case $Major in
+ 10)
+ TARGET_TOOLS=XCODE32
+ ;;
+ 1[12])
+ TARGET_TOOLS=XCLANG
+ ;;
+ *)
echo OvmfPkg requires Snow Leopard or later OS
exit 1
- else
- TARGET_TOOLS=XCODE32
- fi
- ;;
+ ;;
+ esac
+ ;;
Linux*)
gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}')
case $gcc_version in