summaryrefslogtreecommitdiffstats
path: root/scripts/package
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-12-26 14:52:41 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2024-01-05 11:35:38 +0100
commiteaf80f7f2c9c5f08d76858ec32addfcfe64ce58e (patch)
tree40b3e25a160756df87bfcfc05725e49e7be350bf /scripts/package
parentkbuild: deb-pkg: set DEB_* variables if debian/rules is directly executed (diff)
downloadlinux-eaf80f7f2c9c5f08d76858ec32addfcfe64ce58e.tar.xz
linux-eaf80f7f2c9c5f08d76858ec32addfcfe64ce58e.zip
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 <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <n.schier@avm.de>
Diffstat (limited to 'scripts/package')
-rwxr-xr-xscripts/package/debian/rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/debian/rules b/scripts/package/debian/rules
index 3268340386de..6ba756d246de 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