mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-17 06:50:07 +00:00
efe14bb04e
ERROR: upm-2.0.0+gitAUTOINC+5cf20df96c-r0 do_package: QA Issue: upm: Files/directories were installed but not shipped in any package: /usr/lib/python3.8/site-packages/upm/pyupm_adc121c021.py /usr/lib/python3.8/site-packages/upm/pyupm_hmc5883l.py /usr/lib/python3.8/site-packages/upm/_pyupm_mma8x5x.so /usr/lib/python3.8/site-packages/upm/_pyupm_m24lr64e.so /usr/lib/python3.8/site-packages/upm/pyupm_tca9548a.py /usr/lib/python3.8/site-packages/upm/pyupm_mb704x.py /usr/lib/python3.8/site-packages/upm/_pyupm_ehr.so ...... Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
62 lines
2.4 KiB
BlitzBasic
62 lines
2.4 KiB
BlitzBasic
SUMMARY = "Sensor/Actuator repository for Mraa"
|
|
HOMEPAGE = "https://github.com/intel-iot-devkit/upm"
|
|
SECTION = "libs"
|
|
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=66493d54e65bfc12c7983ff2e884f37f"
|
|
|
|
DEPENDS = "libjpeg-turbo mraa"
|
|
|
|
SRCREV = "5cf20df96c6b35c19d5b871ba4e319e96b4df72d"
|
|
PV = "2.0.0+git${SRCPV}"
|
|
|
|
SRC_URI = "git://github.com/eclipse/${BPN}.git;protocol=http \
|
|
file://0001-CMakeLists.txt-Use-SWIG_SUPPORT_FILES-to-find-the-li.patch \
|
|
file://0001-Use-stdint-types.patch \
|
|
file://0001-initialize-local-variables-before-use.patch \
|
|
file://0001-cmake-Disable-Wno-misleading-indentation-with-clang-.patch \
|
|
file://0001-cmake-Disable-using-Wno-maybe-uninitialized.patch \
|
|
"
|
|
|
|
SRC_URI_append_toolchain-clang_x86 = " file://0001-nmea_gps-Link-with-latomic.patch "
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
# Depends on mraa which only supports x86 and ARM for now
|
|
COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
|
|
|
|
inherit distutils3-base cmake pkgconfig
|
|
|
|
EXTRA_OECMAKE += "-UPYTHON_EXECUTABLE -DWERROR=off"
|
|
|
|
# override this in local.conf to get needed bindings.
|
|
# BINDINGS_pn-upm="python"
|
|
# will result in only the python bindings being built/packaged.
|
|
# Note: 'nodejs' is disabled by default because the bindings
|
|
# generation currently fails with nodejs (>v7.x).
|
|
BINDINGS ??= "python"
|
|
|
|
# nodejs isn't available for armv4/armv5 architectures
|
|
BINDINGS_armv4 ??= "python"
|
|
BINDINGS_armv5 ??= "python"
|
|
|
|
PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
|
|
${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
|
|
|
|
PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON -DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so -DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}, -DBUILDSWIGPYTHON=OFF, swig-native ${PYTHON_PN},"
|
|
PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs-native,"
|
|
|
|
do_configure_prepend() {
|
|
sed -i s:\"lib/${_packages_path}:\"${baselib}/${_packages_path}:g ${S}/cmake/modules/OpenCVDetectPython.cmake
|
|
}
|
|
|
|
FILES_${PYTHON_PN}-${PN} = "${PYTHON_SITEPACKAGES_DIR}"
|
|
RDEPENDS_${PYTHON_PN}-${PN} += "${PYTHON_PN}"
|
|
|
|
FILES_node-${PN} = "${prefix}/lib/node_modules/"
|
|
RDEPENDS_node-${PN} += "nodejs"
|
|
|
|
### Include desired language bindings ###
|
|
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'nodejs', 'node-${PN}', '', d)}"
|
|
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'python', '${PYTHON_PN}-${PN}', '', d)}"
|