diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-12-26 14:52:41 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-01-05 11:35:38 +0100 |
commit | eaf80f7f2c9c5f08d76858ec32addfcfe64ce58e (patch) | |
tree | 40b3e25a160756df87bfcfc05725e49e7be350bf /scripts | |
parent | kbuild: deb-pkg: set DEB_* variables if debian/rules is directly executed (diff) | |
download | linux-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')
-rwxr-xr-x | scripts/package/debian/rules | 2 |
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 |