mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 21:35:07 +00:00
7ea13556f7
The current arrangement will have the test modules rebuilt on any make without having the script or code actually change. Take Masahiro Yamada's suggested fix and cleanups on the Makefile to fix this. Suggested-by: Masahiro Yamada <masahiroy@kernel.org> Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Fixes: 84b4a51fce4ccc66 ("selftests: add new kallsyms selftests") Closes: https://lore.kernel.org/all/CAK7LNATRDODmfz1tE=inV-DQqPA4G9vKH+38zMbaGdpTuFWZFw@mail.gmail.com/T/#me6c8f98e82acbee6e75a31b34bbb543eb4940b15 Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
15 lines
493 B
Makefile
15 lines
493 B
Makefile
obj-$(CONFIG_TEST_KALLSYMS_A) += test_kallsyms_a.o
|
|
obj-$(CONFIG_TEST_KALLSYMS_B) += test_kallsyms_b.o
|
|
obj-$(CONFIG_TEST_KALLSYMS_C) += test_kallsyms_c.o
|
|
obj-$(CONFIG_TEST_KALLSYMS_D) += test_kallsyms_d.o
|
|
|
|
quiet_cmd_gen_test_kallsyms = GEN $@
|
|
cmd_gen_test_kallsyms = $< $@ \
|
|
$(CONFIG_TEST_KALLSYMS_NUMSYMS) \
|
|
$(CONFIG_TEST_KALLSYMS_SCALE_FACTOR)
|
|
|
|
$(obj)/%.c: $(src)/gen_test_kallsyms.sh FORCE
|
|
$(call if_changed,gen_test_kallsyms)
|
|
|
|
targets += $(foreach x, a b c d, test_kallsyms_$(x).c)
|