mirror of https://github.com/acidanthera/audk.git
EmulatorPkg/build.sh: Merge GCC toolchain detection from OVMF
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
b0b626ea2f
commit
a04ec6d9f7
|
@ -93,6 +93,13 @@ case `uname` in
|
||||||
|
|
||||||
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
|
||||||
|
[1-3].*|4.[0-3].*)
|
||||||
|
echo EmulatorPkg requires GCC4.4 or later
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
4.4.*)
|
||||||
|
TARGET_TOOLS=GCC44
|
||||||
|
;;
|
||||||
4.5.*)
|
4.5.*)
|
||||||
TARGET_TOOLS=GCC45
|
TARGET_TOOLS=GCC45
|
||||||
;;
|
;;
|
||||||
|
@ -105,11 +112,11 @@ case `uname` in
|
||||||
4.8.*)
|
4.8.*)
|
||||||
TARGET_TOOLS=GCC48
|
TARGET_TOOLS=GCC48
|
||||||
;;
|
;;
|
||||||
4.9.*|4.1[0-9].*|5.*.*)
|
4.9.*|6.[0-2].*)
|
||||||
TARGET_TOOLS=GCC49
|
TARGET_TOOLS=GCC49
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
TARGET_TOOLS=GCC44
|
TARGET_TOOLS=GCC5
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue