]> git.baikalelectronics.ru Git - kernel.git/commitdiff
kbuild: compile-test headers listed in header-test-m as well
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 16 Jul 2019 13:29:45 +0000 (22:29 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 17 Jul 2019 13:37:51 +0000 (22:37 +0900)
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>
scripts/Makefile.build
scripts/Makefile.lib

index be38198d98b24f31c277e58163b99b93f83d6eaa..5829ccbc7dd0ec1d9ac2776c32c0a853775da0b1 100644 (file)
@@ -294,7 +294,7 @@ quiet_cmd_cc_lst_c = MKLST   $@
 $(obj)/%.lst: $(src)/%.c FORCE
        $(call if_changed_dep,cc_lst_c)
 
-# header test (header-test-y target)
+# header test (header-test-y, header-test-m target)
 # ---------------------------------------------------------------------------
 
 quiet_cmd_cc_s_h = CC      $@
index 6cb3aa5cbc795438f25168d42e418f761dd6174b..5241d0751eb0d4b0c78ae3e3427ed4ffc7c9821c 100644 (file)
@@ -78,7 +78,7 @@ header-test-y += $(filter-out $(header-test-), \
                $(wildcard $(addprefix $(srctree)/$(src)/, \
                $(header-test-pattern-y)))))
 
-extra-$(CONFIG_HEADER_TEST) += $(addsuffix .s, $(header-test-y))
+extra-$(CONFIG_HEADER_TEST) += $(addsuffix .s, $(header-test-y) $(header-test-m))
 
 # Add subdir path