]> git.itanic.dy.fi Git - linux-stable/commitdiff
kbuild: deb-pkg: allow to run debian/rules from output directory
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 26 Dec 2023 13:52:41 +0000 (22:52 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 5 Jan 2024 10:35:38 +0000 (19:35 +0900)
'make O=... deb-pkg' creates the debian directory in the output
directory. However, currently it is impossible to run debian/rules
created in the separate output directory.

This commit delays the $(srctree) expansion by escaping '$' and by
quoting the entire command, making it possible to run debian/rules in
the output directory.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
scripts/package/debian/rules

index 3268340386decf7f679351f34c94015ea89078a6..6ba756d246de1dc6311d1b8e6cc154c0b5d825c0 100755 (executable)
@@ -19,7 +19,7 @@ binary: binary-arch binary-indep
 binary-indep: build-indep
 binary-arch: build-arch
        $(MAKE) -f $(srctree)/Makefile $(make-opts) \
-       run-command KBUILD_RUN_COMMAND=+$(srctree)/scripts/package/builddeb
+       run-command KBUILD_RUN_COMMAND='+$$(srctree)/scripts/package/builddeb'
 
 .PHONY: build build-indep build-arch
 build: build-arch build-indep