Skip to content

Commit

Permalink
Support GNU-EFI 4.0
Browse files Browse the repository at this point in the history
* Set GNU_EFI_3_0_COMPAT so CompareGuid runs using the old version otherwise this will break

Changed made in ncroxon/gnu-efi@a093fe0

Signed-off-by: Callum Farmer <[email protected]>
  • Loading branch information
gmbr3 authored and hughsie committed Sep 19, 2024
1 parent 5c72956 commit 35a4502
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions efi/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ endif
libgcc_file_name = run_command(cc.cmd_array(), '-print-libgcc-file-name', check: true).stdout().strip()
efi_name = 'fwupd@[email protected]'.format(EFI_MACHINE_TYPE_NAME)

# GNU-EFI 4.0 changed how CompareGuid works (to align with EDK2)
# Keep GNU-EFI 3.0 support for a while
if gnuefi.version().version_compare('>=4.0.0')
compile_args += ['-DGNU_EFI_3_0_COMPAT']
endif


o_files = []
o_files += custom_target('fwupdate.o',
input : 'fwupdate.c',
Expand Down

0 comments on commit 35a4502

Please sign in to comment.