[yocto] Trying to tweak a build with a setup.cfg file

Chris Larson clarson at kergoth.com
Mon Aug 19 16:36:59 PDT 2013


On Mon, Aug 19, 2013 at 3:52 PM, Paul D. DeRocco <pderocco at ix.netcom.com>wrote:

> I'm trying to build python-matplotlib from the Danny branch of
> meta-openembedded/meta-oe/recipes-devtools/python. I need to add a
> setup.cfg file to tweak the build, but I don't know how to get it into the
> right place.
>
> I put the setup.cfg into a python-matplotlib subdirectory in my recipes
> directory, and added a python-matplotlib_1.1.0.bbappend file which
> contains the following lines:
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> PRINC := "${@int(PRINC) + 2}"
> SRC_URI += "file://setup.cfg"
>
> The file is being copied into
> .../work/armv7a-vfp-neon-poky-linux-gnueabi/python-matplotlib-1.1.0-r3
> rather than
> .../work/armv7a-vfp-neon-poky-linux-gnueabi/python-matplotlib-1.1.0-r3/mat
> plotlib-1.1.0 where it needs to be. How do I push it down a level?
>

By default, anything in SRC_URI goes into ${WORKDIR}, not ${S}. You should
be able to change this like so:

    SRC_URI += "file://setup.cfg;subdir=matplotlib-${PV}"
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130819/e638749d/attachment.html>


More information about the yocto mailing list