summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-12-26 22:52:41 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-01-05 19:35:38 +0900
commiteaf80f7f2c9c5f08d76858ec32addfcfe64ce58e (patch)
tree40b3e25a160756df87bfcfc05725e49e7be350bf /scripts
parent159956f34ede363e67a87bea840937e242293e91 (diff)
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')
-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