* [PATCH v2] u-boot: Fix missing Python.h build failure
@ 2019-04-18 4:35 Alistair Francis
2019-04-18 12:16 ` Alexander Kanavin
0 siblings, 1 reply; 5+ messages in thread
From: Alistair Francis @ 2019-04-18 4:35 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Alistair Francis <alistair@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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] u-boot: Fix missing Python.h build failure
2019-04-18 4:35 [PATCH v2] u-boot: Fix missing Python.h build failure Alistair Francis
@ 2019-04-18 12:16 ` Alexander Kanavin
2019-04-18 14:29 ` Joshua Watt
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Kanavin @ 2019-04-18 12:16 UTC (permalink / raw)
To: Alistair Francis; +Cc: openembedded-core
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 <alistair@alistair23.me> wrote:
>
> Signed-off-by: Alistair Francis <alistair@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@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] u-boot: Fix missing Python.h build failure
2019-04-18 12:16 ` Alexander Kanavin
@ 2019-04-18 14:29 ` Joshua Watt
2019-04-18 14:37 ` Alistair Francis
0 siblings, 1 reply; 5+ messages in thread
From: Joshua Watt @ 2019-04-18 14:29 UTC (permalink / raw)
To: Alexander Kanavin, Alistair Francis; +Cc: openembedded-core
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@alistair23.me> wrote:
> > Signed-off-by: Alistair Francis <alistair@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@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Joshua Watt <JPEWhacker@gmail.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] u-boot: Fix missing Python.h build failure
2019-04-18 14:29 ` Joshua Watt
@ 2019-04-18 14:37 ` Alistair Francis
2019-04-22 18:20 ` Tom Rini
0 siblings, 1 reply; 5+ messages in thread
From: Alistair Francis @ 2019-04-18 14:37 UTC (permalink / raw)
To: Joshua Watt; +Cc: openembedded-core
On Thu, Apr 18, 2019 at 7:29 AM Joshua Watt <jpewhacker@gmail.com> 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 <
> > alistair@alistair23.me> wrote:
> > > Signed-off-by: Alistair Francis <alistair@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@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> --
> Joshua Watt <JPEWhacker@gmail.com>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] u-boot: Fix missing Python.h build failure
2019-04-18 14:37 ` Alistair Francis
@ 2019-04-22 18:20 ` Tom Rini
0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2019-04-22 18:20 UTC (permalink / raw)
To: Alistair Francis; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 923 bytes --]
On Thu, Apr 18, 2019 at 07:37:27AM -0700, Alistair Francis wrote:
> On Thu, Apr 18, 2019 at 7:29 AM Joshua Watt <jpewhacker@gmail.com> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-22 18:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18 4:35 [PATCH v2] u-boot: Fix missing Python.h build failure Alistair Francis
2019-04-18 12:16 ` Alexander Kanavin
2019-04-18 14:29 ` Joshua Watt
2019-04-18 14:37 ` Alistair Francis
2019-04-22 18:20 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.