Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/purgatory: Hard-code obj-y in Makefile

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

authored by

Masahiro Yamada and committed by
Borislav Petkov
61922d3f 8b979924

+1 -1
+1 -1
arch/x86/purgatory/Makefile
··· 81 81 $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro $(obj)/purgatory.chk FORCE 82 82 $(call if_changed,bin2c) 83 83 84 - obj-$(CONFIG_KEXEC_FILE) += kexec-purgatory.o 84 + obj-y += kexec-purgatory.o