From 2d60ba677b12838259cde6b074d3bf77716bce2a Mon Sep 17 00:00:00 2001 From: hanwckf Date: Tue, 18 Oct 2022 23:47:21 +0800 Subject: [PATCH] script/mkits.sh: add extra info for 360T7 stock uboot --- scripts/mkits.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/mkits.sh b/scripts/mkits.sh index 1c7f292618..85826ab511 100755 --- a/scripts/mkits.sh +++ b/scripts/mkits.sh @@ -113,6 +113,12 @@ if [ -f "${ROOTFS_FILE}" ]; then }; }; " + + ROOTFS_EXTRA_INFO=" + rootfs_crc32 = \"${ROOTFS_CRC32}\"; + rootfs_size = \"${ROOTFS_SIZE}\"; + image_time = \"$(date +%s)\"; +" fi # Conditionally create script information @@ -172,6 +178,8 @@ DATA="/dts-v1/; description = \"${ARCH_UPPER} OpenWrt FIT (Flattened Image Tree)\"; #address-cells = <1>; +${ROOTFS_EXTRA_INFO} + images { kernel-1 { description = \"${ARCH_UPPER} OpenWrt Linux-${VERSION}\";