50 lines
1.9 KiB
Diff
50 lines
1.9 KiB
Diff
From: Javier Viguera <javier.viguera@digi.com>
|
|
Date: Thu, 31 Aug 2023 16:33:13 +0200
|
|
Subject: [PATCH] imx9: soc.mak: capture commands output into a log file
|
|
|
|
This is later used to get the needed information for the signing of the
|
|
boot artifacts.
|
|
|
|
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
|
|
---
|
|
iMX9/soc.mak | 7 ++++---
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/iMX9/soc.mak b/iMX9/soc.mak
|
|
index b17db6b7ca8c..c4bcac4e42cd 100644
|
|
--- a/iMX9/soc.mak
|
|
+++ b/iMX9/soc.mak
|
|
@@ -1,4 +1,5 @@
|
|
MKIMG = ../mkimage_imx8
|
|
+MKIMAGE_LOG = "mkimage-$(firstword $(MAKECMDGOALS)).log"
|
|
|
|
CC ?= gcc
|
|
REV ?= A0
|
|
@@ -110,7 +111,7 @@ define append_container
|
|
@flashbin_size=`wc -c flash.bin | awk '{print $$1}'`; \
|
|
psize=$$((0x400 * $(2))); \
|
|
pad_cnt=$$(((flashbin_size + psize - 1) / psize)); \
|
|
- echo "append $(1) at $$((pad_cnt * $(2))) KB, psize=$$psize"; \
|
|
+ echo "append $(1) at $$((pad_cnt * $(2))) KB, psize=$$psize" | tee -a $(MKIMAGE_LOG); \
|
|
dd if=$(1) of=flash.bin bs=1K seek=$$((pad_cnt * $(2)));
|
|
endef
|
|
|
|
@@ -209,7 +210,7 @@ u-boot-atf-container.img: bl31.bin u-boot-hash.bin
|
|
-ap bl31.bin a55 $(ATF_LOAD_ADDR) \
|
|
-ap u-boot-hash.bin a55 $(UBOOT_LOAD_ADDR) \
|
|
-out u-boot-atf-container.img; \
|
|
- fi
|
|
+ fi | tee $(MKIMAGE_LOG)
|
|
|
|
u-boot-atf-container-spinand.img: bl31.bin u-boot-hash.bin
|
|
if [ -f $(TEE) ]; then \
|
|
@@ -286,7 +287,7 @@ endif
|
|
|
|
flash_singleboot: $(MKIMG) $(AHAB_IMG) $(SPL_A55_IMG) u-boot-atf-container.img $(OEI_A55_DDR)
|
|
./$(MKIMG) -soc IMX9 -append $(AHAB_IMG) -c $(OEI_OPT_A55) \
|
|
- -ap $(SPL_A55_IMG) a55 $(SPL_LOAD_ADDR) -out flash.bin
|
|
+ -ap $(SPL_A55_IMG) a55 $(SPL_LOAD_ADDR) -out flash.bin | tee -a $(MKIMAGE_LOG)
|
|
$(call append_container,u-boot-atf-container.img,1)
|
|
|
|
flash_singleboot_no_ahabfw: $(MKIMG) $(SPL_A55_IMG) u-boot-atf-container.img $(OEI_A55_DDR)
|