Skip to content

Commit

Permalink
OvmfPkg/build.sh: Fix compilation error on OS X
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14054 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
jljusten committed Jan 16, 2013
1 parent a205121 commit 429c05f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions OvmfPkg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 429c05f

Please sign in to comment.