[yocto] Python package recipe

Diego Sueiro diego.sueiro at gmail.com
Tue Feb 4 02:05:23 PST 2014


Folks,

Any suggestions?

Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br

/*long live rock 'n roll*/


On Thu, Jan 30, 2014 at 2:30 PM, Diego Sueiro <diego.sueiro at gmail.com>wrote:

> Folks,
>
> I'm trying to create a recipe for Adafruit's BeagleBone IO Python Library:
> https://github.com/adafruit/adafruit-beaglebone-io-python
>
> The problem is that this python package generates some dtbos and install
> them on /lib/firmware but these files were not presented on generated
> package.
>
> Here is my python-pybbio.bb:
>
> DESCRIPTION = "Adafruit's BeagleBone IO Python Library"
> SECTION = "devel/python"
> LICENSE = "MIT"
> LIC_FILES_CHKSUM = "file://README.rst;md5=6c89ebda10e2f2efefe5e681a9a0c1f1"
> SRCNAME = "pybbio"
>
>
> COMPATIBLE_MACHINE = "(beaglebone)"
>
> SRC_URI = "git://
> github.com/adafruit/adafruit-beaglebone-io-python;branch=master"
> SRCREV_pn-${PN} = "ff6f11abe7864e8db735b359365a85323bff2a06"
>
> S = "${WORKDIR}/git"
>
> inherit setuptools
>
> PACKAGE_ARCH = "${MACHINE_ARCH}"
>
>
> To get dtbos and all python files on the package I need to add these lines
> in my recipe:
>
> do_install_append() {
>     install -d ${D}/${nonarch_base_libdir}/firmware
>     install -m 0644 ${S}/overlays/*dt*
> ${D}${nonarch_base_libdir}/firmware/
> }
>
> FILES_${PN} = " ${nonarch_base_libdir}/firmware/* \
>                  ${exec_prefix} \
>
>
> It seems not good to me and I thought that there is a better solution.
> Should I have to inherit another class to achieve this?
>
> Note: I can easly install this on target using pip install
>
>
> Regards,
>
> --
> *dS
> Diego Sueiro
>
> Administrador do Embarcados
> www.embarcados.com.br
>
> /*long live rock 'n roll*/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140204/0e4a7c1d/attachment.html>


More information about the yocto mailing list