[U-Boot] [PATCH 1/5] treewide: include libfdt_env.h before fdt.h
Kim Phillips
kim.phillips at freescale.com
Thu Jan 17 18:54:56 CET 2013
On Wed, 16 Jan 2013 18:36:03 -0600
Scott Wood <scottwood at freescale.com> wrote:
> On 01/16/2013 05:59:04 PM, Kim Phillips wrote:
> > and, if including libfdt.h which includes libfdt_env.h in
> > the correct order, don't include fdt.h before libfdt.h.
> >
> > this is needed to get the fdt type definitions set from
> > the project environment before fdt.h uses them.
> >
> > Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
> > Cc: Jerry Van Baren <gvb.uboot at gmail.com>
>
> Maybe fdt.h should include libfdt_env.h?
>
> Or just always use libfdt.h as the public header.
Was just following along the same lines as the dtc commits 38ad79d3
"dtc/tests: don't include fdt.h prior to libfdt.h" and 20b866a7
"dtc/fdtdump: include libfdt_env.h prior to fdt.h", acked by David
G. I don't know why some only include fdt.h.
devicetree-discuss/David: is there a prescribed way to go here?
Change all fdt.h includers to just always include libfdt.h instead
of libfdt_env.h prior to fdt.h?
Kim
More information about the U-Boot
mailing list