Richard Hughes
0a212fd1d6
uefi: Add a trivial debugging statement to debug a UX capsule failure
2019-01-25 11:04:35 +00:00
Richard Hughes
9ba9d8a98b
uefi: Use fwup_new0() to allocate the updates table array
...
Although malloc probably works due to the page size, it's not the thing to use.
2019-01-25 11:04:30 +00:00
Richard Hughes
088c258894
trivial: Make one uefi function static
2019-01-20 22:29:44 +00:00
Richard Hughes
c7327385f4
uefi: Remove all variable length arrays
2019-01-20 22:29:44 +00:00
Richard Hughes
31c10b7293
uefi: Fix a logic bug in fwup_search_file()
...
If n_handles==0 then we'd return with EFI_SUCCESS, rather than failure.
2019-01-20 22:29:44 +00:00
Richard Hughes
59407ca42d
uefi: Use _cleanup_free in one more place
2019-01-20 22:29:44 +00:00
Richard Hughes
00b87884c4
uefi: Do not pass required attrs to fwup_delete_variable()
...
This lets us refactor some code and remove some complexity.
2019-01-20 22:29:44 +00:00
Richard Hughes
aa6498866c
uefi: Delete the old Linux-Firmware-Updater boot entry
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
4e30d25668
UEFI: Do the UX checksum calculation in fwupd
...
This makes the EFI binary much simpler.
2019-01-18 19:27:21 +00:00
Richard Hughes
72c18fd4e4
Use GCC __cleanup__ features in the EFI loader
...
This simplifies memory management.
2019-01-16 12:06:09 -06:00
Mario Limonciello
2ac3aca2a7
uefi: Append the header on capsules without headers from Linux
...
This allows using better heuristics and potentially phasing this out
in the future.
2018-12-11 12:51:57 -06:00
Mario Limonciello
14fad85164
UEFI: Rename UEFI boot entry
...
1) Drop the path at the end of the title (\fwupdx64.efi)
2) Linux-Firmware-Updater to Linux Firmware Updater
The behavior that required the hacky name has been fixed since shim 10
which is in all the relevant distros now.
3322257e61
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