]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 25 Jun 2024 15:18:57 +0000 (00:18 +0900)
commitc61566538968ffb040acc411246fd7ad38c7e8c9
tree83c08b7685e7d7ac8bd731cba3da640b040c3aa7
parent07d4cc2e7444356faac6552d0688a1670cc9d749
kbuild: Fix build target deb-pkg: ln: failed to create hard link

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>
scripts/Makefile.package