Commit eaf80f7f authored by Masahiro Yamada's avatar Masahiro Yamada

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: default avatarNicolas Schier <n.schier@avm.de>
parent 159956f3
...@@ -19,7 +19,7 @@ binary: binary-arch binary-indep ...@@ -19,7 +19,7 @@ binary: binary-arch binary-indep
binary-indep: build-indep binary-indep: build-indep
binary-arch: build-arch binary-arch: build-arch
$(MAKE) -f $(srctree)/Makefile $(make-opts) \ $(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 .PHONY: build build-indep build-arch
build: build-arch build-indep build: build-arch build-indep
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment