From c939115a2ff03c3ab00914a438cf20cde3018306 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Mon, 1 Feb 2021 13:09:25 +0100 Subject: [PATCH] recipes-bsp: add recipe imx-vpu-hantro to support ConnectCore 8M Mini ConnectCore 8M Mini has support to VPU but the library used is different than the used by the i.MX6 processors. This recipe manages the required libraries to operate with this kind of VPU. https://jira.digi.com/browse/DEL-7397 Signed-off-by: Arturo Buzarra --- .../imx-vpu-hantro/imx-vpu-hantro.inc | 31 +++++++++++++++++++ .../imx-vpu-hantro/imx-vpu-hantro_1.20.0.bb | 7 +++++ 2 files changed, 38 insertions(+) create mode 100644 meta-digi-arm/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro.inc create mode 100644 meta-digi-arm/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.20.0.bb diff --git a/meta-digi-arm/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro.inc b/meta-digi-arm/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro.inc new file mode 100644 index 000000000..d46dd3f7a --- /dev/null +++ b/meta-digi-arm/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro.inc @@ -0,0 +1,31 @@ +# Copyright 2017-2018 NXP + +DESCRIPTION = "i.MX HANTRO VPU library" +LICENSE = "Proprietary" + +inherit fsl-eula-unpack use-imx-headers + +PARALLEL_MAKE="-j 1" + +PROVIDES = "virtual/imxvpu" +RPROVIDES_${PN} = "virtual/imxvpu" + +SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" + +PLATFORM_mx8mm = "IMX8MM" +PLATFORM_mx8mq = "IMX8MQ" +PLATFORM_mx8mp = "IMX8MP" + +do_compile () { + oe_runmake CROSS_COMPILE="${HOST_PREFIX}" SDKTARGETSYSROOT="${STAGING_DIR_TARGET}" PLATFORM="${PLATFORM}" all +} + +do_install () { + oe_runmake DEST_DIR="${D}" PLATFORM="${PLATFORM}" install +} + +FILES_${PN} += "/unit_tests" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" diff --git a/meta-digi-arm/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.20.0.bb b/meta-digi-arm/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.20.0.bb new file mode 100644 index 000000000..9bfe9d0af --- /dev/null +++ b/meta-digi-arm/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.20.0.bb @@ -0,0 +1,7 @@ +# Copyright 2017-2020 NXP + +require imx-vpu-hantro.inc +LIC_FILES_CHKSUM = "file://COPYING;md5=cf3f9b8d09bc3926b1004ea71f7a248a" + +SRC_URI[md5sum] = "682b3a73bf5aa22a37d56a433d11fc91" +SRC_URI[sha256sum] = "e6cdd5b4c628604906466fc9620e2b048cf1b2c863f9ee49616dd5212b9261b0"