Skip to content

Commit

Permalink
kbuild: deb-pkg: allow to run debian/rules from output directory
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Masahiro Yamada committed Jan 5, 2024
1 parent 159956f commit eaf80f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/package/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eaf80f7

Please sign in to comment.