]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: move .SECONDARY special target to Kbuild.include
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 1 Dec 2018 00:27:15 +0000 (09:27 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 2 Dec 2018 05:11:49 +0000 (14:11 +0900)
commit1d7e5aa5ebb23d1bd0c6f5d4e38f95b89d0278ee
tree579a5032f2fab20017443a39a9c08ebb0a97a39e
parent913c48dd43e3578e2db413d565b32f61e31e7187
kbuild: move .SECONDARY special target to Kbuild.include

In commit a7be96c956e5 ("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>
arch/arm/crypto/Makefile
arch/arm64/crypto/Makefile
scripts/Kbuild.include
scripts/Makefile.build