[OE-core] [PATCH] qemu-native: Add missing fdt PACKAGECONFIG

Richard Purdie richard.purdie at linuxfoundation.org
Thu Feb 28 22:28:14 UTC 2019


On Thu, 2019-02-28 at 14:25 -0800, Khem Raj wrote:
> On Thu, Feb 28, 2019 at 2:24 PM Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
> > On Thu, 2019-02-28 at 21:33 +0000, Alistair Francis wrote:
> > > This is required to fix this build failure:
> > > 
> > > qemu-3.1.0/hw/core/loader-fit.c:30:10: fatal error: libfdt.h: No
> > > such
> > > file or directory
> > >  #include <libfdt.h>
> > >           ^~~~~~~~~~
> > > compilation terminated.
> > > 
> > > Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
> > > ---
> > >  meta/recipes-devtools/qemu/qemu-native_3.1.0.bb | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/meta/recipes-devtools/qemu/qemu-native_3.1.0.bb
> > > b/meta/recipes-devtools/qemu/qemu-native_3.1.0.bb
> > > index c8acff8e19..0b6a7f8b6e 100644
> > > --- a/meta/recipes-devtools/qemu/qemu-native_3.1.0.bb
> > > +++ b/meta/recipes-devtools/qemu/qemu-native_3.1.0.bb
> > > @@ -6,4 +6,4 @@ require qemu-native.inc
> > > 
> > >  EXTRA_OECONF_append = " --target-list=${@get_qemu_usermode_targe
> > > t_li
> > > st(d)} --disable-tools --disable-blobs --disable-guest-agent"
> > > 
> > > -PACKAGECONFIG ??= ""
> > > +PACKAGECONFIG ??= "fdt"
> > 
> > I think this is a rebuild bug, did you try cleaning and rebuilding
> > qemu-native?
> > 
> > I did hit this when testing but in amongst the rest of the chaos
> > from
> > today, forgot that :(
> > 
> 
> dont think so , if one has libfdt on host and is not version qemu
> like it will have build errors.

I think what happens is that the "old" qemu-native had this enabled. We
now split the qemu build so qemu-native is reconfigured and rebuilt but
its configure script/makefiles are buggy and it leaves part of the
system misconfigured leaving a build error. If you clean/rebuild this
doesn't happen again.

I did see this exact failure, it then went away after a clean and the
above was the only explanation I have. Should be easy to reproduce
though.

Cheers,

Richard






More information about the Openembedded-core mailing list