[U-Boot] FDT include file problems

Jerry Van Baren gvb.uboot at gmail.com
Mon Oct 20 05:10:23 CEST 2008


On Mon, Oct 20, 2008 at 12:01:59AM +0200, Wolfgang Denk wrote:
> Hello,
> 
> 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 <endian.h> instead!

[snip]

> However, for the FDT code this doesn't help,  as  we  then  will  get
> unresolved    references    for    fdt32_to_cpu(),    cpu_to_fdt32(),
> fdt64_to_cpu() and cpu_to_fdt64().
> 
> The 32 bit accesses couldbe worked  around  by  using  htonl()  resp.
> ntohl(), but I don't know a good way for the 64 bit cases.
> 
> Is there a clean and portable way to do this?
> 
> Best regards,
> 
> Wolfgang Denk

Hi Wolfgang,

Does this work better?

Best regards,
gvb




More information about the U-Boot mailing list