]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild: Fix build target deb-pkg: ln: failed to create hard link
authorThayne Harbaugh <thayne@mastodonlabs.com>
Sun, 16 Jun 2024 05:34:54 +0000 (23:34 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:33:56 +0000 (09:33 +0200)
commitb89b0af97dc51e8bcd3899a17b4e1beddb5c41c6
tree29b49201eff6f73b4e3787217e97e6e0ccc9303a
parent4edc6c5b3157e5adf40a160fa102db78772afeac
kbuild: Fix build target deb-pkg: ln: failed to create hard link

[ Upstream commit c61566538968ffb040acc411246fd7ad38c7e8c9 ]

The make deb-pkg target calls debian-orig which attempts to either
hard link the source .tar to the build-output location or copy the
source .tar to the build-output location.  The test to determine
whether to ln or cp is incorrectly expanded by Make and consequently
always attempts to ln the source .tar.  This fix corrects the escaping
of '$' so that the test is expanded by the shell rather than by Make
and appropriately selects between ln and cp.

Fixes: b44aa8c96e9e ("kbuild: deb-pkg: make .orig tarball a hard link if possible")
Signed-off-by: Thayne Harbaugh <thayne@mastodonlabs.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/Makefile.package