kbuild: deb-pkg: make .orig tarball a hard link if possible
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 15 Feb 2023 01:20:28 +0000 (10:20 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 26 Feb 2023 06:20:38 +0000 (15:20 +0900)
commitb44aa8c96e9eea54a42c074c278a8e05e1c231d5
treef5735b1829fc16b1301469330814240ca282a198
parent6eabebb1b66c48d830549dbca5952f72307fbd0b
kbuild: deb-pkg: make .orig tarball a hard link if possible

If '..' belongs to the same filesystem, create a hard link instead of
a copy. In most cases, you can save disk space.

I do not want to use 'mv' because keeping linux.tar.gz is useful to
avoid unneeded rebuilding of the tarball.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/Makefile.package