summaryrefslogtreecommitdiff
path: root/spl
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2014-05-19 14:23:40 +0200
committerAndreas Bießmann <andreas.devel@googlemail.com>2014-05-27 00:10:49 +0200
commit5c390a5b26ce53a6534b99c22bb762484e6b3497 (patch)
tree9d8118c6b98a3a86bead87042681e9ac0fab87f0 /spl
parent7b1a411743db47648b2955c414a71836823acfd9 (diff)
arm:at91: enable ROM loadable atmel image
For sama5d3xek we need to modify the SPL image for correct detection by ROM code. Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> Tested-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'spl')
-rw-r--r--spl/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/spl/Makefile b/spl/Makefile
index bfb7c8aec8..bf677aa42a 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -183,6 +183,17 @@ MKIMAGEFLAGS_MLO.byteswap = -T omapimage -n byteswap -a $(CONFIG_SPL_TEXT_BASE)
MLO MLO.byteswap: $(obj)/u-boot-spl.bin
$(call if_changed,mkimage)
+MKIMAGEFLAGS_boot.bin = -T atmelimage
+
+ifeq ($(CONFIG_SPL_GENERATE_ATMEL_PMECC_HEADER),y)
+MKIMAGEFLAGS_boot.bin += -n $(shell $(obj)/../tools/atmel_pmecc_params)
+
+boot.bin: $(obj)/../tools/atmel_pmecc_params
+endif
+
+boot.bin: $(obj)/u-boot-spl.bin
+ $(call if_changed,mkimage)
+
ALL-y += $(obj)/$(SPL_BIN).bin
ifdef CONFIG_SAMSUNG