Re: [OE-core] [PATCH v2] u-boot: Fix missing Python.h build failure
On Thu, Apr 18, 2019 at 07:37:27AM -0700, Alistair Francis wrote: > On Thu, Apr 18, 2019 at 7:29 AM Joshua Watt wrote: > > > > 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". > > Agreed, the u-boot Maintainers added a patch to specifically use > Python2 recently so I think we are stuck with Python2 here until > upstream u-boot is updated. For which help would be greatly appreciated as we have a fair amount of python2 stuff. -- Tom signature.asc Description: PGP signature -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH v2] u-boot: Fix missing Python.h build failure
On Thu, Apr 18, 2019 at 7:29 AM Joshua Watt wrote: > > 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". Agreed, the u-boot Maintainers added a patch to specifically use Python2 recently so I think we are stuck with Python2 here until upstream u-boot is updated. Alistair > > > > > > Alex > > > > On Thu, 18 Apr 2019 at 13:38, Alistair Francis < > > alist...@alistair23.me> wrote: > > > Signed-off-by: Alistair Francis > > > --- > > > 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@lists.openembedded.org > > > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- > Joshua Watt > > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH v2] u-boot: Fix missing Python.h build failure
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 < > alist...@alistair23.me> wrote: > > Signed-off-by: Alistair Francis > > --- > > 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@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- Joshua Watt -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH v2] u-boot: Fix missing Python.h build failure
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. Alex On Thu, 18 Apr 2019 at 13:38, Alistair Francis wrote: > > Signed-off-by: Alistair Francis > --- > 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@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH v2] u-boot: Fix missing Python.h build failure
Signed-off-by: Alistair Francis --- 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@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core