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:
parent
a205121e3c
commit
429c05fa2b
@ -58,15 +58,20 @@ case `uname` in
|
|||||||
echo Cygwin not fully supported yet.
|
echo Cygwin not fully supported yet.
|
||||||
;;
|
;;
|
||||||
Darwin*)
|
Darwin*)
|
||||||
Major=$(uname -r | cut -f 1 -d '.')
|
Major=$(uname -r | cut -f 1 -d '.')
|
||||||
if [[ $Major == 9 ]]
|
case $Major in
|
||||||
then
|
10)
|
||||||
|
TARGET_TOOLS=XCODE32
|
||||||
|
;;
|
||||||
|
1[12])
|
||||||
|
TARGET_TOOLS=XCLANG
|
||||||
|
;;
|
||||||
|
*)
|
||||||
echo OvmfPkg requires Snow Leopard or later OS
|
echo OvmfPkg requires Snow Leopard or later OS
|
||||||
exit 1
|
exit 1
|
||||||
else
|
;;
|
||||||
TARGET_TOOLS=XCODE32
|
esac
|
||||||
fi
|
;;
|
||||||
;;
|
|
||||||
Linux*)
|
Linux*)
|
||||||
gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}')
|
gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}')
|
||||||
case $gcc_version in
|
case $gcc_version in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user