kbuild: unify cmd_copy and cmd_shipped
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 25 Jan 2022 06:40:27 +0000 (15:40 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 14 Feb 2022 01:37:32 +0000 (10:37 +0900)
commita5575df58004e8444e5a2a307407c3f1a6ecf175
tree5cce996c963918112852d73d9023a4f540a9ec29
parent754e0b0e35608ed5206d6a67a791563c631cec07
kbuild: unify cmd_copy and cmd_shipped

cmd_copy and cmd_shipped have similar functionality. The difference is
that cmd_copy uses 'cp' while cmd_shipped 'cat'.

Unify them into cmd_copy because this macro name is more intuitive.

Going forward, cmd_copy will use 'cat' to avoid the permission issue.
I also thought of 'cp --no-preserve=mode' but this option is not
mentioned in the POSIX spec [1], so I am keeping the 'cat' command.

[1]: https://pubs.opengroup.org/onlinepubs/009695299/utilities/cp.html
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com>
arch/microblaze/boot/Makefile
arch/microblaze/boot/dts/Makefile
fs/unicode/Makefile
scripts/Makefile.lib
usr/Makefile