diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-11-30 19:27:15 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-12-02 00:11:49 -0500 |
commit | 8e9b61b293d98f878cf1e6d1ae164e41c0219959 (patch) | |
tree | 579a5032f2fab20017443a39a9c08ebb0a97a39e /scripts/Makefile.build | |
parent | 5439f09f488f291a9493455c24b197c99025764d (diff) |
kbuild: move .SECONDARY special target to Kbuild.include
In commit 54a702f70589 ("kbuild: mark $(targets) as .SECONDARY and
remove .PRECIOUS markers"), I missed one important feature of the
.SECONDARY target:
.SECONDARY with no prerequisites causes all targets to be
treated as secondary.
... which agrees with the policy of Kbuild.
Let's move it to scripts/Kbuild.include, with no prerequisites.
Note:
If an intermediate file is generated by $(call if_changed,...), you
still need to add it to "targets" so its .*.cmd file is included.
The arm/arm64 crypto files are generated by $(call cmd,shipped),
so they do not need to be added to "targets", but need to be added
to "clean-files" so "make clean" can properly clean them away.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index ed9b6467ebde..aa05423c8418 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -529,8 +529,4 @@ $(shell mkdir -p $(obj-dirs)) | |||
529 | endif | 529 | endif |
530 | endif | 530 | endif |
531 | 531 | ||
532 | # Some files contained in $(targets) are intermediate artifacts. | ||
533 | # We never want them to be removed automatically. | ||
534 | .SECONDARY: $(targets) | ||
535 | |||
536 | .PHONY: $(PHONY) | 532 | .PHONY: $(PHONY) |