]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: require GCC48 or later
authorLaszlo Ersek <lersek@redhat.com>
Wed, 2 Jan 2019 19:37:02 +0000 (20:37 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 8 Jan 2019 01:34:10 +0000 (02:34 +0100)
We're about to remove BaseTools support for GCC44..GCC47. Reject those gcc
versions cleanly in "OvmfPkg/build.sh". In "OvmfPkg/README", upgrade any
mentions of the same gcc versions to GCC48.

No GCC44..GCC47 references remain under OvmfPkg after this patch.

Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Julien Grall <julien.grall@linaro.org>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1377
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
OvmfPkg/README
OvmfPkg/build.sh

index 7415419d2dd7befae31da17082a68312d82c0afd..68ce0750af19f20bdc3fc342231cc09f9d65166a 100644 (file)
@@ -115,8 +115,8 @@ $ OvmfPkg/build.sh -a X64 qemu
 And to run a 64-bit UEFI bootable ISO image:\r
 $ OvmfPkg/build.sh -a X64 qemu -cdrom /path/to/disk-image.iso\r
 \r
-To build a 32-bit OVMF without debug messages using GCC 4.5:\r
-$ OvmfPkg/build.sh -a IA32 -b RELEASE -t GCC45\r
+To build a 32-bit OVMF without debug messages using GCC 4.8:\r
+$ OvmfPkg/build.sh -a IA32 -b RELEASE -t GCC48\r
 \r
 === SMM support ===\r
 \r
@@ -406,7 +406,7 @@ volume image.
 \r
 If you build with the UNIXGCC toolchain, then debugging will be disabled\r
 due to larger image sizes being produced by the UNIXGCC toolchain. The\r
-first choice recommendation is to use GCC44 or newer instead.\r
+first choice recommendation is to use GCC48 or newer instead.\r
 \r
 If you must use UNIXGCC, then you can override the build options for\r
 particular libraries and modules in the .dsc to re-enable debugging\r
index 68215520256421111cc72802856b3a28b5f00327..6821742e7acdb426bd9e5bb769f883e6aa48b481 100755 (executable)
@@ -83,22 +83,10 @@ case `uname` in
   Linux*)
     gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}')
     case $gcc_version in
-      [1-3].*|4.[0-3].*)
-        echo OvmfPkg requires GCC4.4 or later
+      [1-3].*|4.[0-7].*)
+        echo OvmfPkg requires GCC4.8 or later
         exit 1
         ;;
-      4.4.*)
-        TARGET_TOOLS=GCC44
-        ;;
-      4.5.*)
-        TARGET_TOOLS=GCC45
-        ;;
-      4.6.*)
-        TARGET_TOOLS=GCC46
-        ;;
-      4.7.*)
-        TARGET_TOOLS=GCC47
-        ;;
       4.8.*)
         TARGET_TOOLS=GCC48
         ;;