Skip to content

Commit 4bd01de

Browse files
committed
kbuild: compile-test headers listed in header-test-m as well
It will be useful to control the header-test by a tristate option. If CONFIG_FOO is a tristate option, you can write like this: header-test-$(CONFIG_FOO) += foo.h Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent c04d1e4 commit 4bd01de

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/Makefile.build‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ quiet_cmd_cc_lst_c = MKLST $@
294294
$(obj)/%.lst: $(src)/%.c FORCE
295295
$(call if_changed_dep,cc_lst_c)
296296

297-
# header test (header-test-y target)
297+
# header test (header-test-y, header-test-m target)
298298
# ---------------------------------------------------------------------------
299299

300300
quiet_cmd_cc_s_h = CC $@

‎scripts/Makefile.lib‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ header-test-y += $(filter-out $(header-test-), \
7878
$(wildcard $(addprefix $(srctree)/$(src)/, \
7979
$(header-test-pattern-y)))))
8080

81-
extra-$(CONFIG_HEADER_TEST) += $(addsuffix .s, $(header-test-y))
81+
extra-$(CONFIG_HEADER_TEST) += $(addsuffix .s, $(header-test-y) $(header-test-m))
8282

8383
# Add subdir path
8484

0 commit comments

Comments
 (0)