From def0819e920b05b34b56d8b42e1e43d9b89a52d6 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Tue, 21 Oct 2008 11:23:56 +0200 Subject: FDT: don't use private kernel header files On some systems (for example Fedora Core 4) U-Boot builds with the following wanrings only: ... In file included from /home/wd/git/u-boot/include/libfdt_env.h:33, from fdt.c:51: /usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include instead! This patch fixes this problem. Signed-off-by: Wolfgang Denk --- include/image.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'include/image.h') diff --git a/include/image.h b/include/image.h index 82e63457f9..1598b615c5 100644 --- a/include/image.h +++ b/include/image.h @@ -33,27 +33,29 @@ #ifndef __IMAGE_H__ #define __IMAGE_H__ -#include -#include - -#ifndef USE_HOSTCC -#include -#include -#include - -#else +#if USE_HOSTCC +#include /* new uImage format support enabled on host */ #define CONFIG_FIT 1 #define CONFIG_OF_LIBFDT 1 #define CONFIG_FIT_VERBOSE 1 /* enable fit_format_{error,warning}() */ +#else + +#include +#include +#include +#include + #endif /* USE_HOSTCC */ #if defined(CONFIG_FIT) && !defined(CONFIG_OF_LIBFDT) #error "CONFIG_OF_LIBFDT not enabled, required by CONFIG_FIT!" #endif +#include + #if defined(CONFIG_FIT) #include #include -- cgit