Skip to content

Commit ec380d9

Browse files
committed
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.
1 parent 50133f4 commit ec380d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/image.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,8 +940,9 @@ static inline int wb_flash_write_verify_word(struct wolfBoot_image *img,
940940
#define UBOOT_IMG_HDR_SZ 64
941941

942942
/* --- Flattened Device Tree Blob */
943+
#ifdef MMU
943944
#include "fdt.h"
944-
945+
#endif
945946

946947
#ifndef EXT_ENCRYPTED
947948
#define WOLFBOOT_MAX_SPACE (WOLFBOOT_PARTITION_SIZE - \

0 commit comments

Comments
 (0)