Re: [PATCH 01/10] Makefile: Add support to generate GZIP compressed raw u-boot binary

2023-07-18 Thread Simon Glass
Hi Manoj,

On Tue, 18 Jul 2023 at 01:13, Manoj Sai
 wrote:
>
> Hi Simon,
>
> Can you please suggest or briefly explain to me the steps to be
> followed to generate the compressed u-boot-nodtb.bin.gz and
> u-boot-nodtb.bin.lzma file  with the help of binman  ,
> when compression support is enabled . Can you provide me with any
> reference patch to get it done?

Yes, please see here:

https://u-boot.readthedocs.io/en/latest/develop/package/binman.html#compression

Regards,
Simon


>
> Thanks and regards,
> Manoj sai
> Amarula Solutions India Pvt. Ltd
>
> On Sun, Jul 2, 2023 at 9:04 PM Simon Glass  wrote:
> >
> > Hi Manoj,
> >
> > On Fri, 30 Jun 2023 at 13:12, Manoj Sai
> >  wrote:
> > >
> > > Add support for generating a GZIP-compressed raw U-boot binary.
> > >
> > > Signed-off-by: Manoj Sai 
> > > Signed-off-by: Suniel Mahesh 
> > > ---
> > >  Makefile | 3 +++
> > >  1 file changed, 3 insertions(+)
> >
> > Please can you use binman to do that?
> >
> > We are trying to remove the extra build rules in the Makefile.
> >
> > >
> > > diff --git a/Makefile b/Makefile
> > > index 444baaefd0..6e15ebd116 100644
> > > --- a/Makefile
> > > +++ b/Makefile
> > > @@ -1312,6 +1312,9 @@ endif
> > >  u-boot-nodtb.bin: u-boot FORCE
> > > $(call if_changed,objcopy_uboot)
> > > $(BOARD_SIZE_CHECK)
> > > +ifeq ($(CONFIG_SPL_GZIP),y)
> > > +   @gzip -k u-boot-nodtb.bin
> > > +endif
> > >
> > >  u-boot.ldr:u-boot
> > > $(CREATE_LDR_ENV)
> > > --
> > > 2.25.1
> > >
> >
> > Regards,
> > Simon


Re: [PATCH 01/10] Makefile: Add support to generate GZIP compressed raw u-boot binary

2023-07-18 Thread Manoj Sai
Hi Simon,

Can you please suggest or briefly explain to me the steps to be
followed to generate the compressed u-boot-nodtb.bin.gz and
u-boot-nodtb.bin.lzma file  with the help of binman  ,
when compression support is enabled . Can you provide me with any
reference patch to get it done?

Thanks and regards,
Manoj sai
Amarula Solutions India Pvt. Ltd

On Sun, Jul 2, 2023 at 9:04 PM Simon Glass  wrote:
>
> Hi Manoj,
>
> On Fri, 30 Jun 2023 at 13:12, Manoj Sai
>  wrote:
> >
> > Add support for generating a GZIP-compressed raw U-boot binary.
> >
> > Signed-off-by: Manoj Sai 
> > Signed-off-by: Suniel Mahesh 
> > ---
> >  Makefile | 3 +++
> >  1 file changed, 3 insertions(+)
>
> Please can you use binman to do that?
>
> We are trying to remove the extra build rules in the Makefile.
>
> >
> > diff --git a/Makefile b/Makefile
> > index 444baaefd0..6e15ebd116 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -1312,6 +1312,9 @@ endif
> >  u-boot-nodtb.bin: u-boot FORCE
> > $(call if_changed,objcopy_uboot)
> > $(BOARD_SIZE_CHECK)
> > +ifeq ($(CONFIG_SPL_GZIP),y)
> > +   @gzip -k u-boot-nodtb.bin
> > +endif
> >
> >  u-boot.ldr:u-boot
> > $(CREATE_LDR_ENV)
> > --
> > 2.25.1
> >
>
> Regards,
> Simon


Re: [PATCH 01/10] Makefile: Add support to generate GZIP compressed raw u-boot binary

2023-07-02 Thread Simon Glass
Hi Manoj,

On Fri, 30 Jun 2023 at 13:12, Manoj Sai
 wrote:
>
> Add support for generating a GZIP-compressed raw U-boot binary.
>
> Signed-off-by: Manoj Sai 
> Signed-off-by: Suniel Mahesh 
> ---
>  Makefile | 3 +++
>  1 file changed, 3 insertions(+)

Please can you use binman to do that?

We are trying to remove the extra build rules in the Makefile.

>
> diff --git a/Makefile b/Makefile
> index 444baaefd0..6e15ebd116 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1312,6 +1312,9 @@ endif
>  u-boot-nodtb.bin: u-boot FORCE
> $(call if_changed,objcopy_uboot)
> $(BOARD_SIZE_CHECK)
> +ifeq ($(CONFIG_SPL_GZIP),y)
> +   @gzip -k u-boot-nodtb.bin
> +endif
>
>  u-boot.ldr:u-boot
> $(CREATE_LDR_ENV)
> --
> 2.25.1
>

Regards,
Simon


[PATCH 01/10] Makefile: Add support to generate GZIP compressed raw u-boot binary

2023-06-30 Thread Manoj Sai
Add support for generating a GZIP-compressed raw U-boot binary.

Signed-off-by: Manoj Sai 
Signed-off-by: Suniel Mahesh 
---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index 444baaefd0..6e15ebd116 100644
--- a/Makefile
+++ b/Makefile
@@ -1312,6 +1312,9 @@ endif
 u-boot-nodtb.bin: u-boot FORCE
$(call if_changed,objcopy_uboot)
$(BOARD_SIZE_CHECK)
+ifeq ($(CONFIG_SPL_GZIP),y)
+   @gzip -k u-boot-nodtb.bin
+endif
 
 u-boot.ldr:u-boot
$(CREATE_LDR_ENV)
-- 
2.25.1