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

Manoj Sai abbaraju.manojsai at amarulasolutions.com
Fri Jun 30 14:11:37 CEST 2023


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

Signed-off-by: Manoj Sai <abbaraju.manojsai at amarulasolutions.com>
Signed-off-by: Suniel Mahesh <sunil at 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



More information about the U-Boot mailing list