x86/purgatory: Hard-code obj-y in Makefile
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 25 Jul 2022 02:08:11 +0000 (11:08 +0900)
committerBorislav Petkov <bp@suse.de>
Mon, 25 Jul 2022 08:26:49 +0000 (10:26 +0200)
arch/x86/Kbuild guards the entire purgatory/ directory, and
CONFIG_KEXEC_FILE is bool type.

$(CONFIG_KEXEC_FILE) is always 'y' when this directory is being built.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220725020812.622255-1-masahiroy@kernel.org
arch/x86/purgatory/Makefile

index ae53d54d79593387ae6411a51ef8dc62e6cd1f4e..248b009c4061368629eec832e22693e4c7efd33f 100644 (file)
@@ -81,4 +81,4 @@ quiet_cmd_bin2c = BIN2C   $@
 $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro $(obj)/purgatory.chk FORCE
        $(call if_changed,bin2c)
 
-obj-$(CONFIG_KEXEC_FILE)       += kexec-purgatory.o
+obj-y += kexec-purgatory.o