From fb74b4ee1d18964e7ac53f0c11d634e5b3c83816 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Tue, 30 Aug 2016 01:27:32 +0200 Subject: [PATCH] Show some information about bootstrap part of the image --- u-boot/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/u-boot/Makefile b/u-boot/Makefile index 0bf0072..be5a485 100644 --- a/u-boot/Makefile +++ b/u-boot/Makefile @@ -94,6 +94,12 @@ define ih_name u-boot_mod $(if $(filter $(IMG_RAM),1),RAM,$(if $(filter $(IMG_LZMA),1),LZMA FLASH,FLASH)) image endef +# $(1): name +# $(2): path +define echo_size +@echo "$(1): `wc -c < $(strip $(2))` Bytes" +endef + # $(1): define name # $(2): define value define define_add @@ -290,8 +296,13 @@ $(SUBDIRS): # For LZMA compressed image ifdef COMPRESSED_UBOOT tuboot.bin: System.map bootstrap.bin u-boot.lzimg + @echo + $(call echo_green,Merging bootstrap.bin with u-boot.lzimg...) + $(call echo_size, Bootstrap size,bootstrap.bin) + $(call echo_size, LZMA image size,u-boot.lzimg) @cat bootstrap.bin > $@ @cat u-boot.lzimg >> $@ + $(call echo_size, Total image size,$@) u-boot.lzimg: $(obj)u-boot.bin System.map @echo -- 2.25.1