From b17ea82232bf511ae1ffb3249bd7f9ba1d197886 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 28 Apr 2025 08:40:12 -0700 Subject: [PATCH] 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. --- include/image.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/image.h b/include/image.h index c2f44839..22e4f6d8 100644 --- a/include/image.h +++ b/include/image.h @@ -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 - \