ethos-u: backport driver, firmware and vela python tool

From NXP's lf-6.1.1-1.0.0 release for the ccimx93.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2023-06-26 15:44:57 +02:00
parent 9acc53d948
commit 4992b9934f
4 changed files with 45 additions and 0 deletions

View File

@ -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 # 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_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:ccimx93 = "2.0.7"
PREFERRED_VERSION_flatbuffers-native:ccimx93 = "2.0.7" PREFERRED_VERSION_flatbuffers-native:ccimx93 = "2.0.7"
PREFERRED_VERSION_tensorflow-lite:ccimx93 = "2.10.0" PREFERRED_VERSION_tensorflow-lite:ccimx93 = "2.10.0"

View File

@ -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"

View File

@ -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"

View File

@ -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)"