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
Showing the changes to scripts (2 of 2 files). Show all
Unified · Split
| @@ -294,7 +294,7 @@ quiet_cmd_cc_lst_c = MKLST $@ · 293 unmodified lines | ||
| 294 | 294 | $(obj)/%.lst: $(src)/%.c FORCE |
| 295 | 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 | 300 | quiet_cmd_cc_s_h = CC $@ |
| @@ -78,7 +78,7 @@ header-test-y += $(filter-out $(header-test-), \ · 77 unmodified lines | ||
| 78 | 78 | $(wildcard $(addprefix $(srctree)/$(src)/, \ |
| 79 | 79 | $(header-test-pattern-y))))) |
| 80 | 80 | |
| 81 | −extra-$(CONFIG_HEADER_TEST) += $(addsuffix .s, $(header-test-y)) | |
| 81 | +extra-$(CONFIG_HEADER_TEST) += $(addsuffix .s, $(header-test-y) $(header-test-m)) | |
| 82 | 82 | |
| 83 | 83 | # Add subdir path |
| 84 | 84 | |