-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from chrisdimich/master
Update/Add various recipes as per NXP release 6.1.1-1.0.0
- Loading branch information
Showing
33 changed files
with
445 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
...pes-devtools/armnn-swig/armnn-swig/0001-configure-use-pkg-config-for-pcre-detection.patch
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
SUMMARY = "Memory Efficient Serialization Library" | ||
HOMEPAGE = "https://github.com/google/flatbuffers" | ||
SECTION = "console/tools" | ||
LICENSE = "Apache-2.0" | ||
|
||
PACKAGE_BEFORE_PN = "${PN}-compiler" | ||
DEPENDS = "flatbuffers-native" | ||
|
||
RDEPENDS:${PN}-compiler = "${PN}" | ||
RDEPENDS:${PN}-${PYTHON_PN} = "${PN}" | ||
RDEPENDS:${PN}-dev += "${PN}-compiler" | ||
|
||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
|
||
SRCREV = "8367664f15c3ea2ee58c67dacf9d630b49466de5" | ||
|
||
SRC_URI = "git://github.com/google/flatbuffers.git;branch=master;protocol=https" | ||
|
||
CVE_CHECK_IGNORE += "CVE-2020-35864" | ||
|
||
EXTRA_OECMAKE += "\ | ||
-DFLATBUFFERS_BUILD_TESTS=OFF \ | ||
-DFLATBUFFERS_BUILD_SHAREDLIB=ON \ | ||
" | ||
|
||
EXTRA_OECMAKE:append:class-target = " -DFLATBUFFERS_FLATC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/flatc" | ||
|
||
inherit cmake python3native | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
FILES:${PN}-compiler = "${bindir}" | ||
|
||
BBCLASSEXTEND = "native nativesdk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
SUMMARY = "Memory Efficient Serialization Library - Python3 Modules" | ||
HOMEPAGE = "https://github.com/google/flatbuffers" | ||
SECTION = "console/tools" | ||
LICENSE = "Apache-2.0" | ||
|
||
LIC_FILES_CHKSUM = "file://../LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
|
||
SRCREV = "8367664f15c3ea2ee58c67dacf9d630b49466de5" | ||
SRC_URI = "git://github.com/google/flatbuffers.git;branch=master;protocol=https" | ||
S = "${WORKDIR}/git/python" | ||
|
||
RDEPENDS:${PN} = "flatbuffers" | ||
|
||
inherit setuptools3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,75 @@ | ||
# Copyright 2019-2021 NXP | ||
# Released under the MIT license (see COPYING.MIT for the terms) | ||
|
||
DESCRIPTION = "Add packages for AI/ML build" | ||
LICENSE = "MIT" | ||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
|
||
PACKAGE_ARCH = "${MACHINE_SOCARCH}" | ||
PACKAGE_ARCH = "${TUNE_PKGARCH}" | ||
|
||
inherit packagegroup | ||
|
||
ML_NNSTREAMER_PKGS_LIST = " \ | ||
nnstreamer \ | ||
nnstreamer-deepview-rt \ | ||
nnstreamer-protobuf \ | ||
nnstreamer-python3 \ | ||
nnstreamer-query \ | ||
nnstreamer-tensorflow-lite \ | ||
" | ||
|
||
ML_NNSTREAMER_PKGS = "" | ||
ML_NNSTREAMER_PKGS:mx8-nxp-bsp:imxgpu = "${ML_NNSTREAMER_PKGS_LIST}" | ||
ML_NNSTREAMER_PKGS:mx8mp-nxp-bsp = "${ML_NNSTREAMER_PKGS_LIST} nnstreamer-tvm nnstreamer-unittest" | ||
ML_NNSTREAMER_PKGS:mx9-nxp-bsp = "${ML_NNSTREAMER_PKGS_LIST}" | ||
|
||
ML_PKGS ?= "" | ||
# i.MX8MP uses nnshark - other i.MX8/9 use raw gstshark | ||
ML_GST_PROFILER = "" | ||
#ML_GST_PROFILER:mx8-nxp-bsp = "gst-shark" | ||
#ML_GST_PROFILER:mx8mp-nxp-bsp = "nnshark" | ||
#ML_GST_PROFILER:mx9-nxp-bsp = "gst-shark" | ||
|
||
# These packages don't require any acceleration | ||
ML_PKGS = "" | ||
ML_PKGS:mx8-nxp-bsp = " \ | ||
onnxruntime \ | ||
pytorch \ | ||
deepview-rt-examples \ | ||
onnxruntime-tests \ | ||
tensorflow-lite \ | ||
torchvision \ | ||
" | ||
ML_PKGS:mx8mq-nxp-bsp = " \ | ||
deepview-rt \ | ||
tvm \ | ||
ML_PKGS:mx9-nxp-bsp = " \ | ||
deepview-rt-examples \ | ||
onnxruntime-tests \ | ||
tensorflow-lite \ | ||
torchvision \ | ||
" | ||
ML_PKGS:mx8mp-nxp-bsp = " \ | ||
deepview-rt \ | ||
# These packages require acceleration, which currently maps to | ||
# all SOCs with GPU except for 8M Mini | ||
ML_ACCELERATED_PKGS = "" | ||
ML_ACCELERATED_PKGS:mx8-nxp-bsp:imxgpu = " \ | ||
tensorflow-lite-vx-delegate \ | ||
" | ||
ML_ACCELERATED_PKGS:mx8mp-nxp-bsp = " \ | ||
tensorflow-lite-vx-delegate \ | ||
tvm \ | ||
" | ||
ML_ACCELERATED_PKGS:mx8mm-nxp-bsp = "" | ||
|
||
|
||
# ARM ethos-u package | ||
ETHOS_U_PKGS = "" | ||
ETHOS_U_PKGS:mx93-nxp-bsp = " \ | ||
ethos-u-vela \ | ||
ethos-u-driver-stack \ | ||
tensorflow-lite-ethosu-delegate \ | ||
eiq-examples \ | ||
" | ||
|
||
|
||
RDEPENDS:${PN} = " \ | ||
${ML_PKGS} \ | ||
${ML_ACCELERATED_PKGS} \ | ||
${ML_NNSTREAMER_PKGS} \ | ||
${ML_GST_PROFILER} \ | ||
${ETHOS_U_PKGS} \ | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...s/deepview-rt/deepview-rt-examples_1.6.bb → ...deepview-rt/deepview-rt-examples_1.6.1.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
SUMMARY = "The eiq examples based on Tf-lite" | ||
DESCRIPTION = "The eiq examples based on Tf-lite" | ||
LICENSE = "Apache-2.0" | ||
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | ||
|
||
SRC_URI = "${EIQ_EXAMPLES_SRC};branch=${SRCBRANCH}" | ||
EIQ_EXAMPLES_SRC ?= "git://github.com/nxp-imx/eiq-example.git;protocol=https" | ||
SRCBRANCH = "lf-6.1.1_1.0.0" | ||
SRCREV = "798519ee033fb7a5aef989a793afe16f400d6479" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
do_install () { | ||
# install scripts to /usr/bin | ||
install -d ${D}${bindir}/${PN}-${PV}/ | ||
cp ${S}/download_models.py ${D}${bindir}/${PN}-${PV}/ | ||
cp -r ${S}/dms ${D}${bindir}/${PN}-${PV}/ | ||
cp -r ${S}/face_recognition ${D}${bindir}/${PN}-${PV}/ | ||
cp -r ${S}/image_classification ${D}${bindir}/${PN}-${PV}/ | ||
cp -r ${S}/object_detection ${D}${bindir}/${PN}-${PV}/ | ||
cp -r ${S}/gesture_detection ${D}${bindir}/${PN}-${PV}/ | ||
} | ||
|
||
RDEPENDS:${PN} = "python3 python3-numpy python3-pillow python3-requests \ | ||
python3-opencv python3-pillow tensorflow-lite" | ||
|
||
#Only support imx93 currently, will add other plantform support. | ||
COMPATIBLE_MACHINE = "(mx93-nxp-bsp)" |
Oops, something went wrong.