summaryrefslogtreecommitdiffstats
path: root/rules/post
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-11-04 22:21:32 +0100
committerRobert Schwebel <r.schwebel@pengutronix.de>2019-11-04 23:08:22 +0100
commit28efd98e9c14516499f46e7907cc5aeffe69d7aa (patch)
tree3ec14cd7527c9f6346424c88e44f1f18f3a18457 /rules/post
parent4a447b27b73bf4ac3c22144809fb571b78aa8ed9 (diff)
downloadDistroKit-28efd98e9c14516499f46e7907cc5aeffe69d7aa.tar.gz
DistroKit-28efd98e9c14516499f46e7907cc5aeffe69d7aa.tar.xz
v7a: barebox-common: modify oldconfig to affect all bareboxes
With barebox updates, oldconfig needs to be rerun for every barebox in the BSP, to resync the configs. With this change this can be done at once by issuing a ptxdist oldconfig barebox-common. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/post')
-rw-r--r--rules/post/barebox-common.make13
1 files changed, 13 insertions, 0 deletions
diff --git a/rules/post/barebox-common.make b/rules/post/barebox-common.make
new file mode 100644
index 0000000..d78e0f1
--- /dev/null
+++ b/rules/post/barebox-common.make
@@ -0,0 +1,13 @@
+# ----------------------------------------------------------------------------
+# oldconfig
+# ----------------------------------------------------------------------------
+
+ifneq ($(filter barebox-common_oldconfig,$(MAKECMDGOALS)),)
+$(eval $(addsuffix _oldconfig,$(filter-out barebox-common, \
+ $(filter barebox-%, $(PTX_PACKAGES_SELECTED)))): barebox-common_oldconfig_$(ptx/nl))
+endif
+
+barebox-common_oldconfig: \
+ $(addsuffix _oldconfig,$(filter-out barebox-common, \
+ $(filter barebox-%, $(PTX_PACKAGES_SELECTED))))
+# vim: syntax=make