From: Masahiro Yamada Date: Tue, 26 Dec 2023 13:52:41 +0000 (+0900) Subject: kbuild: deb-pkg: allow to run debian/rules from output directory X-Git-Tag: v6.8-rc1~31^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaf80f7f2c9c5f08d76858ec32addfcfe64ce58e;p=thirdparty%2Fkernel%2Flinux.git kbuild: deb-pkg: allow to run debian/rules from output directory '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 Reviewed-by: Nicolas Schier --- diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules index 3268340386dec..6ba756d246de1 100755 --- a/scripts/package/debian/rules +++ b/scripts/package/debian/rules @@ -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