Mario Limonciello
d39bcee29d
trivial: detect cpuid.h
and also look for host architecture
...
Fixes cross compilation for arm with clang which provides cpuid.h
but helpfully has this error:
```
#if !(__x86_64__ || __i386__)
#error this header is for x86 only
#endif
```
Fixes : #2131
2020-05-26 15:06:08 -05:00
Richard Hughes
52cda3db9c
uefi: Find the correct lds and crt name when specifying -Defi_ldsdir
...
This fixes the Flatpak build of fwupd.
2020-02-13 17:56:33 +00:00
Richard Hughes
d2fe61289b
uefi: Fix a build regression with Fedora 30
...
Fixes https://github.com/fwupd/fwupd/issues/1754
2020-02-11 14:53:01 +00:00
Richard Hughes
7d11d44242
Support the new gnuefi file locations
...
gnu-efi 3.0.11 moves a few files around, e.g.
/usr/lib64/gnuefi/elf_x64_efi.lds -> /usr/lib64/gnuefi/x64/efi.lds
...and this causes the UEFI EFI helper to fail to link.
Add support for the 'new' paths and fall back to the old ones.
Fixes https://github.com/fwupd/fwupd/issues/1736
2020-02-05 07:41:35 -06:00
Mario Limonciello
e7b2ea02b9
uefi: use genpeimg
to mark ASLR and DP/NX on EFI binary
...
If the tool is available at build time use it to this.
2019-10-26 12:59:11 -05:00
Richard Hughes
1e07ec95b6
uefi: Disable -Wno-address-of-packed-member
...
Unaligned reads don't really matter on all the architectures the EFI binary is
being built for.
2019-02-01 16:38:14 +00:00
Richard Hughes
c6b94791ec
uefi: Don't unconditionally enable Werror for the EFI binary
2019-02-01 16:38:14 +00:00
Richard Hughes
c7327385f4
uefi: Remove all variable length arrays
2019-01-20 22:29:44 +00:00
Richard Hughes
818071d178
uefi: Refactor and simplify the EFI loader
2019-01-19 18:36:46 +00:00
Richard Hughes
34ea74fb2c
uefi: Don't override _FORTIFY_SOURCE when building the EFI binary
...
Fixes https://github.com/hughsie/fwupd/issues/631
2018-08-08 20:16:53 +01:00
Mario Limonciello
44305bbde4
Rename EFI application from fwup<arch>.efi to fwupd<arch>.efi
...
This will prevent potentially clashing with fwupdate's EFI application
and allow them to remain co-installable.
2018-07-10 10:45:39 -05:00
Richard Hughes
b1e0ab98d1
uefi: Import the fwupd.efi sources from the fwupdate project
2018-06-28 15:51:11 +01:00