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.
Unified · Split
| @@ -81,4 +81,4 @@ quiet_cmd_bin2c = BIN2C $@ · 80 unmodified lines | |||
| 81 | $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro $(obj)/purgatory.chk FORCE | 81 | $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro $(obj)/purgatory.chk FORCE |
| 82 | $(call if_changed,bin2c) | 82 | $(call if_changed,bin2c) |
| 83 | 83 | ||
| 84 | obj-$(CONFIG_KEXEC_FILE) += kexec-purgatory.o | 84 | obj-y += kexec-purgatory.o |