Mario Limonciello
dc48bec157
uefi: Move the TPM unlocking functionality from the Dell to UEFI plugin
...
This allows devices that have been registered to be correctly unlocked.
2018-10-10 14:30:49 +01:00
Mario Limonciello
56a4d82203
trivial: Add ESP path into fu_uefi_device_to_string()
2018-10-10 14:30:49 +01:00
Mario Limonciello
6ed307c5fb
trivial: uefi: Only set EFI variables on real systems
...
Avoids copying from a NULL pointer.
Caught via clang static analysis
2018-09-21 07:35:08 +01:00
Richard Hughes
c125ec02ed
Clarify what the platform ID actually is by renaming it
...
It wasn't hugely clear what the platform ID was actually meant to represent. In
some cases it was being used like a physical ID, in others it was a logical ID,
and in others it was both. In some cases it was even used as a sysfs path.
Clear up all the confusion by splitting the platform ID into two parts, an
optional *physical* ID to represent the electrical connection, and an optional
*logical* ID to disambiguate composite devices with the same physical ID.
Also create an explicit sysfs_path getter for FuUdevDevice to make this clear.
This allows WAIT_FOR_REPLUG to always work, rather than depending on the order
that the GUIDs were added, and that the kernel would always return the same
sysfs path (which it doesn't have to do, especially for hidraw devices).
2018-09-06 16:22:46 +01:00
Richard Hughes
85f53a418c
uefi: Add the Windows 10 device ID for compatibility
2018-09-05 05:59:43 -05:00
Mario Limonciello
9ef5f741bc
plugins: Set platform IDs for non-USB/non-UDEV plugins
2018-09-02 14:45:39 -05:00
Richard Hughes
29129ed4f4
uefi: Allow upgrades using a self-signed fwupd.efi binary
...
This doesn't require shim, so for this uncommon case add a configure option.
Fixes https://github.com/hughsie/fwupd/issues/669
2018-08-23 14:30:04 +01:00
Richard Hughes
4721112601
uefi: Don't assert when run as non-root
2018-08-13 11:29:37 +01:00
Richard Hughes
84960d9ba2
uefi: Fix up some trivial NULL/FALSE confusion
2018-08-09 14:21:23 +01:00
Richard Hughes
02c90d8a03
Remove the unused Emacs indenting headers from all source files
...
Fixes https://github.com/hughsie/fwupd/issues/636
2018-08-09 12:48:04 +01:00
Mario Limonciello
4ab6116ea0
uefi: Fix encoding the GUID into the capsule EFI variable
...
Before:
$ /usr/lib/fwupd/fwupdate --info
Information for the update status entry 0:
Information Version: 7
Firmware GUID: {00000000-0000-0000-0000-000000000000}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Capsule Flags: 0x00131072x
Hardware Instance: 0
Update Status: attempt-update
Capsule File Path: /EFI/ubuntu/fw/fwupd-7ceaf7a8-0611-4480-9e30-64d8de420c7c.cap
After:
$ /usr/lib/fwupd/fwupdate --info
Information for the update status entry 0:
Information Version: 7
Firmware GUID: {7ceaf7a8-0611-4480-9e30-64d8de420c7c}
Capsule Flags: 0x00131072x
Hardware Instance: 0
Update Status: attempt-update
Capsule File Path: /EFI/ubuntu/fw/fwupd-7ceaf7a8-0611-4480-9e30-64d8de420c7c.cap
2018-08-09 08:14:04 +01:00
Mario Limonciello
fd65ddda8a
uefi: Rename all intermediary files and UEFI variables to prefix fwupd
...
fwupdate prefix is used by fwupdate and this will prevent clashes in case
its used instead.
2018-07-10 10:45:39 -05: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
7ecf0164de
uefi: Show the stored capsule filename in fwupdate
2018-06-28 15:51:11 +01:00
Richard Hughes
57df956d7b
uefi: Add a libexec tool to mimic the original fwupdate CLI interface
2018-06-28 15:51:11 +01:00
Richard Hughes
1ccf35a9e4
dell: Register devices with the uefi plugin rather than using libfwup directly
...
The device registration allows us to create a 'virtual' device that can accept
capsule updates that is not found in the ESRT.
2018-06-28 15:51:11 +01:00
Richard Hughes
a80f79cb4d
uefi: Upload the firmware capsule without using libfwup
2018-06-28 15:51:11 +01:00
Richard Hughes
f3f4ca0320
uefi: Clear the device status without using libfwup
2018-06-28 15:51:11 +01:00
Richard Hughes
bd80edd6be
uefi: Add a device superclass to model each ESRT entry
2018-06-28 15:51:11 +01:00