File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ obj-$(CONFIG_TEST_KALLSYMS_B) += test_kallsyms_b.o
3
3
obj-$(CONFIG_TEST_KALLSYMS_C) += test_kallsyms_c.o
4
4
obj-$(CONFIG_TEST_KALLSYMS_D) += test_kallsyms_d.o
5
5
6
- $(obj ) /% .c : FORCE
7
- @$(kecho ) " GEN $@ "
8
- $(Q )$(srctree ) /lib/tests/module/gen_test_kallsyms.sh $@ \
9
- $(CONFIG_TEST_KALLSYMS_NUMSYMS ) \
10
- $(CONFIG_TEST_KALLSYMS_SCALE_FACTOR )
6
+ quiet_cmd_gen_test_kallsyms = GEN $@
7
+ cmd_gen_test_kallsyms = $< $@ \
8
+ $(CONFIG_TEST_KALLSYMS_NUMSYMS) \
9
+ $(CONFIG_TEST_KALLSYMS_SCALE_FACTOR)
11
10
12
- clean-files += test_kallsyms_a.c
13
- clean-files += test_kallsyms_b.c
14
- clean-files += test_kallsyms_c.c
15
- clean-files += test_kallsyms_d.c
11
+ $( obj ) / % .c : $( src ) /gen_test_kallsyms.sh FORCE
12
+ $( call if_changed,gen_test_kallsyms)
13
+
14
+ targets += $( foreach x, a b c d, test_kallsyms_ $( x ) .c)
You can’t perform that action at this time.
0 commit comments