summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Fish <afish@apple.com>2015-02-17 00:05:41 +0000
committerjljusten <jljusten@Edk2>2015-02-17 00:05:41 +0000
commitcbe2e9ee553075793559ab55fe7358a7b84ab97e (patch)
tree5bbc2e010c5bd0eefc0f10b44dccac20854f1216
parent28a34033eeab2a5078b9d92bcd6ed507a7ea191f (diff)
downloadedk2-platforms-cbe2e9ee553075793559ab55fe7358a7b84ab97e.tar.xz
OvmfPkg/build.sh: Use XCODE5 for newer OS X releases
Update OS Major number checking to future proof it, and default to XCODE5 (clang + lldb). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish <afish@apple.com> Reviewed-by: Bruce Cran <bruce.cran@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16879 6f19259b-4bc3-4df7-8a09-765794883524
-rwxr-xr-xOvmfPkg/build.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index aaeefa14c4..920d22f217 100755
--- a/OvmfPkg/build.sh
+++ b/OvmfPkg/build.sh
@@ -61,7 +61,13 @@ case `uname` in
;;
Darwin*)
Major=$(uname -r | cut -f 1 -d '.')
+ # Major is Darwin version, not OS X version.
+ # OS X Yosemite 10.10.2 returns 14.
case $Major in
+ [156789])
+ echo OvmfPkg requires OS X Snow Leopard 10.6 or newer OS
+ exit 1
+ ;;
10)
TARGET_TOOLS=XCODE32
;;
@@ -69,8 +75,8 @@ case `uname` in
TARGET_TOOLS=XCLANG
;;
*)
- echo OvmfPkg requires Snow Leopard or later OS
- exit 1
+ # Mavericks and future assume XCODE5 (clang + lldb)
+ TARGET_TOOLS=XCODE5
;;
esac
;;