]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Introduce CONFIG_FIT_EXTERNAL_OFFSET
authorPeng Fan <peng.fan@nxp.com>
Tue, 20 Nov 2018 10:19:11 +0000 (10:19 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 1 Jan 2019 13:12:18 +0000 (14:12 +0100)
Introduce CONFIG_FIT_EXTERNAL_OFFSET to give user a choice to choose
where to put the external data.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Kconfig
Makefile

diff --git a/Kconfig b/Kconfig
index 42672a92df4dd03cf416e92968bb43a3a2e6d474..ee7ee302cef1c368acd6e6ed5dc6da8ff05990ae 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -249,6 +249,16 @@ config FIT
 
 if FIT
 
+config FIT_EXTERNAL_OFFSET
+       hex "Text Base"
+       default 0x0
+       help
+         This specifies a data offset in fit image.
+         The offset is from data payload offset to the beginning of
+         fit image header. When specifies a offset, specific data
+         could be put in the hole between data payload and fit image
+         header, such as CSF data on i.MX platform.
+
 config FIT_ENABLE_SHA256_SUPPORT
        bool "Support SHA256 checksum of FIT image contents"
        default y
index 5683714947f24547461c4bb761942946ef894c34..19d7343fde744087e7ff08800cd8d59a8a3812e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -894,7 +894,7 @@ cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
        >$(MKIMAGEOUTPUT) $(if $(KBUILD_VERBOSE:0=), && cat $(MKIMAGEOUTPUT))
 
 quiet_cmd_mkfitimage = MKIMAGE $@
-cmd_mkfitimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -f $(U_BOOT_ITS) -E $@ \
+cmd_mkfitimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -f $(U_BOOT_ITS) -E $@ -p $(CONFIG_FIT_EXTERNAL_OFFSET)\
        >$(MKIMAGEOUTPUT) $(if $(KBUILD_VERBOSE:0=), && cat $(MKIMAGEOUTPUT))
 
 quiet_cmd_cat = CAT     $@