[OpenWrt-Devel] [PATCH 06/11] include/image-commands.mk: extend Build/fit for U-Boot script integration
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Mon Mar 11 12:20:23 EDT 2019
This commit extends the Build/fit macro so that if a ITS_UBOOT_SCRIPT
variable is defined, it is pass to the mkits.sh script as "-s"
argument. This allows the ITS_UBOOT_SCRIPT file to be integrated as a
U-Boot script in the FIT image.
This will be used as part of the dm-verity integration to add in the
FIT image a U-Boot script that provides the details of the dm-verity
volume (salt, root hash, number of data blocks, start of hash blocks,
etc.).
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
include/image-commands.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/image-commands.mk b/include/image-commands.mk
index 05d36093d3..95ecbac5f2 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -151,6 +151,7 @@ define Build/fit
$(if $(word 2,$(1)),-d $(word 2,$(1))) -C $(word 1,$(1)) \
-a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
-c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config at 1") \
+ $(if $(ITS_UBOOT_SCRIPT),-s $(ITS_UBOOT_SCRIPT)) \
-A $(LINUX_KARCH) -v $(LINUX_VERSION)
PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
@mv $@.new $@
--
2.20.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list