[U-Boot] [PATCH 7/7] libfdt: migrate include/libfdt_env.h to a wrapper

Simon Glass sjg at chromium.org
Tue Jan 16 14:56:24 UTC 2018


On 9 January 2018 at 01:34, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> libfdt_env.h is supposed to provide system-dependent defines.
>
> scripts/dtc/libfdt/libfdt_env.h from upstream DTC is suitable
> for user-space, so we should use this for USE_HOSTCC case.
>
> For compiling U-Boot, we need to override such system-dependent
> defines, so use <linux/libfdt_env.h> imported from Linux.
>
> I can rip off the include/libfdt_env.h from HOST_EXTRACFLAGS.
> Adding all sort of stuff to the include path just for suppressing
> errors is a crazy idea.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> ---
>
>  include/libfdt_env.h | 29 +++++------------------------
>  tools/Makefile       |  2 +-
>  2 files changed, 6 insertions(+), 25 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

I'm not really sure why we want to use linux/libfdt.h though... Can
you add some details in the patch?

- Simon


More information about the U-Boot mailing list