bswap_32 and bswap_64 is for host on target we use cpu_to_be32 and cpu_to_be64
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[EMAIL PROTECTED]> --- include/libfdt_env.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/libfdt_env.h b/include/libfdt_env.h index 355ebf2..39653d3 100644 --- a/include/libfdt_env.h +++ b/include/libfdt_env.h @@ -36,11 +36,18 @@ extern struct fdt_header *working_fdt; /* Pointer to the working fdt */ #if __BYTE_ORDER == __LITTLE_ENDIAN +#ifdef USE_HOSTCC #define fdt32_to_cpu(x) bswap_32(x) #define cpu_to_fdt32(x) bswap_32(x) #define fdt64_to_cpu(x) bswap_64(x) #define cpu_to_fdt64(x) bswap_64(x) #else +#define fdt32_to_cpu(x) cpu_to_be32(x) +#define cpu_to_fdt32(x) cpu_to_be32(x) +#define fdt64_to_cpu(x) cpu_to_be64(x) +#define cpu_to_fdt64(x) cpu_to_be64(x) +#endif /* USE_HOSTCC */ +#else #define fdt32_to_cpu(x) (x) #define cpu_to_fdt32(x) (x) #define fdt64_to_cpu(x) (x) -- 1.5.6.5 _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

