]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: make distclean work against $(objtree) instead of $(srctree)
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 4 May 2021 10:10:56 +0000 (19:10 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 5 May 2021 17:15:46 +0000 (02:15 +0900)
commitf74afd831e912c6cf747b028dc4518e64009f2ff
treee81e013db42ffc4a4806d586c80cab538f37f407
parentbc2dfaf908cd1038aa4ef490c9582ac1df7ee70a
kbuild: make distclean work against $(objtree) instead of $(srctree)

This reverts the old commit [1], which seems questionable to me.

It claimed 'make distclean' could not remove editor backup files,
but I believe KBUILD_OUTPUT or O= was set.

When O= is given, Kbuild should always work against $(objtree).
If O= is not given, $(objtree) and $(srctree) are the same, therefore
$(srctree) is cleaned up.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=dd47df980c02eb33833b2690b033c34fba2fa80d

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile