ccmp25: x-linux-ai: create custom ML packagegroup for webkit images

The default ML packagegroup provided by the x-linux-ai layer isn't very
flexible when it comes to including a subset of the packagegroups it provides:
even if you include just one of them, the others will get built anyway, pulling
in several dependencies that aren't even used for the final image's contents.
Also, a lot of the runtime dependencies are duplicated in several of the
packages in the dependency chain, making it confusing to manage dependencies
efficiently.

Create a new packagegroup specifically tailored for our ccmp25 webkit images,
using packagegroup-x-linux-ai as reference, removing any duplicated
dependencies and applying the same changes as the ones we apply in the
reference's .bbappend. At the moment, this packagegroup and the old one are
equivalent, but we can now modify ours while leaving the old one intact in case
anyone wants to use it.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2025-01-31 11:46:53 +01:00
parent 61eb1bfbe6
commit 216cfd53e3
3 changed files with 46 additions and 34 deletions

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2020-2024, Digi International Inc.
# Copyright (C) 2020-2025, Digi International Inc.
#
require recipes-core/images/dey-image-graphical.inc
@ -7,6 +7,6 @@ DESCRIPTION = "DEY image with WebKit browser engine support"
GRAPHICAL_CORE = "webkit"
IMAGE_INSTALL:append:ccmp25 = " packagegroup-x-linux-ai"
IMAGE_INSTALL:append:ccmp25 = " packagegroup-dey-x-linux-ai"
COMPATIBLE_MACHINE = "(ccimx6$|ccimx8m|ccimx8x|ccimx93|ccmp15|ccmp2)"

View File

@ -0,0 +1,44 @@
# Copyright (C) 2025, Digi International Inc.
SUMMARY = "X-LINUX-AI subset used for ConnectCore Demo"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup python3-dir
COMMON_PACKAGES = " \
stai-mpu-tools \
tim-vx-tools \
"
TFLITE_PACKAGES = " \
stai-mpu-image-classification-cpp-tfl \
stai-mpu-image-classification-python-tfl \
stai-mpu-object-detection-cpp-tfl \
stai-mpu-object-detection-python-tfl \
tflite-vx-delegate-example \
"
ONNX_PACKAGES = " \
onnxruntime-tools \
stai-mpu-image-classification-cpp-ort \
stai-mpu-image-classification-python-ort \
stai-mpu-object-detection-python-ort \
stai-mpu-object-detection-cpp-ort \
"
OPENVX_PACKAGES = " \
nbg-benchmark \
stai-mpu-image-classification-cpp-ovx \
stai-mpu-image-classification-python-ovx \
stai-mpu-object-detection-cpp-ovx \
stai-mpu-object-detection-python-ovx \
stai-mpu-semantic-segmentation-python-ovx \
stai-mpu-pose-estimation-python-ovx \
stai-mpu-face-recognition-cpp-ovx \
"
RDEPENDS:${PN} += " \
${COMMON_PACKAGES} \
${TFLITE_PACKAGES} \
${OPENVX_PACKAGES} \
"

View File

@ -1,32 +0,0 @@
# Copyright (C) 2023,2024 Digi International Inc.
RDEPENDS:packagegroup-x-linux-ai-tflite:remove:ccmp13 = " \
tflite-cv-apps-image-classification-c++ \
tflite-cv-apps-object-detection-c++ \
"
RDEPENDS:packagegroup-x-linux-ai-tflite-edgetpu:remove:ccmp13 = " \
tflite-cv-apps-edgetpu-image-classification-c++ \
tflite-cv-apps-edgetpu-object-detection-c++ \
"
RDEPENDS:packagegroup-x-linux-ai:remove:ccmp25 = " \
packagegroup-x-linux-ai-onnxruntime \
"
RDEPENDS:packagegroup-x-linux-ai-tflite:remove:ccmp25 = " \
x-linux-ai-tool \
x-linux-ai-application \
"
RDEPENDS:packagegroup-x-linux-ai-onnxruntime:remove:ccmp25 = " \
x-linux-ai-tool \
x-linux-ai-application \
"
RDEPENDS:packagegroup-x-linux-ai-npu:remove:ccmp25 = " \
x-linux-ai-tool \
x-linux-ai-application \
ort-vsinpu-ep-example-cpp \
ort-vsinpu-ep-example-python \
"