Hi Gerd,

These patches are a great idea but I don't know if we can take GPLv2 code like that. Are they even mergeable into the main edk2 repo (as it's not compatible with BSD-2-clause)?

Thanks,
Pedro

On Mon, Apr 4, 2022 at 10:32 AM Gerd Hoffmann <kraxel@redhat.com> wrote:
The linux kernel has a bunch of useful macros to check whenever a given
compiler supports specific flags.  Import them, adapt them for edk2, then
put them into use to make both gcc5 and gcc12 work for BaseTools.

Gerd Hoffmann (3):
  BaseTools: import compiler check macros from linux kernel
  BaseTools: adapt comniler checks mmacros for edk2
  BaseTools: fix gcc workaround

 BaseTools/Source/C/DevicePath/GNUmakefile     |  3 +-
 .../Source/C/Makefiles/compiler.makefile      | 76 +++++++++++++++++++
 2 files changed, 78 insertions(+), 1 deletion(-)
 create mode 100644 BaseTools/Source/C/Makefiles/compiler.makefile

--
2.35.1








--
Pedro Falcato