diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-16 09:29:45 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-17 09:37:51 -0400 |
commit | 4bd01de8f201abb704ae9bda3af4ea9ba3a10b0a (patch) | |
tree | 9a858ff1c76399960b92a378649cd43fab281558 /scripts/Makefile.build | |
parent | c04d1e46fcd6090f2ae04e285e9d3adcf376f5b1 (diff) |
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>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index be38198d98b2..5829ccbc7dd0 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -294,7 +294,7 @@ quiet_cmd_cc_lst_c = MKLST $@ | |||
294 | $(obj)/%.lst: $(src)/%.c FORCE | 294 | $(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 | ||
300 | quiet_cmd_cc_s_h = CC $@ | 300 | quiet_cmd_cc_s_h = CC $@ |