[U-Boot] libfdt/fdt_ro.c build issues...

Jerry Van Baren gvb.uboot at gmail.com
Wed Aug 27 04:04:30 CEST 2008


Wolfgang Denk wrote:
> Dear Kumar,
> 
> there are build problems with libfdt/fdt_ro.c :
> 
> ...
> tools/fdt_ro.c: In function 'fdt_path_offset':
> tools/fdt_ro.c:158: warning: implicit declaration of function 'fdt_getprop_namelen'
> tools/fdt_ro.c:158: warning: assignment makes pointer from integer without a cast
> tools/fdt_ro.c: At top level:
> tools/fdt_ro.c:281: error: conflicting types for 'fdt_getprop_namelen'
> tools/fdt_ro.c:158: error: previous implicit declaration of 'fdt_getprop_namelen' was here
> ...
> 
> ...dor all boards.
> 
> If you have time, could you please have a look?
> 
> Best regards,
> 
> Wolfgang Denk

??? I'm not seeing this, even with a fresh pull from the u-boot repository.

The function is declared in include/libfdt.h, properly in my copy.

libfdt/fdt_ro.c includes...

#ifndef USE_HOSTCC
#include <fdt.h>
#include <libfdt.h>
#else
#include "fdt_host.h"
#endif

and then fdt_host.h includes libfdt.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"

Best regards,
gvb


More information about the U-Boot mailing list