From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Michael Olbrich Date: Mon, 4 Nov 2019 22:21:32 +0100 Message-Id: <20191104212147.22470-2-m.olbrich@pengutronix.de> In-Reply-To: <20191104212147.22470-1-m.olbrich@pengutronix.de> References: <20191104212147.22470-1-m.olbrich@pengutronix.de> MIME-Version: 1.0 Subject: [DistroKit] [PATCH v2 01/16] v7a: barebox-common: modify oldconfig to affect all bareboxes List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: distrokit-bounces@pengutronix.de Sender: "DistroKit" To: distrokit@pengutronix.de Cc: Michael Olbrich , Ahmad Fatoum From: Ahmad Fatoum 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 Signed-off-by: Michael Olbrich --- 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