From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Fri, 7 Aug 2020 12:44:24 +0200 Message-Id: <20200807104425.30276-2-rhi@pengutronix.de> In-Reply-To: <20200807104425.30276-1-rhi@pengutronix.de> References: <20200807104425.30276-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 2/3] barebox, kernel: enable use of {allyes, allno, allmod, alldef, rand}config List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber These config targets are documented in the man page, but until now, they only resulted in an error: $ ptxdist alldefconfig kernel ptxdist: Checking dependencies. This may take some seconds. make: *** No rule to make target 'kernel_alldefconfig'. Stop. Both kernel and barebox support all config targets which can be given on the ptxdist command line, so keep the match in the make recipe broad, as the ptxdist option parser will catch unknown config targets. Signed-off-by: Roland Hieber --- rules/barebox.make | 2 +- rules/barebox_mlo.make | 2 +- rules/kernel.make | 2 +- rules/templates/template-barebox-imx-habv4-make | 2 +- rules/templates/template-barebox-make | 2 +- rules/templates/template-kernel-make | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rules/barebox.make b/rules/barebox.make index b2ca49b9fb85..94534db39ebe 100644 --- a/rules/barebox.make +++ b/rules/barebox.make @@ -207,7 +207,7 @@ $(STATEDIR)/barebox.clean: # oldconfig / menuconfig # ---------------------------------------------------------------------------- -barebox_oldconfig barebox_menuconfig barebox_nconfig: $(STATEDIR)/barebox.extract +barebox_%config: $(STATEDIR)/barebox.extract @$(call world/kconfig, BAREBOX, $(subst barebox_,,$@)) # vim: syntax=make diff --git a/rules/barebox_mlo.make b/rules/barebox_mlo.make index f0d79f151e08..ffb2741dae7f 100644 --- a/rules/barebox_mlo.make +++ b/rules/barebox_mlo.make @@ -97,7 +97,7 @@ $(STATEDIR)/barebox_mlo.clean: # oldconfig / menuconfig # ---------------------------------------------------------------------------- -barebox_mlo_oldconfig barebox_mlo_menuconfig barebox_mlo_nconfig: $(STATEDIR)/barebox_mlo.extract +barebox_mlo_%config: $(STATEDIR)/barebox_mlo.extract @if test -e $(BAREBOX_MLO_CONFIG); then \ cp $(BAREBOX_MLO_CONFIG) $(BAREBOX_MLO_DIR)/.config; \ fi diff --git a/rules/kernel.make b/rules/kernel.make index d1df7f98f515..89d4cf5daf7d 100644 --- a/rules/kernel.make +++ b/rules/kernel.make @@ -321,7 +321,7 @@ endif # oldconfig / menuconfig # ---------------------------------------------------------------------------- -kernel_oldconfig kernel_menuconfig kernel_nconfig: $(STATEDIR)/kernel.extract +kernel_%config: $(STATEDIR)/kernel.extract @$(call world/kconfig, KERNEL, $(subst kernel_,,$@)) # vim: syntax=make diff --git a/rules/templates/template-barebox-imx-habv4-make b/rules/templates/template-barebox-imx-habv4-make index 09c099bb5076..cfe4c2de36eb 100644 --- a/rules/templates/template-barebox-imx-habv4-make +++ b/rules/templates/template-barebox-imx-habv4-make @@ -112,7 +112,7 @@ $(STATEDIR)/barebox-@package@.clean: # oldconfig / menuconfig # ---------------------------------------------------------------------------- -barebox-@package@_oldconfig barebox-@package@_menuconfig barebox-@package@_nconfig: $(STATEDIR)/barebox-@package@.extract +barebox-@package@_%config: $(STATEDIR)/barebox-@package@.extract @$(call world/kconfig, BAREBOX_@PACKAGE@, $(subst barebox-@package@_,,$@)) # vim: syntax=make diff --git a/rules/templates/template-barebox-make b/rules/templates/template-barebox-make index dc30dc57c4b1..6a9599240b64 100644 --- a/rules/templates/template-barebox-make +++ b/rules/templates/template-barebox-make @@ -92,7 +92,7 @@ $(STATEDIR)/barebox-@package@.clean: # oldconfig / menuconfig # ---------------------------------------------------------------------------- -barebox-@package@_oldconfig barebox-@package@_menuconfig barebox-@package@_nconfig: $(STATEDIR)/barebox-@package@.extract +barebox-@package@_%config: $(STATEDIR)/barebox-@package@.extract @$(call world/kconfig, BAREBOX_@PACKAGE@, $(subst barebox-@package@_,,$@)) # vim: syntax=make diff --git a/rules/templates/template-kernel-make b/rules/templates/template-kernel-make index 77bcd628948d..73b39d0db718 100644 --- a/rules/templates/template-kernel-make +++ b/rules/templates/template-kernel-make @@ -115,7 +115,7 @@ $(STATEDIR)/kernel-@package@.targetinstall: # oldconfig / menuconfig # ---------------------------------------------------------------------------- -kernel-@package@_oldconfig kernel-@package@_menuconfig kernel-@package@_nconfig: $(STATEDIR)/kernel-@package@.extract +kernel-@package@_%config: $(STATEDIR)/kernel-@package@.extract @$(call world/kconfig, KERNEL_@PACKAGE@, $(subst kernel-@package@_,,$@)) # vim: syntax=make -- 2.28.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de