[U-Boot] [PATCH] ARM: at91: Apply PMECC header for NAND_BOOT only

Derald D. Woods woods.technical at gmail.com
Sun Feb 17 04:58:41 UTC 2019


This commit guards against applying the PMECC header in a non-NAND_BOOT
scenario. This a modified version of a previous patch found here:

https://patchwork.ozlabs.org/patch/1009885/

Now that SPL_GENERATE_ATMEL_PMECC_HEADER has been converted to Kconfig,
this provides an additional guard for building and using the
'atmel_pmecc_params' tool.

Signed-off-by: Derald D. Woods <woods.technical at gmail.com>
---
 scripts/Makefile.spl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index 9d5921606e..8732479f39 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -177,10 +177,12 @@ ifeq ($(CONFIG_SYS_SOC),"at91")
 MKIMAGEFLAGS_boot.bin = -T atmelimage
 
 ifeq ($(CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER),y)
+ifeq ($(CONFIG_NAND_BOOT),y)
 MKIMAGEFLAGS_boot.bin += -n $(shell $(obj)/../tools/atmel_pmecc_params)
 
 boot.bin: $(obj)/../tools/atmel_pmecc_params
 endif
+endif
 
 boot.bin: $(obj)/u-boot-spl.bin FORCE
 	$(call if_changed,mkimage)
-- 
2.20.1



More information about the U-Boot mailing list