diff --git a/meta-digi-arm/recipes-bsp/libedgetpu/libedgetpu-bodypix_git.bb b/meta-digi-arm/recipes-bsp/libedgetpu/libedgetpu-bodypix_git.bb new file mode 100644 index 000000000..7e5599657 --- /dev/null +++ b/meta-digi-arm/recipes-bsp/libedgetpu/libedgetpu-bodypix_git.bb @@ -0,0 +1,36 @@ +SUMMARY = "Edge TPU keyphrase detector" +HOMEPAGE = "https://coral.ai/examples" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +SRCREV = "655a354df5f939602ff6b9da2cbc4d2c78898107" +SRC_URI = "git://github.com/google-coral/project-bodypix.git;protocol=https" + +S = "${WORKDIR}/git" + +RDEPENDS_${PN} = "python3-pycoral \ + python3-svgwrite \ + python3-scipy \ + libusb1 \ +" + +do_install() { + # Install Gstreamer examples + install -d ${D}/opt/libedgetpu + install -d ${D}/opt/libedgetpu/bodypix + install -d ${D}/opt/libedgetpu/bodypix/models + install -d ${D}/opt/libedgetpu/bodypix/posenet_lib + install -d ${D}/opt/libedgetpu/bodypix/posenet_lib/aarch64 + + install -m 0555 ${S}/models/bodypix_mobilenet* ${D}/opt/libedgetpu/bodypix/models/ + install -m 0555 ${S}/bodypix.py ${D}/opt/libedgetpu/bodypix + install -m 0555 ${S}/gstreamer.py ${D}/opt/libedgetpu/bodypix + install -m 0555 ${S}/pose_engine.py ${D}/opt/libedgetpu/bodypix + + install -m 0555 ${S}/posenet_lib/aarch64/posenet_decoder.so ${D}/opt/libedgetpu/bodypix/posenet_lib/aarch64 +} + +FILES_${PN} += "/opt/libedgetpu/bodypix/* \ +" + +INSANE_SKIP_${PN} += "already-stripped" diff --git a/meta-digi-dey/recipes-devtools/python3-scipy/python3-scipy_1.7.0.bb b/meta-digi-dey/recipes-devtools/python3-scipy/python3-scipy_1.7.0.bb new file mode 100644 index 000000000..74fb1c86b --- /dev/null +++ b/meta-digi-dey/recipes-devtools/python3-scipy/python3-scipy_1.7.0.bb @@ -0,0 +1,48 @@ +DESCRIPTION = "Open-source software for mathematics, science, and engineering. It includes modules for statistics, optimization, integration, linear algebra, Fourier transforms, signal and image processing, ODE solvers, and more." +SECTION = "devel/python" +HOMEPAGE = "https://www.scipy.org" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://${S}/scipy-1.7.0.dist-info/LICENSE.txt;md5=caecddab96f03de0092b62333ea77f91" + +PYTHON_PACKAGE = "scipy-1.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl" + +SRC_URI = "https://files.pythonhosted.org/packages/d0/8d/3dbb59d78218b6a76f1ddb55db60ea5459fa7968655acb21252a59a10bc3/${PYTHON_PACKAGE};subdir=${BP}" +SRC_URI[md5sum] = "e2e369078c6b7ca29c952cb9971bc154" +SRC_URI[sha256sum] = "bd4399d4388ca0239a4825e312b3e61b60f743dd6daf49e5870837716502a92a" + +DEPENDS = "python3 python3-pip-native python3-wheel-native" + +RDEPENDS_${PN} = "${PYTHON_PN} \ + ${PYTHON_PN}-numpy \ +" +RPROVIDES_${PN} += "\ + libgfortran-daac5196.so.5.0.0(GFORTRAN_8)(64bit) \ +" + +inherit python3native + +do_unpack[depends] += "unzip-native:do_populate_sysroot" + +do_unpack_extra(){ + [ -d ${S} ] || mkdir -p ${S} + cd ${S} + unzip -q -o ${S}/${PYTHON_PACKAGE} -d ${S} +} +addtask unpack_extra after do_unpack before do_patch + +do_install() { + # Install pip package + install -d ${D}/${PYTHON_SITEPACKAGES_DIR} + ${STAGING_BINDIR_NATIVE}/pip3 install --disable-pip-version-check -v \ + -t ${D}/${PYTHON_SITEPACKAGES_DIR} --no-cache-dir --no-deps \ + ${WORKDIR}/${BP}/scipy-*.whl +} + +FILES_${PN} += "\ + ${libdir}/${PYTHON_DIR}/site-packages/* \ +" + +INSANE_SKIP_${PN} += "already-stripped" + +COMPATIBLE_MACHINE = "(-)" +COMPATIBLE_MACHINE_aarch64 = "(.*)" diff --git a/meta-digi-dey/recipes-devtools/python3-svgwrite/python3-svgwrite_1.4.1.bb b/meta-digi-dey/recipes-devtools/python3-svgwrite/python3-svgwrite_1.4.1.bb new file mode 100644 index 000000000..27bebf2dd --- /dev/null +++ b/meta-digi-dey/recipes-devtools/python3-svgwrite/python3-svgwrite_1.4.1.bb @@ -0,0 +1,13 @@ +DESCRIPTION = "Python library to create SVG drawings" +SECTION = "devel/python" +HOMEPAGE = "https://github.com/mozman/svgwrite" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=3e14f2d1a8674ddcbbd8b51762250049" + +inherit pypi setuptools3 + +PYPI_PACKAGE = "svgwrite" +PYPI_PACKAGE_EXT = "zip" + +SRC_URI[md5sum] = "6132f0d8611ac0d5a8a8731636aa03f8" +SRC_URI[sha256sum] = "e220a4bf189e7e214a55e8a11421d152b5b6fb1dd660c86a8b6b61fe8cc2ac48"