summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-02-18 09:04:57 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-02-19 07:33:03 +0100
commitf4f03806e9d2f027627db89ceae9fa545925504f (patch)
treecb0989e41bdde76ad3f41181902c1711941cc523 /rules
parent03aeed8262a53476bc4a60c47cb2a67e4ee2ed94 (diff)
downloadptxdist-f4f03806e9d2f027627db89ceae9fa545925504f.tar.gz
ptxdist-f4f03806e9d2f027627db89ceae9fa545925504f.tar.xz
introduce 'world/execute' and 'execute' macros
With these, arbitrary commands can be executed in the build stages. They habe the advantage that the environment is identical to the default build stages. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/post/ptxd_make_world_execute.make28
1 files changed, 28 insertions, 0 deletions
diff --git a/rules/post/ptxd_make_world_execute.make b/rules/post/ptxd_make_world_execute.make
new file mode 100644
index 000000000..a60bfdef5
--- /dev/null
+++ b/rules/post/ptxd_make_world_execute.make
@@ -0,0 +1,28 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# world/execute
+#
+world/execute = \
+ $(call world/env, $(1)) \
+ pkg_execute_cmd="$(call ptx/escape,$(2))" \
+ ptxd_make_world_execute
+
+#
+# execute
+#
+execute = \
+ $(call world/env, $(1)) \
+ pkg_execute_cmd="$(call ptx/escape,$(2))" \
+ ptxd_make_execute
+
+
+# vim: syntax=make