On Fri, 2016-03-25 at 19:58 +1100, Jonathan Liu wrote: > Hi Richard, > > On 25 March 2016 at 19:54, Richard Purdie > <richard.pur...@linuxfoundation.org> wrote: > > On Fri, 2016-03-25 at 17:25 +1100, Jonathan Liu wrote: > > > Python support was not being enabled because of a conflicting > > > --without-python configure argument in OE_EXTRACONF. > > > > > > Signed-off-by: Jonathan Liu <net...@gmail.com> > > > --- > > > meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc > > > b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc > > > index ae97759..6fd3e3e 100644 > > > --- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc > > > +++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc > > > @@ -13,6 +13,7 @@ RDEPENDS_${PN} += "nativesdk-python-core > > > nativesdk > > > -python-lang nativesdk-python- > > > > > > GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" > > > > > > +EXTRA_OECONF_remove = "--without-python" > > > EXTRA_OECONF_append = " --with-python=${WORKDIR}/python" > > > > Would a PACKAGECONFIG += "python" have the same effect? > > > > Cheers, > > > > Richard > > > > > > > > No, it wouldn't. It would depend on python and python-codecs then > fail > when building SDK.
Ok, I still don't think the above is the right fix though as it still leaves things fragile, if for example I try and enable python for gdb by default on target. I think we may need to do something like: -PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without -python,python,python python-codecs" + PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without -python,python,${GDBPYTHON_RDEPENDS}" +GDBPYTHON_RDEPENDS = "python python-codecs" and then set: GDBPYTHON_RDEPENDS = "" PACKAGECONFIG += "python" in the cross recipes. Would that work? Cheers, Richard -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core