efi_loader: Use ESRT_FW_TYPE_SYSTEMFIRMWARE instead of ESRT_FW_TYPE_UNKNOWN
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Fri, 10 Oct 2025 10:59:31 +0000 (13:59 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 18 Oct 2025 09:52:28 +0000 (11:52 +0200)
commit186b2d24075992e2c19a769578a690ea890eedb1
treea64d226ce2ca7843d6182fcf6b5de4e989fb1bbb
parenta7762037d234b75834fd5822c134493b860467a2
efi_loader: Use ESRT_FW_TYPE_SYSTEMFIRMWARE instead of ESRT_FW_TYPE_UNKNOWN

We currently set the firmware image type to ESRT_FW_TYPE_UNKNOWN.

The spec defines the following:
ESRT_FW_TYPE_UNKNOWN 0x00000000
ESRT_FW_TYPE_SYSTEMFIRMWARE 0x00000001
ESRT_FW_TYPE_DEVICEFIRMWARE 0x00000002
ESRT_FW_TYPE_UEFIDRIVER 0x00000003

Since we don't support updating DEVICEFIRMWARE or UEFIDRIVER types,
let's switch over to SYSTEMFIRMWARE which seems more appropriate.

Suggested-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_esrt.c