Unfortunately libfdt needs this value now, which is present in the stdint.h header. That file is just a placeholder in U-Boot and these sorts of constants appear in the linux/kernel.h header instead.
To keep libfdt happy, add INT32_MAX too. Signed-off-by: Simon Glass <s...@chromium.org> --- include/linux/kernel.h | 2 ++ include/linux/libfdt_env.h | 1 + 2 files changed, 3 insertions(+) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index a85c15d8dc..5c7e5f635b 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -37,6 +37,8 @@ #define UINT32_MAX U32_MAX #define UINT64_MAX U64_MAX +#define INT32_MAX S32_MAX + #define STACK_MAGIC 0xdeadbeef #define REPEAT_BYTE(x) ((~0ul / 0xff) * (x)) diff --git a/include/linux/libfdt_env.h b/include/linux/libfdt_env.h index e2bf79c7ee..cca7792acd 100644 --- a/include/linux/libfdt_env.h +++ b/include/linux/libfdt_env.h @@ -10,6 +10,7 @@ #define LIBFDT_ENV_H #include <linux/string.h> +#include <linux/kernel.h> #include <asm/byteorder.h> -- 2.24.0.rc0.303.g954a862665-goog _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot