]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: add comment about why cmd_shipped uses 'cat'
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 24 Apr 2021 11:55:53 +0000 (20:55 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 1 May 2021 15:43:34 +0000 (00:43 +0900)
commitcd51c864b7a754c94244e8d263e16ca872535ee0
tree27650170b113b1d8716174614d39b9bd254049d5
parent42577af4cd4bb1b34b0a36612b42676d13506287
kbuild: add comment about why cmd_shipped uses 'cat'

cmd_shipped uses 'cat' instead of 'cp' for copying a file. The reason
is explained in the commit [1], but it was in the pre-git era.

  $ touch a
  $ chmod -w a
  $ cp a b
  $ cp a b
  cp: cannot create regular file 'b': Permission denied

Add comments so that you can see the reason without looking into
the history.

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

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