[OpenWrt-Devel] [PATCH 11/11] target/linux/mvebu: generate a FIT image on Armada XP GP with dm-verity

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Mar 11 12:20:28 EDT 2019

When a dm-verity capable is selected, the user will most likely need
the U-Boot script that contains the various dm-verity related
configuration details, needed by U-Boot to build the kernel command
line with the appropriate dm="..." argument.

Therefore, for the Marvell Armada XP GP platform, make sure a FIT
image containing the dm-verity related U-Boot script is produced when

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 target/linux/mvebu/image/cortex-a9.mk | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/target/linux/mvebu/image/cortex-a9.mk b/target/linux/mvebu/image/cortex-a9.mk
index 6e38549d77..c959e871c6 100644
--- a/target/linux/mvebu/image/cortex-a9.mk
+++ b/target/linux/mvebu/image/cortex-a9.mk
@@ -110,9 +110,23 @@ define Device/armada-xp-db
 TARGET_DEVICES += armada-xp-db
+define Device/armada-xp-gp/kernel
+	ITS_UBOOT_SCRIPT := $(KDIR)/root.squashfs-hashed-dm-verity-uboot-script.txt
+	KERNEL := kernel-bin | append-dtb | fit none
+	KERNEL_SIZE := 4096k
+define Device/armada-xp-gp/kernel
+	KERNEL := kernel-bin | append-dtb | uImage none
+	KERNEL_SIZE := 4096k
 define Device/armada-xp-gp
 	$(call Device/marvell-nand,XP GP (DB-MV784MP-GP))
+	$(Device/armada-xp-gp/kernel)
 TARGET_DEVICES += armada-xp-gp

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list