DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Michael Olbrich <m.olbrich@pengutronix.de>,
	Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH v2 01/16] v7a: barebox-common: modify oldconfig to affect all bareboxes
Date: Mon,  4 Nov 2019 22:21:32 +0100	[thread overview]
Message-ID: <20191104212147.22470-2-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20191104212147.22470-1-m.olbrich@pengutronix.de>

From: Ahmad Fatoum <a.fatoum@pengutronix.de>

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>
---
 configs/platform-v7a/rules/barebox-common.make |  5 ++++-
 rules/post/barebox-common.make                 | 13 +++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 rules/post/barebox-common.make

diff --git a/configs/platform-v7a/rules/barebox-common.make b/configs/platform-v7a/rules/barebox-common.make
index c03c27ae0b52..84df4fe63d03 100644
--- a/configs/platform-v7a/rules/barebox-common.make
+++ b/configs/platform-v7a/rules/barebox-common.make
@@ -71,7 +71,10 @@ $(STATEDIR)/barebox-common.targetinstall:
 # oldconfig / menuconfig
 # ----------------------------------------------------------------------------
 
-barebox-common_oldconfig barebox-common_menuconfig barebox-common_nconfig: $(STATEDIR)/barebox-common.extract
+barebox-common_menuconfig barebox-common_nconfig: $(STATEDIR)/barebox-common.extract
 	@$(call world/kconfig, BAREBOX_COMMON, $(subst barebox-common_,,$@))
 
+barebox-common_oldconfig_: $(STATEDIR)/barebox-common.extract
+	@$(call world/kconfig, BAREBOX_COMMON, oldconfig)
+
 # vim: syntax=make
diff --git a/rules/post/barebox-common.make b/rules/post/barebox-common.make
new file mode 100644
index 000000000000..d78e0f1b1a83
--- /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
-- 
2.20.1


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

  reply	other threads:[~2019-11-04 21:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-04 21:21 [DistroKit] [PATCH v2 00/16] Barebox Update and Cleanup Michael Olbrich
2019-11-04 21:21 ` Michael Olbrich [this message]
2019-11-04 21:21 ` [DistroKit] [PATCH v2 02/16] v7a: barebox-common: add clean target that affects all bareboxes Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 03/16] v7a: barebox: version bump 2019.08.1 → 2019.10.0 Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 04/16] barebox-vexpress: sync with latest barebox template Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 05/16] barebox-mx6: " Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 06/16] barebox-rpi2: " Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 07/16] barebox-am335x-mlo: " Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 08/16] barebox-am335x: " Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 09/16] barebox-common: " Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 10/16] barebox-vexpress: remove installed files Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 11/16] barebox-rpi2: don't add a suffix to the images Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 12/16] barebox-am335x-mlo: actually remove images during 'clean' Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 13/16] barebox-am335x: " Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 14/16] barebox-mx6: " Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 15/16] barebox: create the .ptxdist-defaultenv symlink in the build dir Michael Olbrich
2019-11-04 21:21 ` [DistroKit] [PATCH v2 16/16] platform-v7a: vexpress: use only one core for barebox Michael Olbrich
2019-11-04 22:10 ` [DistroKit] [PATCH v2 00/16] Barebox Update and Cleanup Robert Schwebel
2019-11-04 22:42   ` Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191104212147.22470-2-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox