From 75d3e8fbd93c14d9929d024c75af2d742c76db70 Mon Sep 17 00:00:00 2001 From: Marian Balakowicz Date: Thu, 21 Feb 2008 17:20:18 +0100 Subject: [new uImage] Pull in libfdt if CONFIG_FIT is enabled New uImage format (Flattened Image Tree) requires libfdt functionality, print out error message if CONFIG_OF_LIBFDT is not defined. New uImage support is enabled by defining CONFIG_FIT (and CONFIG_OF_LIBFDT). This commit turns it on by default. Signed-off-by: Marian Balakowicz --- include/image.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/image.h') diff --git a/include/image.h b/include/image.h index dbbbee907..ecfce7215 100644 --- a/include/image.h +++ b/include/image.h @@ -35,10 +35,19 @@ #include #include + #ifndef USE_HOSTCC #include #include + +/* new uImage format support enabled by default */ +#define CONFIG_FIT 1 +#define CONFIG_OF_LIBFDT 1 + +#if defined(CONFIG_FIT) && !defined(CONFIG_OF_LIBFDT) +#error "CONFIG_OF_LIBFDT not enabled, required by CONFIG_FIT!" #endif +#endif /* USE_HOSTCC */ /* * Operating System Codes -- cgit v1.2.3