History

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

Masahiro Yamada committed 7 years ago

Commit 4bd01de1 parent c04d1e42 files · +2 −2Browse files

Showing the changes to scripts (2 of 2 files). Show all

Unified · Split

2 files
  1. scripts/Makefile.build +1 −1
  2. scripts/Makefile.lib +1 −1
scripts/Makefile.build+1−1
@@ -294,7 +294,7 @@ quiet_cmd_cc_lst_c = MKLST $@ · 293 unmodified lines
294$(obj)/%.lst: $(src)/%.c FORCE294$(obj)/%.lst: $(src)/%.c FORCE
295 $(call if_changed_dep,cc_lst_c)295 $(call if_changed_dep,cc_lst_c)
296 296
297# header test (header-test-y target)297# header test (header-test-y, header-test-m target)
298# ---------------------------------------------------------------------------298# ---------------------------------------------------------------------------
299 299
300quiet_cmd_cc_s_h = CC $@300quiet_cmd_cc_s_h = CC $@
scripts/Makefile.lib+1−1
@@ -78,7 +78,7 @@ header-test-y += $(filter-out $(header-test-), \ · 77 unmodified lines
78 $(wildcard $(addprefix $(srctree)/$(src)/, \78 $(wildcard $(addprefix $(srctree)/$(src)/, \
79 $(header-test-pattern-y)))))79 $(header-test-pattern-y)))))
80 80
81extra-$(CONFIG_HEADER_TEST) += $(addsuffix .s, $(header-test-y))81extra-$(CONFIG_HEADER_TEST) += $(addsuffix .s, $(header-test-y) $(header-test-m))
82 82
83# Add subdir path83# Add subdir path
84 84