[yocto] Python package recipe

Diego Sueiro diego.sueiro at gmail.com
Thu Jan 30 08:30:42 PST 2014


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/20140130/b7cdf4e6/attachment.html>


More information about the yocto mailing list