Skip to content

Commit fa9bcd4

Browse files
committed
digi: wrap use of constants used by NXP-based platforms
TODO: still need to determine the size for the signature on STM platforms. Signed-off-by: Hector Palacios <[email protected]>
1 parent 164fb8c commit fa9bcd4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

board/digi/common/helper.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,10 +1326,14 @@ int read_squashfs_rootfs(unsigned long addr, unsigned long *size)
13261326
#ifdef CONFIG_AHAB_BOOT
13271327
/* add signature size */
13281328
squashfs_size = squashfs_raw_size + AHAB_CONTAINER_SIZE;
1329-
#else
1329+
#elif defined(CONFIG_IMX_HAB)
13301330
/* add signature size */
13311331
squashfs_size = squashfs_raw_size + CONFIG_CSF_SIZE + IVT_SIZE;
1332+
#else
1333+
/* TODO: add signature size */
1334+
squashfs_size = squashfs_raw_size;
13321335
#endif
1336+
13331337
#ifdef CONFIG_NAND_BOOT
13341338
sprintf(cmd_buf, "ubi read %lx ${rootfsvol} %lx", addr, squashfs_size);
13351339
if (run_command(cmd_buf, 0)) {

0 commit comments

Comments
 (0)