mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
@ 2020-06-15 22:56 Marco Felsch
  2020-06-16  8:02 ` Roland Hieber
  2020-06-19  6:05 ` Michael Olbrich
  0 siblings, 2 replies; 9+ messages in thread
From: Marco Felsch @ 2020-06-15 22:56 UTC (permalink / raw)
  To: ptxdist

Allow users to specify other barebox image naming schemes. Now users can
specify a list of:
 - unique image names and/or
 - matching name patterns using wildcards.

While on it I fixed the leaking image-results upon a 'ptxdist clean
barebox' command. Now all barebox artefacts are removed from the
$(IMAGEDIR).

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 platforms/barebox.in |  9 +++++++++
 rules/barebox.make   | 19 +++++++++++++------
 2 files changed, 22 insertions(+), 6 deletions(-)

diff --git a/platforms/barebox.in b/platforms/barebox.in
index 526d7ede4..b92cf485e 100644
--- a/platforms/barebox.in
+++ b/platforms/barebox.in
@@ -39,6 +39,15 @@ config BAREBOX_CONFIG
 	  This entry specifies the .config file used to compile
 	  barebox.
 
+config BAREBOX_IMAGES
+	prompt "barebox images to install"
+	string
+	default "barebox-*.img"
+	help
+	  A comma seperated list of images which should be installed
+	  into the $(IMAGEDIR). The list can contain full image names
+	  and/or wildcard pattern image names.
+
 config BAREBOX_EXTRA_ENV
 	prompt "extend the builtin barebox environment"
 	bool
diff --git a/rules/barebox.make b/rules/barebox.make
index d1b5fc598..65bb8251e 100644
--- a/rules/barebox.make
+++ b/rules/barebox.make
@@ -148,6 +148,9 @@ $(STATEDIR)/barebox.install:
 # Target-Install
 # ----------------------------------------------------------------------------
 
+BAREBOX_IMAGES_DIR := $(BAREBOX_BUILD_DIR)/images
+BAREBOX_IMAGES := $(strip $(subst $(ptx/def/comma),$(ptx/def/space),$(call remove_quotes, $(PTXCONF_BAREBOX_IMAGES))))
+
 $(STATEDIR)/barebox.targetinstall:
 	@$(call targetinfo)
 
@@ -166,14 +169,15 @@ ifneq ($(strip $(BAREBOX_PROGS_TARGET_y)),)
 endif
 
 	@rm -f $(IMAGEDIR)/barebox-image
-	@if [ -d $(BAREBOX_BUILD_DIR)/images ]; then \
-		find $(BAREBOX_BUILD_DIR)/images/ -name "barebox-*.img" | sort | while read image; do \
-			install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
+	@$(foreach _image, $(BAREBOX_IMAGES), \
+		$(foreach image, $(wildcard $(BAREBOX_IMAGES_DIR)/$(_image)), \
+			install -D -m644 $(image) $(IMAGEDIR)/$(notdir $(image)); \
 			if [ ! -e $(IMAGEDIR)/barebox-image ]; then \
-				ln -sf `basename $$image` $(IMAGEDIR)/barebox-image; \
+				ln -sf $(notdir $(image)) $(IMAGEDIR)/barebox-image; \
 			fi; \
-		done; \
-	fi
+		) \
+	)
+
 	@if [ -e $(IMAGEDIR)/barebox-image ]; then \
 		:; \
 	elif [ -e $(BAREBOX_BUILD_DIR)/barebox-flash-image ]; then \
@@ -199,6 +203,9 @@ $(STATEDIR)/barebox.clean:
 	@$(call clean_pkg, BAREBOX)
 	@$(foreach prog, $(BAREBOX_PROGS_HOST), \
 		rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl))
+	@$(foreach _image, $(BAREBOX_IMAGES), \
+		$(foreach image, $(wildcard $(IMAGEDIR)/$(_image)), \
+			rm -vf $(image);))
 	@rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment
 
 # ----------------------------------------------------------------------------
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
  2020-06-15 22:56 [ptxdist] [PATCH] barebox: add option to specify barebox image patterns Marco Felsch
@ 2020-06-16  8:02 ` Roland Hieber
  2020-06-16  8:20   ` Roland Hieber
  2020-06-16  8:34   ` Bastian Krause
  2020-06-19  6:05 ` Michael Olbrich
  1 sibling, 2 replies; 9+ messages in thread
From: Roland Hieber @ 2020-06-16  8:02 UTC (permalink / raw)
  To: Marco Felsch; +Cc: ptxdist

On Tue, Jun 16, 2020 at 12:56:18AM +0200, Marco Felsch wrote:
> Allow users to specify other barebox image naming schemes. Now users can
> specify a list of:
>  - unique image names and/or
>  - matching name patterns using wildcards.
> 
> While on it I fixed the leaking image-results upon a 'ptxdist clean
> barebox' command. Now all barebox artefacts are removed from the
> $(IMAGEDIR).
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---

LGTM on first glance, could you do the same for
rules/templates/template-barebox-make too please?

 - Roland

>  platforms/barebox.in |  9 +++++++++
>  rules/barebox.make   | 19 +++++++++++++------
>  2 files changed, 22 insertions(+), 6 deletions(-)
> 
> diff --git a/platforms/barebox.in b/platforms/barebox.in
> index 526d7ede4..b92cf485e 100644
> --- a/platforms/barebox.in
> +++ b/platforms/barebox.in
> @@ -39,6 +39,15 @@ config BAREBOX_CONFIG
>  	  This entry specifies the .config file used to compile
>  	  barebox.
>  
> +config BAREBOX_IMAGES
> +	prompt "barebox images to install"
> +	string
> +	default "barebox-*.img"
> +	help
> +	  A comma seperated list of images which should be installed
> +	  into the $(IMAGEDIR). The list can contain full image names
> +	  and/or wildcard pattern image names.
> +
>  config BAREBOX_EXTRA_ENV
>  	prompt "extend the builtin barebox environment"
>  	bool
> diff --git a/rules/barebox.make b/rules/barebox.make
> index d1b5fc598..65bb8251e 100644
> --- a/rules/barebox.make
> +++ b/rules/barebox.make
> @@ -148,6 +148,9 @@ $(STATEDIR)/barebox.install:
>  # Target-Install
>  # ----------------------------------------------------------------------------
>  
> +BAREBOX_IMAGES_DIR := $(BAREBOX_BUILD_DIR)/images
> +BAREBOX_IMAGES := $(strip $(subst $(ptx/def/comma),$(ptx/def/space),$(call remove_quotes, $(PTXCONF_BAREBOX_IMAGES))))
> +
>  $(STATEDIR)/barebox.targetinstall:
>  	@$(call targetinfo)
>  
> @@ -166,14 +169,15 @@ ifneq ($(strip $(BAREBOX_PROGS_TARGET_y)),)
>  endif
>  
>  	@rm -f $(IMAGEDIR)/barebox-image
> -	@if [ -d $(BAREBOX_BUILD_DIR)/images ]; then \
> -		find $(BAREBOX_BUILD_DIR)/images/ -name "barebox-*.img" | sort | while read image; do \
> -			install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
> +	@$(foreach _image, $(BAREBOX_IMAGES), \
> +		$(foreach image, $(wildcard $(BAREBOX_IMAGES_DIR)/$(_image)), \
> +			install -D -m644 $(image) $(IMAGEDIR)/$(notdir $(image)); \
>  			if [ ! -e $(IMAGEDIR)/barebox-image ]; then \
> -				ln -sf `basename $$image` $(IMAGEDIR)/barebox-image; \
> +				ln -sf $(notdir $(image)) $(IMAGEDIR)/barebox-image; \
>  			fi; \
> -		done; \
> -	fi
> +		) \
> +	)
> +
>  	@if [ -e $(IMAGEDIR)/barebox-image ]; then \
>  		:; \
>  	elif [ -e $(BAREBOX_BUILD_DIR)/barebox-flash-image ]; then \
> @@ -199,6 +203,9 @@ $(STATEDIR)/barebox.clean:
>  	@$(call clean_pkg, BAREBOX)
>  	@$(foreach prog, $(BAREBOX_PROGS_HOST), \
>  		rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl))
> +	@$(foreach _image, $(BAREBOX_IMAGES), \
> +		$(foreach image, $(wildcard $(IMAGEDIR)/$(_image)), \
> +			rm -vf $(image);))
>  	@rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment
>  
>  # ----------------------------------------------------------------------------
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
  2020-06-16  8:02 ` Roland Hieber
@ 2020-06-16  8:20   ` Roland Hieber
  2020-06-16  8:34   ` Bastian Krause
  1 sibling, 0 replies; 9+ messages in thread
From: Roland Hieber @ 2020-06-16  8:20 UTC (permalink / raw)
  To: Marco Felsch; +Cc: ptxdist

On Tue, Jun 16, 2020 at 10:02:01AM +0200, Roland Hieber wrote:
> On Tue, Jun 16, 2020 at 12:56:18AM +0200, Marco Felsch wrote:
> > Allow users to specify other barebox image naming schemes. Now users can
> > specify a list of:
> >  - unique image names and/or
> >  - matching name patterns using wildcards.
> > 
> > While on it I fixed the leaking image-results upon a 'ptxdist clean
> > barebox' command. Now all barebox artefacts are removed from the
> > $(IMAGEDIR).
> > 
> > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > ---
> 
> LGTM on first glance, could you do the same for
> rules/templates/template-barebox-make too please?
> 
>  - Roland
> 
> >  platforms/barebox.in |  9 +++++++++
> >  rules/barebox.make   | 19 +++++++++++++------
> >  2 files changed, 22 insertions(+), 6 deletions(-)
> > 
> > diff --git a/platforms/barebox.in b/platforms/barebox.in
> > index 526d7ede4..b92cf485e 100644
> > --- a/platforms/barebox.in
> > +++ b/platforms/barebox.in
> > @@ -39,6 +39,15 @@ config BAREBOX_CONFIG
> >  	  This entry specifies the .config file used to compile
> >  	  barebox.
> >  
> > +config BAREBOX_IMAGES
> > +	prompt "barebox images to install"
> > +	string
> > +	default "barebox-*.img"
> > +	help
> > +	  A comma seperated list of images which should be installed
> > +	  into the $(IMAGEDIR). The list can contain full image names
> > +	  and/or wildcard pattern image names.
> > +
> >  config BAREBOX_EXTRA_ENV
> >  	prompt "extend the builtin barebox environment"
> >  	bool
> > diff --git a/rules/barebox.make b/rules/barebox.make
> > index d1b5fc598..65bb8251e 100644
> > --- a/rules/barebox.make
> > +++ b/rules/barebox.make
> > @@ -148,6 +148,9 @@ $(STATEDIR)/barebox.install:
> >  # Target-Install
> >  # ----------------------------------------------------------------------------
> >  
> > +BAREBOX_IMAGES_DIR := $(BAREBOX_BUILD_DIR)/images
> > +BAREBOX_IMAGES := $(strip $(subst $(ptx/def/comma),$(ptx/def/space),$(call remove_quotes, $(PTXCONF_BAREBOX_IMAGES))))
> > +
> >  $(STATEDIR)/barebox.targetinstall:
> >  	@$(call targetinfo)
> >  
> > @@ -166,14 +169,15 @@ ifneq ($(strip $(BAREBOX_PROGS_TARGET_y)),)
> >  endif
> >  
> >  	@rm -f $(IMAGEDIR)/barebox-image
> > -	@if [ -d $(BAREBOX_BUILD_DIR)/images ]; then \
> > -		find $(BAREBOX_BUILD_DIR)/images/ -name "barebox-*.img" | sort | while read image; do \
> > -			install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
> > +	@$(foreach _image, $(BAREBOX_IMAGES), \
> > +		$(foreach image, $(wildcard $(BAREBOX_IMAGES_DIR)/$(_image)), \
> > +			install -D -m644 $(image) $(IMAGEDIR)/$(notdir $(image)); \
> >  			if [ ! -e $(IMAGEDIR)/barebox-image ]; then \
> > -				ln -sf `basename $$image` $(IMAGEDIR)/barebox-image; \
> > +				ln -sf $(notdir $(image)) $(IMAGEDIR)/barebox-image; \
> >  			fi; \

Please also use $(ptx/nl) instead of the ; at the end of the $(foreach)
loops so that the shell does not complain about too long lines.

 - Roland

> > -		done; \
> > -	fi
> > +		) \
> > +	)
> > +
> >  	@if [ -e $(IMAGEDIR)/barebox-image ]; then \
> >  		:; \
> >  	elif [ -e $(BAREBOX_BUILD_DIR)/barebox-flash-image ]; then \
> > @@ -199,6 +203,9 @@ $(STATEDIR)/barebox.clean:
> >  	@$(call clean_pkg, BAREBOX)
> >  	@$(foreach prog, $(BAREBOX_PROGS_HOST), \
> >  		rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl))
> > +	@$(foreach _image, $(BAREBOX_IMAGES), \
> > +		$(foreach image, $(wildcard $(IMAGEDIR)/$(_image)), \
> > +			rm -vf $(image);))
> >  	@rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment
> >  
> >  # ----------------------------------------------------------------------------
> > -- 
> > 2.20.1
> > 
> > 
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> > 
> 
> -- 
> Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
> Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
> 31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
  2020-06-16  8:02 ` Roland Hieber
  2020-06-16  8:20   ` Roland Hieber
@ 2020-06-16  8:34   ` Bastian Krause
  2020-06-16  9:07     ` Roland Hieber
  2020-06-16 13:30     ` Marco Felsch
  1 sibling, 2 replies; 9+ messages in thread
From: Bastian Krause @ 2020-06-16  8:34 UTC (permalink / raw)
  To: ptxdist, Roland Hieber, Marco Felsch


On 6/16/20 10:02 AM, Roland Hieber wrote:
> On Tue, Jun 16, 2020 at 12:56:18AM +0200, Marco Felsch wrote:
>> Allow users to specify other barebox image naming schemes. Now users can
>> specify a list of:
>>  - unique image names and/or
>>  - matching name patterns using wildcards.
>>
>> While on it I fixed the leaking image-results upon a 'ptxdist clean
>> barebox' command. Now all barebox artefacts are removed from the
>> $(IMAGEDIR).
>>
>> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
>> ---
> 
> LGTM on first glance, could you do the same for
> rules/templates/template-barebox-make too please?

Is this really necessary? The idea of the barebox rule template is to
generate a BSP specific barebox rule, right? We already have..

BAREBOX_@PACKAGE@_IMAGES := @image@

..in that template, so we don't really benefit from a config option here.

Regards,
Bastian

> 
>  - Roland
> 
>>  platforms/barebox.in |  9 +++++++++
>>  rules/barebox.make   | 19 +++++++++++++------
>>  2 files changed, 22 insertions(+), 6 deletions(-)
>>
>> diff --git a/platforms/barebox.in b/platforms/barebox.in
>> index 526d7ede4..b92cf485e 100644
>> --- a/platforms/barebox.in
>> +++ b/platforms/barebox.in
>> @@ -39,6 +39,15 @@ config BAREBOX_CONFIG
>>  	  This entry specifies the .config file used to compile
>>  	  barebox.
>>  
>> +config BAREBOX_IMAGES
>> +	prompt "barebox images to install"
>> +	string
>> +	default "barebox-*.img"
>> +	help
>> +	  A comma seperated list of images which should be installed
>> +	  into the $(IMAGEDIR). The list can contain full image names
>> +	  and/or wildcard pattern image names.
>> +
>>  config BAREBOX_EXTRA_ENV
>>  	prompt "extend the builtin barebox environment"
>>  	bool
>> diff --git a/rules/barebox.make b/rules/barebox.make
>> index d1b5fc598..65bb8251e 100644
>> --- a/rules/barebox.make
>> +++ b/rules/barebox.make
>> @@ -148,6 +148,9 @@ $(STATEDIR)/barebox.install:
>>  # Target-Install
>>  # ----------------------------------------------------------------------------
>>  
>> +BAREBOX_IMAGES_DIR := $(BAREBOX_BUILD_DIR)/images
>> +BAREBOX_IMAGES := $(strip $(subst $(ptx/def/comma),$(ptx/def/space),$(call remove_quotes, $(PTXCONF_BAREBOX_IMAGES))))
>> +
>>  $(STATEDIR)/barebox.targetinstall:
>>  	@$(call targetinfo)
>>  
>> @@ -166,14 +169,15 @@ ifneq ($(strip $(BAREBOX_PROGS_TARGET_y)),)
>>  endif
>>  
>>  	@rm -f $(IMAGEDIR)/barebox-image
>> -	@if [ -d $(BAREBOX_BUILD_DIR)/images ]; then \
>> -		find $(BAREBOX_BUILD_DIR)/images/ -name "barebox-*.img" | sort | while read image; do \
>> -			install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
>> +	@$(foreach _image, $(BAREBOX_IMAGES), \
>> +		$(foreach image, $(wildcard $(BAREBOX_IMAGES_DIR)/$(_image)), \
>> +			install -D -m644 $(image) $(IMAGEDIR)/$(notdir $(image)); \
>>  			if [ ! -e $(IMAGEDIR)/barebox-image ]; then \
>> -				ln -sf `basename $$image` $(IMAGEDIR)/barebox-image; \
>> +				ln -sf $(notdir $(image)) $(IMAGEDIR)/barebox-image; \
>>  			fi; \
>> -		done; \
>> -	fi
>> +		) \
>> +	)
>> +
>>  	@if [ -e $(IMAGEDIR)/barebox-image ]; then \
>>  		:; \
>>  	elif [ -e $(BAREBOX_BUILD_DIR)/barebox-flash-image ]; then \
>> @@ -199,6 +203,9 @@ $(STATEDIR)/barebox.clean:
>>  	@$(call clean_pkg, BAREBOX)
>>  	@$(foreach prog, $(BAREBOX_PROGS_HOST), \
>>  		rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl))
>> +	@$(foreach _image, $(BAREBOX_IMAGES), \
>> +		$(foreach image, $(wildcard $(IMAGEDIR)/$(_image)), \
>> +			rm -vf $(image);))
>>  	@rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment
>>  
>>  # ----------------------------------------------------------------------------
>> -- 
>> 2.20.1
>>
>>
>> _______________________________________________
>> ptxdist mailing list
>> ptxdist@pengutronix.de
>> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
>>
> 


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
  2020-06-16  8:34   ` Bastian Krause
@ 2020-06-16  9:07     ` Roland Hieber
  2020-06-16 13:30     ` Marco Felsch
  1 sibling, 0 replies; 9+ messages in thread
From: Roland Hieber @ 2020-06-16  9:07 UTC (permalink / raw)
  To: Bastian Krause; +Cc: ptxdist, Marco Felsch

On Tue, Jun 16, 2020 at 10:34:32AM +0200, Bastian Krause wrote:
> 
> On 6/16/20 10:02 AM, Roland Hieber wrote:
> > On Tue, Jun 16, 2020 at 12:56:18AM +0200, Marco Felsch wrote:
> >> Allow users to specify other barebox image naming schemes. Now users can
> >> specify a list of:
> >>  - unique image names and/or
> >>  - matching name patterns using wildcards.
> >>
> >> While on it I fixed the leaking image-results upon a 'ptxdist clean
> >> barebox' command. Now all barebox artefacts are removed from the
> >> $(IMAGEDIR).
> >>
> >> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> >> ---
> > 
> > LGTM on first glance, could you do the same for
> > rules/templates/template-barebox-make too please?
> 
> Is this really necessary? The idea of the barebox rule template is to
> generate a BSP specific barebox rule, right? We already have..
> 
> BAREBOX_@PACKAGE@_IMAGES := @image@
> 
> ..in that template, so we don't really benefit from a config option here.

Ah yes, you're right, I actually didn't look at the template, but
thought that it was in the same state as the barebox rule… Sorry for
the noise.

 - Roland

> 
> Regards,
> Bastian
> 
> > 
> >  - Roland
> > 
> >>  platforms/barebox.in |  9 +++++++++
> >>  rules/barebox.make   | 19 +++++++++++++------
> >>  2 files changed, 22 insertions(+), 6 deletions(-)
> >>
> >> diff --git a/platforms/barebox.in b/platforms/barebox.in
> >> index 526d7ede4..b92cf485e 100644
> >> --- a/platforms/barebox.in
> >> +++ b/platforms/barebox.in
> >> @@ -39,6 +39,15 @@ config BAREBOX_CONFIG
> >>  	  This entry specifies the .config file used to compile
> >>  	  barebox.
> >>  
> >> +config BAREBOX_IMAGES
> >> +	prompt "barebox images to install"
> >> +	string
> >> +	default "barebox-*.img"
> >> +	help
> >> +	  A comma seperated list of images which should be installed
> >> +	  into the $(IMAGEDIR). The list can contain full image names
> >> +	  and/or wildcard pattern image names.
> >> +
> >>  config BAREBOX_EXTRA_ENV
> >>  	prompt "extend the builtin barebox environment"
> >>  	bool
> >> diff --git a/rules/barebox.make b/rules/barebox.make
> >> index d1b5fc598..65bb8251e 100644
> >> --- a/rules/barebox.make
> >> +++ b/rules/barebox.make
> >> @@ -148,6 +148,9 @@ $(STATEDIR)/barebox.install:
> >>  # Target-Install
> >>  # ----------------------------------------------------------------------------
> >>  
> >> +BAREBOX_IMAGES_DIR := $(BAREBOX_BUILD_DIR)/images
> >> +BAREBOX_IMAGES := $(strip $(subst $(ptx/def/comma),$(ptx/def/space),$(call remove_quotes, $(PTXCONF_BAREBOX_IMAGES))))
> >> +
> >>  $(STATEDIR)/barebox.targetinstall:
> >>  	@$(call targetinfo)
> >>  
> >> @@ -166,14 +169,15 @@ ifneq ($(strip $(BAREBOX_PROGS_TARGET_y)),)
> >>  endif
> >>  
> >>  	@rm -f $(IMAGEDIR)/barebox-image
> >> -	@if [ -d $(BAREBOX_BUILD_DIR)/images ]; then \
> >> -		find $(BAREBOX_BUILD_DIR)/images/ -name "barebox-*.img" | sort | while read image; do \
> >> -			install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
> >> +	@$(foreach _image, $(BAREBOX_IMAGES), \
> >> +		$(foreach image, $(wildcard $(BAREBOX_IMAGES_DIR)/$(_image)), \
> >> +			install -D -m644 $(image) $(IMAGEDIR)/$(notdir $(image)); \
> >>  			if [ ! -e $(IMAGEDIR)/barebox-image ]; then \
> >> -				ln -sf `basename $$image` $(IMAGEDIR)/barebox-image; \
> >> +				ln -sf $(notdir $(image)) $(IMAGEDIR)/barebox-image; \
> >>  			fi; \
> >> -		done; \
> >> -	fi
> >> +		) \
> >> +	)
> >> +
> >>  	@if [ -e $(IMAGEDIR)/barebox-image ]; then \
> >>  		:; \
> >>  	elif [ -e $(BAREBOX_BUILD_DIR)/barebox-flash-image ]; then \
> >> @@ -199,6 +203,9 @@ $(STATEDIR)/barebox.clean:
> >>  	@$(call clean_pkg, BAREBOX)
> >>  	@$(foreach prog, $(BAREBOX_PROGS_HOST), \
> >>  		rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl))
> >> +	@$(foreach _image, $(BAREBOX_IMAGES), \
> >> +		$(foreach image, $(wildcard $(IMAGEDIR)/$(_image)), \
> >> +			rm -vf $(image);))
> >>  	@rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment
> >>  
> >>  # ----------------------------------------------------------------------------
> >> -- 
> >> 2.20.1
> >>
> >>
> >> _______________________________________________
> >> ptxdist mailing list
> >> ptxdist@pengutronix.de
> >> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> >>
> > 
> 
> 
> -- 
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
  2020-06-16  8:34   ` Bastian Krause
  2020-06-16  9:07     ` Roland Hieber
@ 2020-06-16 13:30     ` Marco Felsch
  2020-06-16 15:37       ` Roland Hieber
  1 sibling, 1 reply; 9+ messages in thread
From: Marco Felsch @ 2020-06-16 13:30 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

Hi Bastian, Roland,

thanks for the quick response and comments :)

On 20-06-16 10:34, Bastian Krause wrote:
> 
> On 6/16/20 10:02 AM, Roland Hieber wrote:
> > On Tue, Jun 16, 2020 at 12:56:18AM +0200, Marco Felsch wrote:
> >> Allow users to specify other barebox image naming schemes. Now users can
> >> specify a list of:
> >>  - unique image names and/or
> >>  - matching name patterns using wildcards.
> >>
> >> While on it I fixed the leaking image-results upon a 'ptxdist clean
> >> barebox' command. Now all barebox artefacts are removed from the
> >> $(IMAGEDIR).
> >>
> >> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> >> ---
> > 
> > LGTM on first glance, could you do the same for
> > rules/templates/template-barebox-make too please?
> 
> Is this really necessary? The idea of the barebox rule template is to
> generate a BSP specific barebox rule, right? We already have..
> 
> BAREBOX_@PACKAGE@_IMAGES := @image@
> 
> ..in that template, so we don't really benefit from a config option here.

My idea was to _hopefully_ remove the usage of this template and
instead use ptxdist upstream mechanism:
 - layer -> different barebox configs
 - this patch -> different barebox images

Regards,
  Marco

> Regards,
> Bastian
> 
> > 
> >  - Roland
> > 
> >>  platforms/barebox.in |  9 +++++++++
> >>  rules/barebox.make   | 19 +++++++++++++------
> >>  2 files changed, 22 insertions(+), 6 deletions(-)
> >>
> >> diff --git a/platforms/barebox.in b/platforms/barebox.in
> >> index 526d7ede4..b92cf485e 100644
> >> --- a/platforms/barebox.in
> >> +++ b/platforms/barebox.in
> >> @@ -39,6 +39,15 @@ config BAREBOX_CONFIG
> >>  	  This entry specifies the .config file used to compile
> >>  	  barebox.
> >>  
> >> +config BAREBOX_IMAGES
> >> +	prompt "barebox images to install"
> >> +	string
> >> +	default "barebox-*.img"
> >> +	help
> >> +	  A comma seperated list of images which should be installed
> >> +	  into the $(IMAGEDIR). The list can contain full image names
> >> +	  and/or wildcard pattern image names.
> >> +
> >>  config BAREBOX_EXTRA_ENV
> >>  	prompt "extend the builtin barebox environment"
> >>  	bool
> >> diff --git a/rules/barebox.make b/rules/barebox.make
> >> index d1b5fc598..65bb8251e 100644
> >> --- a/rules/barebox.make
> >> +++ b/rules/barebox.make
> >> @@ -148,6 +148,9 @@ $(STATEDIR)/barebox.install:
> >>  # Target-Install
> >>  # ----------------------------------------------------------------------------
> >>  
> >> +BAREBOX_IMAGES_DIR := $(BAREBOX_BUILD_DIR)/images
> >> +BAREBOX_IMAGES := $(strip $(subst $(ptx/def/comma),$(ptx/def/space),$(call remove_quotes, $(PTXCONF_BAREBOX_IMAGES))))
> >> +
> >>  $(STATEDIR)/barebox.targetinstall:
> >>  	@$(call targetinfo)
> >>  
> >> @@ -166,14 +169,15 @@ ifneq ($(strip $(BAREBOX_PROGS_TARGET_y)),)
> >>  endif
> >>  
> >>  	@rm -f $(IMAGEDIR)/barebox-image
> >> -	@if [ -d $(BAREBOX_BUILD_DIR)/images ]; then \
> >> -		find $(BAREBOX_BUILD_DIR)/images/ -name "barebox-*.img" | sort | while read image; do \
> >> -			install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
> >> +	@$(foreach _image, $(BAREBOX_IMAGES), \
> >> +		$(foreach image, $(wildcard $(BAREBOX_IMAGES_DIR)/$(_image)), \
> >> +			install -D -m644 $(image) $(IMAGEDIR)/$(notdir $(image)); \
> >>  			if [ ! -e $(IMAGEDIR)/barebox-image ]; then \
> >> -				ln -sf `basename $$image` $(IMAGEDIR)/barebox-image; \
> >> +				ln -sf $(notdir $(image)) $(IMAGEDIR)/barebox-image; \
> >>  			fi; \
> >> -		done; \
> >> -	fi
> >> +		) \
> >> +	)
> >> +
> >>  	@if [ -e $(IMAGEDIR)/barebox-image ]; then \
> >>  		:; \
> >>  	elif [ -e $(BAREBOX_BUILD_DIR)/barebox-flash-image ]; then \
> >> @@ -199,6 +203,9 @@ $(STATEDIR)/barebox.clean:
> >>  	@$(call clean_pkg, BAREBOX)
> >>  	@$(foreach prog, $(BAREBOX_PROGS_HOST), \
> >>  		rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl))
> >> +	@$(foreach _image, $(BAREBOX_IMAGES), \
> >> +		$(foreach image, $(wildcard $(IMAGEDIR)/$(_image)), \
> >> +			rm -vf $(image);))
> >>  	@rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment
> >>  
> >>  # ----------------------------------------------------------------------------
> >> -- 
> >> 2.20.1
> >>
> >>
> >> _______________________________________________
> >> ptxdist mailing list
> >> ptxdist@pengutronix.de
> >> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> >>
> > 
> 
> 
> -- 
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
  2020-06-16 13:30     ` Marco Felsch
@ 2020-06-16 15:37       ` Roland Hieber
  0 siblings, 0 replies; 9+ messages in thread
From: Roland Hieber @ 2020-06-16 15:37 UTC (permalink / raw)
  To: Marco Felsch; +Cc: ptxdist

On Tue, Jun 16, 2020 at 03:30:33PM +0200, Marco Felsch wrote:
> Hi Bastian, Roland,
> 
> thanks for the quick response and comments :)
> 
> On 20-06-16 10:34, Bastian Krause wrote:
> > 
> > On 6/16/20 10:02 AM, Roland Hieber wrote:
> > > On Tue, Jun 16, 2020 at 12:56:18AM +0200, Marco Felsch wrote:
> > >> Allow users to specify other barebox image naming schemes. Now users can
> > >> specify a list of:
> > >>  - unique image names and/or
> > >>  - matching name patterns using wildcards.
> > >>
> > >> While on it I fixed the leaking image-results upon a 'ptxdist clean
> > >> barebox' command. Now all barebox artefacts are removed from the
> > >> $(IMAGEDIR).
> > >>
> > >> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > >> ---
> > > 
> > > LGTM on first glance, could you do the same for
> > > rules/templates/template-barebox-make too please?
> > 
> > Is this really necessary? The idea of the barebox rule template is to
> > generate a BSP specific barebox rule, right? We already have..
> > 
> > BAREBOX_@PACKAGE@_IMAGES := @image@
> > 
> > ..in that template, so we don't really benefit from a config option here.
> 
> My idea was to _hopefully_ remove the usage of this template and
> instead use ptxdist upstream mechanism:
>  - layer -> different barebox configs
>  - this patch -> different barebox images

I think it would still be good to have this template in the future. For
example, in DistroKit, we have one platform which targets ARM-v7A
boards, and we can use the same kernel and userland here. But we still
need different barebox packages because we cannot target multiple board
families with one barebox config - in that case one barebox for Broadcom
BCM283x boards, one for ARM Vexpress, one for i.MX6, one for OMAP is
needed, even though they are all ARM-v7A platforms. Otherwise we would
need to introduce additional platforms, which would unnecessarily
duplicate the space needed to build images for all boards.

 - Roland

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
  2020-06-15 22:56 [ptxdist] [PATCH] barebox: add option to specify barebox image patterns Marco Felsch
  2020-06-16  8:02 ` Roland Hieber
@ 2020-06-19  6:05 ` Michael Olbrich
  2020-06-19  7:14   ` Marco Felsch
  1 sibling, 1 reply; 9+ messages in thread
From: Michael Olbrich @ 2020-06-19  6:05 UTC (permalink / raw)
  To: Marco Felsch; +Cc: ptxdist

On Tue, Jun 16, 2020 at 12:56:18AM +0200, Marco Felsch wrote:
> Allow users to specify other barebox image naming schemes. Now users can
> specify a list of:
>  - unique image names and/or
>  - matching name patterns using wildcards.
> 
> While on it I fixed the leaking image-results upon a 'ptxdist clean
> barebox' command. Now all barebox artefacts are removed from the
> $(IMAGEDIR).
> 
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> ---
>  platforms/barebox.in |  9 +++++++++
>  rules/barebox.make   | 19 +++++++++++++------
>  2 files changed, 22 insertions(+), 6 deletions(-)
> 
> diff --git a/platforms/barebox.in b/platforms/barebox.in
> index 526d7ede4..b92cf485e 100644
> --- a/platforms/barebox.in
> +++ b/platforms/barebox.in
> @@ -39,6 +39,15 @@ config BAREBOX_CONFIG
>  	  This entry specifies the .config file used to compile
>  	  barebox.
>  
> +config BAREBOX_IMAGES
> +	prompt "barebox images to install"
> +	string
> +	default "barebox-*.img"
> +	help
> +	  A comma seperated list of images which should be installed
> +	  into the $(IMAGEDIR). The list can contain full image names
> +	  and/or wildcard pattern image names.

Why comma seperated? Just use a space seperated list and avoid the
substitutions below.

Michael

> +
>  config BAREBOX_EXTRA_ENV
>  	prompt "extend the builtin barebox environment"
>  	bool
> diff --git a/rules/barebox.make b/rules/barebox.make
> index d1b5fc598..65bb8251e 100644
> --- a/rules/barebox.make
> +++ b/rules/barebox.make
> @@ -148,6 +148,9 @@ $(STATEDIR)/barebox.install:
>  # Target-Install
>  # ----------------------------------------------------------------------------
>  
> +BAREBOX_IMAGES_DIR := $(BAREBOX_BUILD_DIR)/images
> +BAREBOX_IMAGES := $(strip $(subst $(ptx/def/comma),$(ptx/def/space),$(call remove_quotes, $(PTXCONF_BAREBOX_IMAGES))))
> +
>  $(STATEDIR)/barebox.targetinstall:
>  	@$(call targetinfo)
>  
> @@ -166,14 +169,15 @@ ifneq ($(strip $(BAREBOX_PROGS_TARGET_y)),)
>  endif
>  
>  	@rm -f $(IMAGEDIR)/barebox-image
> -	@if [ -d $(BAREBOX_BUILD_DIR)/images ]; then \
> -		find $(BAREBOX_BUILD_DIR)/images/ -name "barebox-*.img" | sort | while read image; do \
> -			install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
> +	@$(foreach _image, $(BAREBOX_IMAGES), \
> +		$(foreach image, $(wildcard $(BAREBOX_IMAGES_DIR)/$(_image)), \
> +			install -D -m644 $(image) $(IMAGEDIR)/$(notdir $(image)); \
>  			if [ ! -e $(IMAGEDIR)/barebox-image ]; then \
> -				ln -sf `basename $$image` $(IMAGEDIR)/barebox-image; \
> +				ln -sf $(notdir $(image)) $(IMAGEDIR)/barebox-image; \
>  			fi; \
> -		done; \
> -	fi
> +		) \
> +	)
> +
>  	@if [ -e $(IMAGEDIR)/barebox-image ]; then \
>  		:; \
>  	elif [ -e $(BAREBOX_BUILD_DIR)/barebox-flash-image ]; then \
> @@ -199,6 +203,9 @@ $(STATEDIR)/barebox.clean:
>  	@$(call clean_pkg, BAREBOX)
>  	@$(foreach prog, $(BAREBOX_PROGS_HOST), \
>  		rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl))
> +	@$(foreach _image, $(BAREBOX_IMAGES), \
> +		$(foreach image, $(wildcard $(IMAGEDIR)/$(_image)), \
> +			rm -vf $(image);))
>  	@rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment
>  
>  # ----------------------------------------------------------------------------
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ptxdist] [PATCH] barebox: add option to specify barebox image patterns
  2020-06-19  6:05 ` Michael Olbrich
@ 2020-06-19  7:14   ` Marco Felsch
  0 siblings, 0 replies; 9+ messages in thread
From: Marco Felsch @ 2020-06-19  7:14 UTC (permalink / raw)
  To: ptxdist

On 20-06-19 08:05, Michael Olbrich wrote:
> On Tue, Jun 16, 2020 at 12:56:18AM +0200, Marco Felsch wrote:
> > Allow users to specify other barebox image naming schemes. Now users can
> > specify a list of:
> >  - unique image names and/or
> >  - matching name patterns using wildcards.
> > 
> > While on it I fixed the leaking image-results upon a 'ptxdist clean
> > barebox' command. Now all barebox artefacts are removed from the
> > $(IMAGEDIR).
> > 
> > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
> > ---
> >  platforms/barebox.in |  9 +++++++++
> >  rules/barebox.make   | 19 +++++++++++++------
> >  2 files changed, 22 insertions(+), 6 deletions(-)
> > 
> > diff --git a/platforms/barebox.in b/platforms/barebox.in
> > index 526d7ede4..b92cf485e 100644
> > --- a/platforms/barebox.in
> > +++ b/platforms/barebox.in
> > @@ -39,6 +39,15 @@ config BAREBOX_CONFIG
> >  	  This entry specifies the .config file used to compile
> >  	  barebox.
> >  
> > +config BAREBOX_IMAGES
> > +	prompt "barebox images to install"
> > +	string
> > +	default "barebox-*.img"
> > +	help
> > +	  A comma seperated list of images which should be installed
> > +	  into the $(IMAGEDIR). The list can contain full image names
> > +	  and/or wildcard pattern image names.
> 
> Why comma seperated? Just use a space seperated list and avoid the
> substitutions below.

Good point, I tought the DTS are also comma seperated, but they are
space seperated.. *Damn* I will change this and send a v2.

Regards,
  Marco

> Michael
> 
> > +
> >  config BAREBOX_EXTRA_ENV
> >  	prompt "extend the builtin barebox environment"
> >  	bool
> > diff --git a/rules/barebox.make b/rules/barebox.make
> > index d1b5fc598..65bb8251e 100644
> > --- a/rules/barebox.make
> > +++ b/rules/barebox.make
> > @@ -148,6 +148,9 @@ $(STATEDIR)/barebox.install:
> >  # Target-Install
> >  # ----------------------------------------------------------------------------
> >  
> > +BAREBOX_IMAGES_DIR := $(BAREBOX_BUILD_DIR)/images
> > +BAREBOX_IMAGES := $(strip $(subst $(ptx/def/comma),$(ptx/def/space),$(call remove_quotes, $(PTXCONF_BAREBOX_IMAGES))))
> > +
> >  $(STATEDIR)/barebox.targetinstall:
> >  	@$(call targetinfo)
> >  
> > @@ -166,14 +169,15 @@ ifneq ($(strip $(BAREBOX_PROGS_TARGET_y)),)
> >  endif
> >  
> >  	@rm -f $(IMAGEDIR)/barebox-image
> > -	@if [ -d $(BAREBOX_BUILD_DIR)/images ]; then \
> > -		find $(BAREBOX_BUILD_DIR)/images/ -name "barebox-*.img" | sort | while read image; do \
> > -			install -D -m644 $$image $(IMAGEDIR)/`basename $$image`; \
> > +	@$(foreach _image, $(BAREBOX_IMAGES), \
> > +		$(foreach image, $(wildcard $(BAREBOX_IMAGES_DIR)/$(_image)), \
> > +			install -D -m644 $(image) $(IMAGEDIR)/$(notdir $(image)); \
> >  			if [ ! -e $(IMAGEDIR)/barebox-image ]; then \
> > -				ln -sf `basename $$image` $(IMAGEDIR)/barebox-image; \
> > +				ln -sf $(notdir $(image)) $(IMAGEDIR)/barebox-image; \
> >  			fi; \
> > -		done; \
> > -	fi
> > +		) \
> > +	)
> > +
> >  	@if [ -e $(IMAGEDIR)/barebox-image ]; then \
> >  		:; \
> >  	elif [ -e $(BAREBOX_BUILD_DIR)/barebox-flash-image ]; then \
> > @@ -199,6 +203,9 @@ $(STATEDIR)/barebox.clean:
> >  	@$(call clean_pkg, BAREBOX)
> >  	@$(foreach prog, $(BAREBOX_PROGS_HOST), \
> >  		rm -vf $(PTXDIST_SYSROOT_HOST)/bin/$(notdir $(prog))$(ptx/nl))
> > +	@$(foreach _image, $(BAREBOX_IMAGES), \
> > +		$(foreach image, $(wildcard $(IMAGEDIR)/$(_image)), \
> > +			rm -vf $(image);))
> >  	@rm -vf $(IMAGEDIR)/barebox-image $(IMAGEDIR)/barebox-default-environment
> >  
> >  # ----------------------------------------------------------------------------
> > -- 
> > 2.20.1
> > 
> > 
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> > 
> 
> -- 
> Pengutronix e.K.                           |                             |
> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-06-19  7:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 22:56 [ptxdist] [PATCH] barebox: add option to specify barebox image patterns Marco Felsch
2020-06-16  8:02 ` Roland Hieber
2020-06-16  8:20   ` Roland Hieber
2020-06-16  8:34   ` Bastian Krause
2020-06-16  9:07     ` Roland Hieber
2020-06-16 13:30     ` Marco Felsch
2020-06-16 15:37       ` Roland Hieber
2020-06-19  6:05 ` Michael Olbrich
2020-06-19  7:14   ` Marco Felsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox