[OE-core] [PATCH v2] u-boot: Fix missing Python.h build failure

Joshua Watt jpewhacker at gmail.com
Thu Apr 18 14:29:25 UTC 2019


On Thu, 2019-04-18 at 14:16 +0200, Alexander Kanavin wrote:
> Can we take this opportunity to teach u-boot to use Python 3.x
> instead? oe-core is trying to eliminate Python 2.x dependencies
> everywhere.

It looks like the libfdt code in u-boot currently requires Python 2, so
it would be an unstream change to convert it to Python 3. It also
appears to be compiling a C module to work with Python 2 so its
probably not as simple as "convert the script".


> 
> Alex
> 
> On Thu, 18 Apr 2019 at 13:38, Alistair Francis <
> alistair at alistair23.me> wrote:
> > Signed-off-by: Alistair Francis <alistair at alistair23.me>
> > ---
> >  meta/recipes-bsp/u-boot/u-boot.inc | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-
> > bsp/u-boot/u-boot.inc
> > index 96c1f94011..9a754fd09b 100644
> > --- a/meta/recipes-bsp/u-boot/u-boot.inc
> > +++ b/meta/recipes-bsp/u-boot/u-boot.inc
> > @@ -13,7 +13,7 @@ DEPENDS += "swig-native python-native"
> > 
> >  EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX}
> > CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
> >  EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS}
> > ${BUILD_LDFLAGS}"'
> > -EXTRA_OEMAKE += 'PYTHON=nativepython
> > STAGING_INCDIR=${STAGING_INCDIR_NATIVE}
> > STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}'
> > +EXTRA_OEMAKE += 'PYTHON2=nativepython
> > STAGING_INCDIR=${STAGING_INCDIR_NATIVE}
> > STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}'
> > 
> >  PACKAGECONFIG ??= "openssl"
> >  # u-boot will compile its own tools during the build, with
> > specific
> > --
> > 2.20.1
> > 
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
Joshua Watt <JPEWhacker at gmail.com>



More information about the Openembedded-core mailing list