Skip to content

Commit eaf80f7

Browse files
committed
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 <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent 159956f commit eaf80f7

File tree

1 file changed

+1
-1
lines changed
  • scripts/package/debian

1 file changed

+1
-1
lines changed

scripts/package/debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ binary: binary-arch binary-indep
1919
binary-indep: build-indep
2020
binary-arch: build-arch
2121
$(MAKE) -f $(srctree)/Makefile $(make-opts) \
22-
run-command KBUILD_RUN_COMMAND=+$(srctree)/scripts/package/builddeb
22+
run-command KBUILD_RUN_COMMAND='+$$(srctree)/scripts/package/builddeb'
2323

2424
.PHONY: build build-indep build-arch
2525
build: build-arch build-indep

0 commit comments

Comments
 (0)