]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: remove user ID check in scripts/mkmakefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 18 Sep 2018 08:45:52 +0000 (17:45 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 4 Oct 2018 13:56:02 +0000 (22:56 +0900)
commitf3ffa73f94d8f19ebb2ee65a62aa586ba41e1ff2
tree031cccbf9287374dfcfeb5bae07267de6755497c
parent8ab3a7f45ed063bf21d7402b2437ccf0b677d715
kbuild: remove user ID check in scripts/mkmakefile

This line was added by commit c6ba34f7a4f4 ("kbuild: Do not overwrite
makefile as anohter user").  Its commit description says the intention
was to prevent $(objtree)/Makefile from being owned by root when e.g.
running 'make install'.

However, as commit 349cb67cb341 ("arm, kbuild: make "make install" not
depend on vmlinux") stated, installation targets must not modify the
source tree in the first place.  If they do, we are already screwed up.
We must fix the root cause.

Installation targets should just copy files verbatim, hence we never
expect $(objtree)/Makefile is touched by root.  The user ID check in
scripts/mkmakefile is unneeded.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mkmakefile