efi_selftest: block device test requires CONFIG_DOS_PARTITION
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 29 Jul 2020 10:43:41 +0000 (12:43 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 1 Aug 2020 09:58:39 +0000 (11:58 +0200)
Do not execute the block device test if CONFIG_DOS_PARTITION=n.

Imply CONFIG_DOS_PARTITION in Kconfig.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/Kconfig
lib/efi_selftest/Makefile

index 4781403..ca62436 100644 (file)
@@ -1,6 +1,8 @@
 config CMD_BOOTEFI_SELFTEST
        bool "UEFI unit tests"
        depends on CMD_BOOTEFI
+       imply PARTITIONS
+       imply DOS_PARTITION
        imply FAT
        imply FAT_WRITE
        imply CMD_POWEROFF if PSCI_RESET || SYSRESET_PSCI
index 7f84903..45ce685 100644 (file)
@@ -57,7 +57,7 @@ ifeq ($(CONFIG_GENERATE_ACPI_TABLE),)
 obj-y += efi_selftest_fdt.o
 endif
 
-ifeq ($(CONFIG_BLK)$(CONFIG_PARTITIONS),yy)
+ifeq ($(CONFIG_BLK)$(CONFIG_DOS_PARTITION),yy)
 obj-y += efi_selftest_block_device.o
 endif