summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libftdi
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-10-23 09:19:19 -0700
committerKhem Raj <raj.khem@gmail.com>2019-10-24 01:03:09 -0700
commitc53d81d763e2649ad7997533ae252097945b99c3 (patch)
tree4c83c2c37f90c27670f81fa109678335e7d8011f /meta-oe/recipes-support/libftdi
parentb7a7376981d39dd7554ea689d7d85257cc7dbf0d (diff)
downloadmeta-openembedded-c53d81d763e2649ad7997533ae252097945b99c3.tar.gz
libftdi: Add target deps for python bindings
helps linking with right libraries for python bindings Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libftdi')
-rw-r--r--meta-oe/recipes-support/libftdi/libftdi_1.4.bb12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta-oe/recipes-support/libftdi/libftdi_1.4.bb b/meta-oe/recipes-support/libftdi/libftdi_1.4.bb
index 4fc6eb090..c33c79111 100644
--- a/meta-oe/recipes-support/libftdi/libftdi_1.4.bb
+++ b/meta-oe/recipes-support/libftdi/libftdi_1.4.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM= "\
9 file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ 9 file://COPYING.LIB;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
10" 10"
11 11
12DEPENDS = "libusb1" 12DEPENDS = "libusb1 python3"
13 13
14SRC_URI = "http://www.intra2net.com/en/developer/${BPN}/download/${BPN}1-${PV}.tar.bz2" 14SRC_URI = "http://www.intra2net.com/en/developer/${BPN}/download/${BPN}1-${PV}.tar.bz2"
15SRC_URI[md5sum] = "0c09fb2bb19a57c839fa6845c6c780a2" 15SRC_URI[md5sum] = "0c09fb2bb19a57c839fa6845c6c780a2"
@@ -17,11 +17,17 @@ SRC_URI[sha256sum] = "ec36fb49080f834690c24008328a5ef42d3cf584ef4060f3a35aa4681c
17 17
18S = "${WORKDIR}/${BPN}1-${PV}" 18S = "${WORKDIR}/${BPN}1-${PV}"
19 19
20inherit cmake binconfig pkgconfig 20inherit cmake binconfig pkgconfig python3native
21 21
22PACKAGECONFIG ??= "" 22PACKAGECONFIG ??= ""
23PACKAGECONFIG[cpp-wrapper] = "-DFTDI_BUILD_CPP=on -DFTDIPP=on,-DFTDI_BUILD_CPP=off -DFTDIPP=off,boost" 23PACKAGECONFIG[cpp-wrapper] = "-DFTDI_BUILD_CPP=on -DFTDIPP=on,-DFTDI_BUILD_CPP=off -DFTDIPP=off,boost"
24 24
25EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}" 25EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
26 -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so \
27 -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
26 28
27BBCLASSEXTEND = "native nativesdk" 29BBCLASSEXTEND = "native nativesdk"
30
31PACKAGES += "${PN}-python"
32
33FILES_${PN}-python = "${libdir}/${PYTHON_DIR}/site-packages/"