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
This commit is contained in:
jljusten 2013-01-16 06:50:21 +00:00
parent a205121e3c
commit 429c05fa2b
1 changed files with 12 additions and 7 deletions

View File

@ -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