diff --git a/meta-digi-arm/conf/machine/include/imx-digi-base.inc b/meta-digi-arm/conf/machine/include/imx-digi-base.inc index f0ea6bc5a..09d6c863a 100644 --- a/meta-digi-arm/conf/machine/include/imx-digi-base.inc +++ b/meta-digi-arm/conf/machine/include/imx-digi-base.inc @@ -280,6 +280,7 @@ PREFERRED_VERSION_optee-test:mx9-nxp-bsp ??= "3.19.0.imx" # Machine learning backports from NXP's lf-6.1.1_1.0.0 release PREFERRED_VERSION_deepview-rt:ccimx93 = "2.4.46.1-aarch64" +PREFERRED_VERSION_ethos-u-vela:ccimx93 = "3.6.0" PREFERRED_VERSION_flatbuffers:ccimx93 = "2.0.7" PREFERRED_VERSION_flatbuffers-native:ccimx93 = "2.0.7" PREFERRED_VERSION_tensorflow-lite:ccimx93 = "2.10.0" diff --git a/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-driver-stack/ethos-u-driver-stack_22.08.bbappend b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-driver-stack/ethos-u-driver-stack_22.08.bbappend new file mode 100644 index 000000000..7056e97c0 --- /dev/null +++ b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-driver-stack/ethos-u-driver-stack_22.08.bbappend @@ -0,0 +1,6 @@ +# Copyright (C) 2023 Digi International + +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e" + +SRCBRANCH = "lf-6.1.1_1.0.0" +SRCREV = "ca1a424bcd00758e0b50043ac7f8a3ff214e9ed8" diff --git a/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-driver-stack/ethos-u-firmware_22.08.bbappend b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-driver-stack/ethos-u-firmware_22.08.bbappend new file mode 100644 index 000000000..2a73b9bcf --- /dev/null +++ b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-driver-stack/ethos-u-firmware_22.08.bbappend @@ -0,0 +1,10 @@ +# Copyright (C) 2023 Digi International + +LIC_FILES_CHKSUM = "\ + file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e \ + file://LICENSE-GPL-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://LICENSE-BSD-3.txt;md5=0858ec9c7a80c4a2cf16e4f825a2cc91 \ +" + +SRCBRANCH = "lf-6.1.1_1.0.0" +SRCREV = "c80a413664f650c366fc4721474a3fe1d1503eb5" diff --git a/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-vela/ethos-u-vela_3.6.0.bb b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-vela/ethos-u-vela_3.6.0.bb new file mode 100644 index 000000000..031be0fda --- /dev/null +++ b/meta-digi-dey/dynamic-layers/meta-ml/recipes-libraries/ethos-u-vela/ethos-u-vela_3.6.0.bb @@ -0,0 +1,28 @@ +# Copyright 2022 NXP +DESCRIPTION = "The vela tool is used to compile a TensorFlow Lite for \ +Microcontrollers neural network model into an optimised version that \ +can run on an embedded system containing an Arm Ethos-U NPU" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e3fc50a88d0a364313df4b21ef20c29e" +DEPENDS = "python3-pip-native python3-wheel-native flatbuffers python3-numpy python3-lxml" + +SRC_URI = "${VELA_SRC};branch=${SRCBRANCH}" +VELA_SRC ?= "git://github.com/nxp-imx/ethos-u-vela.git;protocol=https" +SRCBRANCH = "lf-6.1.1_1.0.0" +SRCREV = "8b138a2e6880e31bd199764db9c5177c46bd5579" + +S = "${WORKDIR}/git" + +inherit setuptools3 + +do_compile[network] = "1" +do_compile:prepend() { + export HTTP_PROXY=${http_proxy} + export HTTPS_PROXY=${https_proxy} + export http_proxy=${http_proxy} + export https_proxy=${https_proxy} +} + +RDEPENDS:${PN} += "flatbuffers python3-numpy python3-lxml" + +COMPATIBLE_MACHINE = "(mx93-nxp-bsp)"