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
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+1−1
@@ -78,7 +78,7 @@ header-test-y += $(filter-out $(header-test-), \ · 77 unmodified lines
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