]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
treewide: include libfdt_env.h before fdt.h
authorKim Phillips <kim.phillips@freescale.com>
Wed, 16 Jan 2013 13:59:04 +0000 (13:59 +0000)
committerGerald Van Baren <gvb@unssw.com>
Fri, 8 Feb 2013 01:38:55 +0000 (20:38 -0500)
and, if including libfdt.h which includes libfdt_env.h in
the correct order, don't include fdt.h before libfdt.h.

this is needed to get the fdt type definitions set from
the project environment before fdt.h uses them.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Cc: Jerry Van Baren <gvb.uboot@gmail.com>
arch/arm/lib/bootm.c
arch/powerpc/lib/bootm.c
arch/x86/include/asm/arch-coreboot/sysinfo.h
common/cmd_bootm.c
common/cmd_fdt.c
common/fdt_support.c
common/image.c
include/fdt_support.h
include/image.h
tools/fdt_host.h
tools/imls/imls.c

index 1bd273085685ba9c4d424e7ac761a6b8bde5828d..f3b30c57a37cd03b0c368dcd73aff49fc0b29478 100644 (file)
@@ -30,7 +30,6 @@
 #include <image.h>
 #include <u-boot/zlib.h>
 #include <asm/byteorder.h>
-#include <fdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <asm/bootm.h>
index 7088293a3647a6c249369a1e2d436497feb70c8b..33d013fcea0ce26bbc5aea98b4e81b60c1632c35 100644 (file)
@@ -36,7 +36,6 @@
 #include <asm/mp.h>
 
 #if defined(CONFIG_OF_LIBFDT)
-#include <fdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 
index 77ae304969ca3fa8d831b51f73e009423f3f1120..bd88eb588ff27469d6265b06f35b698fbf13ec3d 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <common.h>
 #include <compiler.h>
+#include <libfdt_env.h>
 #include <fdt.h>
 #include <asm/arch/tables.h>
 
index 7ae5d5b29404f0cfc30e32d2f07b1c3adcc3e0af..f0338babeba8f580a1f0fff7c77d3e590f137a6a 100644 (file)
@@ -47,7 +47,6 @@
 #endif
 
 #if defined(CONFIG_OF_LIBFDT)
-#include <fdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #endif
index 9e2de34737f358fab0b9619b20b1e34ec0094e5c..6eec947fcb3ecbf572120b0b9fce7c0de2d94587 100644 (file)
@@ -29,7 +29,6 @@
 #include <linux/ctype.h>
 #include <linux/types.h>
 #include <asm/global_data.h>
-#include <fdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 
index 6b9fa0550f18e5694cd9f1e83911c52c089920d8..7a3fee4f4e96c581720bee6f9e00e854cb2ef26f 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/ctype.h>
 #include <linux/types.h>
 #include <asm/global_data.h>
-#include <fdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <exports.h>
index 95498e6186e2290cc79a6cb1c9ac84b446b3a6fb..ae1a9d3bd15bcdb14a4e58ca4a900c2dfcb1536d 100644 (file)
@@ -47,7 +47,6 @@
 #include <image.h>
 
 #if defined(CONFIG_FIT) || defined(CONFIG_OF_LIBFDT)
-#include <fdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #endif
index 4b9f84a24a3dc496fff0dddbcf3bf95fe3549312..a08c90bb329a2237db6959a41933eb6b81bd5d63 100644 (file)
@@ -26,6 +26,7 @@
 
 #ifdef CONFIG_OF_LIBFDT
 
+#include <libfdt_env.h>
 #include <fdt.h>
 
 u32 fdt_getprop_u32_default(const void *fdt, const char *path,
index f5adc5035360633024de1b67cfee73f8811f17c8..8e285f9b9ff963877bc954871473d6cdd70a3fd8 100644 (file)
@@ -52,7 +52,6 @@
 #endif /* USE_HOSTCC */
 
 #if defined(CONFIG_FIT)
-#include <fdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #define CONFIG_MD5             /* FIT images need MD5 support */
index 085013e02e7dd24f834daff55445b59f12a32ea0..b08bf866ee49ceb6e5092c5904d6bd3f3ab2be61 100644 (file)
@@ -21,7 +21,6 @@
 #define __FDT_HOST_H__
 
 /* Make sure to include u-boot version of libfdt include files */
-#include "../include/fdt.h"
 #include "../include/libfdt.h"
 #include "../include/fdt_support.h"
 
index b21c505d48d84dcf7bfe840a1a272d3b10ae4728..a982a1378a8ae5bc7e44ee765a33dde02aa44172 100644 (file)
@@ -38,7 +38,6 @@
 #endif
 
 #include <sha1.h>
-#include <fdt.h>
 #include <libfdt.h>
 #include <fdt_support.h>
 #include <image.h>