Add support for generating a GZIP-compressed raw U-boot binary.

Signed-off-by: Manoj Sai <abbaraju.manoj...@amarulasolutions.com>
Signed-off-by: Suniel Mahesh <su...@amarulasolutions.com>
---
 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

Reply via email to