[U-Boot] [PATCH] fdt: Ensure that libfdt_env.h comes from U-Boot
Tom Rini
trini at ti.com
Wed Apr 17 17:35:54 CEST 2013
On Mon, Mar 11, 2013 at 09:30:27AM -0700, Simon Glass wrote:
> When building host utilities, we include libfdt.h from the host, not from
> U-Boot. This in turn brings in libfdt_env.h from the host, which can mess
> up the types and cause a build failure, depending on the host environment.
> To fix this, force inclusion of U-Boot's libfdt_env.h so that the types
> are correct.
>
> Another way to fix this is to use -nostdinc and -idirafter to ensure that
> system includes are included after U-Boot ones. Unfortunately this means
> that U-Boot's errno.h gets included instead of the system one. This in
> turn requires a hack to errno.h to redirect things, so all in all the
> solution in this patch is probably cleaner.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130417/afe4033a/attachment.pgp>
More information about the U-Boot
mailing list