Fix to not include the fdt.h header unless MMU is defined. The fdt.h has a few structs with [0] size arrays that don't work with older GCC.

pull/569/head
David Garske 2025-04-28 08:40:12 -07:00 committed by Daniele Lacamera
parent 271ae4c2f0
commit b17ea82232
1 changed files with 2 additions and 1 deletions

View File

@ -940,8 +940,9 @@ static inline int wb_flash_write_verify_word(struct wolfBoot_image *img,
#define UBOOT_IMG_HDR_SZ 64
/* --- Flattened Device Tree Blob */
#ifdef MMU
#include "fdt.h"
#endif
#ifndef EXT_ENCRYPTED
#define WOLFBOOT_MAX_SPACE (WOLFBOOT_PARTITION_SIZE - \