[PATCH][V2] acpi/boot: skip ACPI BOOT test on UEFI systems.
Alex Hung
alex.hung at canonical.com
Thu Sep 19 10:09:30 UTC 2019
BOOT table is for PC-AT BIOS, and UEFI systems shall use
SimpleBootFlag variable is stored in NVRAM.
Signed-off-by: Alex Hung <alex.hung at canonical.com>
---
src/acpi/boot/boot.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/acpi/boot/boot.c b/src/acpi/boot/boot.c
index 081b8b37..c1ea810c 100644
--- a/src/acpi/boot/boot.c
+++ b/src/acpi/boot/boot.c
@@ -35,6 +35,10 @@ static int boot_init(fwts_framework *fw)
fwts_log_error(fw, "Cannot read ACPI tables.");
return FWTS_ERROR;
}
+ if (fwts_firmware_detect() == FWTS_FIRMWARE_UEFI) {
+ fwts_log_error(fw, "ACPI BOOT table is depreciated on UEFI firmware, skipping test");
+ return FWTS_SKIP;
+ }
if (table == NULL || (table && table->length == 0)) {
fwts_log_error(fw, "ACPI BOOT table does not exist, skipping test");
return FWTS_SKIP;
--
2.20.1
More information about the fwts-devel
mailing list