summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2019-06-18 22:13:20 +0200
committerStefano Babic <sbabic@denx.de>2019-10-13 22:49:12 +0200
commit80cc95140cc1edc0744e3773cdfdcbe799d8c943 (patch)
tree4dbbe276f5c1ba827e270cfc3bd77611dd4e1230 /Makefile
parente2c3c2e32c51d9bab98123782d561b204b6e163d (diff)
spl, Makefile: Take external offset into account for fit images
When building a FIT image for SPL to load also take into account the configured external offset. This allows the SPL to load the u-boot FIT image correctly when configuring SECURE_BOOT on i.mx6 is enabled (with CONFIG_FIT_EXTERNAL_OFFSET=0x3000). Note this doesn't allow secure booting; but it does allow an unsigned SPL/u-boot with secure boot support eanbled to boot on open device. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 842bc6c11b..6fda3268e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1260,6 +1260,7 @@ endif
ifdef CONFIG_SPL_LOAD_FIT
MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
+ -p $(CONFIG_FIT_EXTERNAL_OFFSET) \
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \
$(patsubst %,-b arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST)))
else