diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-10-23 09:19:19 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-10-24 01:03:09 -0700 |
commit | c53d81d763e2649ad7997533ae252097945b99c3 (patch) | |
tree | 4c83c2c37f90c27670f81fa109678335e7d8011f /meta-oe/recipes-support/libftdi | |
parent | b7a7376981d39dd7554ea689d7d85257cc7dbf0d (diff) | |
download | meta-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.bb | 12 |
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 | ||
12 | DEPENDS = "libusb1" | 12 | DEPENDS = "libusb1 python3" |
13 | 13 | ||
14 | SRC_URI = "http://www.intra2net.com/en/developer/${BPN}/download/${BPN}1-${PV}.tar.bz2" | 14 | SRC_URI = "http://www.intra2net.com/en/developer/${BPN}/download/${BPN}1-${PV}.tar.bz2" |
15 | SRC_URI[md5sum] = "0c09fb2bb19a57c839fa6845c6c780a2" | 15 | SRC_URI[md5sum] = "0c09fb2bb19a57c839fa6845c6c780a2" |
@@ -17,11 +17,17 @@ SRC_URI[sha256sum] = "ec36fb49080f834690c24008328a5ef42d3cf584ef4060f3a35aa4681c | |||
17 | 17 | ||
18 | S = "${WORKDIR}/${BPN}1-${PV}" | 18 | S = "${WORKDIR}/${BPN}1-${PV}" |
19 | 19 | ||
20 | inherit cmake binconfig pkgconfig | 20 | inherit cmake binconfig pkgconfig python3native |
21 | 21 | ||
22 | PACKAGECONFIG ??= "" | 22 | PACKAGECONFIG ??= "" |
23 | PACKAGECONFIG[cpp-wrapper] = "-DFTDI_BUILD_CPP=on -DFTDIPP=on,-DFTDI_BUILD_CPP=off -DFTDIPP=off,boost" | 23 | PACKAGECONFIG[cpp-wrapper] = "-DFTDI_BUILD_CPP=on -DFTDIPP=on,-DFTDI_BUILD_CPP=off -DFTDIPP=off,boost" |
24 | 24 | ||
25 | EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}" | 25 | EXTRA_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 | ||
27 | BBCLASSEXTEND = "native nativesdk" | 29 | BBCLASSEXTEND = "native nativesdk" |
30 | |||
31 | PACKAGES += "${PN}-python" | ||
32 | |||
33 | FILES_${PN}-python = "${libdir}/${PYTHON_DIR}/site-packages/" | ||