Skip to contentSkip to conversation

Backport Graphics related changes

PATCH New [email protected] 1 participant 3 messages Feb 14, 2025

lore
Share & tools
lore
#0 lore raw

cover Backport Graphics related changes

From: Randolph Sapp <[email protected]>

Backport Graphics related patches from master. These enable opencl related functions and break the dependency on meta-arago-demos. I'm going to try and follow the advice given previously and split the oe-layersetup modifications dropping meta-qt5 and meta-arago-demos into 3 stages for the automation working on the scarthgap* branches.

Randolph Sapp (2):
meta-arago: remove dependency on meta-arago-demos arago.conf: enable opencl distro feature

 meta-arago-distro/conf/distro/arago.conf        |  2 +-
 .../recipes-core/images/tisdk-default-image.bb  | 13 -------------
 ...ackagegroup-arago-tisdk-addons-sdk-target.bb | 17 -----------------
 .../packagegroup-arago-tisdk-addons.bb          |  2 --
 .../packagegroup-arago-tisdk-hmi.bb             | 11 -----------
 .../recipes-core/packagegroups/ti-world.bb      | 10 +---------
 6 files changed, 2 insertions(+), 53 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-hmi.bb
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 meta-arago: remove dependency on meta-arago-demos

From: Randolph Sapp <[email protected]>

Remove any explicit dependencies on meta-arago-demos. These were the last of the "demos" in this layer and they were only being built for legacy devices. Demos should primarily be in layers above this unless they are used for functionality testing.

This patch does not modify this layer's dependency list because meta-arago-demos was not previously listed as an explicit dependency, despite default package groups requiring it.

These modifications are required as part of the effort to make this layer less dependent on meta-qt5. Moving forward TI builds of arago will enable and test Qt6 by default, but unlike before this will not be done in a way that creates an explicit dependency in this layer. This should allow customers and layers that consume or extend this layer to toggle Qt support more easily.

A corresponding patch will be sent following this to remove meta-arago-demos from master oe-layersetup configs and then one more patch will be submitted to delete the now unreachable contents of meta-arago-demos.

---
 .../recipes-core/images/tisdk-default-image.bb  | 13 -------------
 ...ackagegroup-arago-tisdk-addons-sdk-target.bb | 17 -----------------
 .../packagegroup-arago-tisdk-addons.bb          |  2 --
 .../packagegroup-arago-tisdk-hmi.bb             | 11 -----------
 .../recipes-core/packagegroups/ti-world.bb      | 10 +---------
 5 files changed, 1 insertion(+), 52 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-hmi.bb
meta-arago-distro/recipes-core/images/tisdk-default-image.bb +0 -13
index ce3c3879..335ee5c2 100644
@@ -23,8 +23,6 @@ IMAGE_INSTALL += "\
     packagegroup-arago-tisdk-multimedia \
     packagegroup-arago-tisdk-addons \
     packagegroup-arago-tisdk-addons-extra \
-    ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-hmi','packagegroup-arago-base-tisdk-server-extra',d)} \
-    ${@bb.utils.contains('DISTRO_FEATURES','opengl','pdm-anomaly-detection','', d)} \
     ${ARAGO_DEFAULT_IMAGE_EXTRA_INSTALL} \
     packagegroup-arago-tisdk-sysrepo \
 "
@@ -35,16 +33,6 @@ export IMAGE_BASENAME = "tisdk-default-image${ARAGO_IMAGE_SUFFIX}"
 # available on the HW.
 IMAGE_FSTYPES:remove:omapl138 = "ubifs ubi"
 
-EXTRABROWSERS = " \
-    qtwebbrowser-examples \
-    qtwebengine-qmlplugins \
-    qtwebengine-examples \
-"
-
-PYTHON2APPS = " \
-    ${@bb.utils.contains('DISTRO_FEATURES','opengl',"${EXTRABROWSERS}",'',d)} \
-"
-
 DEVTOOLS = " \
     linux-libc-headers-dev \
     build-essential \
@@ -54,7 +42,6 @@ DEVTOOLS = " \
 "
 
 IMAGE_INSTALL += "\
-    ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "${PYTHON2APPS}", "", d)} \
     ${DEVTOOLS} \
     ${@bb.utils.contains('TUNE_FEATURES', 'armv7a', 'valgrind', '', d)} \
     docker \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons-sdk-target.bb +0 -17
index 3e0a2720..8690a874 100644
@@ -31,24 +31,7 @@ EXTRA_LIBS:append:dra7xx = " libulm-dev \
                              gdbserver-c6x-dev \
 "
 
-PDM_ANOMALY_PKG_DEV = "\
-    ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'pdm-anomaly-detection-dev', '', d)} \
-"
-
-
 EXTRA_PACKAGES = ""
-#EXTRA_PACKAGES:append:ti33x = " \
-#                                ${PDM_ANOMALY_PKG_DEV} \
-#"
-#EXTRA_PACKAGES:append:ti43x = " \
-#                                ${PDM_ANOMALY_PKG_DEV} \
-#"
-#EXTRA_PACKAGES:append:omap-a15 = " \
-#                                ${PDM_ANOMALY_PKG_DEV} \
-#"
-#EXTRA_PACKAGES:append:am65xx = " \
-#                             ${PDM_ANOMALY_PKG_DEV} \
-#"
 
 IPCDEV = " \
 	ti-ipc-dev \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-addons.bb +0 -2
index aaf53f3d..1d489937 100644
@@ -85,10 +85,8 @@ EXTRA_PACKAGES:omapl138 = " \
     protobuf \
 "
 
-# acontis-atemsys
 #EXTRA_PACKAGES:append:am335x-evm = " pruss-lld-apps"
 #EXTRA_PACKAGES:append:am437x-evm = " pruss-lld-apps"
-# acontis-atemsys
 #EXTRA_PACKAGES:append:am57xx-evm = " pruss-lld-apps"
 
 RDEPENDS:${PN} = "\
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-hmi.bb deleted +0 -11
deleted file mode 100644
index ca528d3d..00000000
@@ -1,11 +0,0 @@
-SUMMARY = "Task to add HMI related packages"
-LICENSE = "MIT"
-PR = "r0"
-
-inherit packagegroup
-
-RDEPENDS:${PN} = "\
-    evse-hmi \
-    protection-relays-hmi \
-    mmwavegesture-hmi \
-"
meta-arago-distro/recipes-core/packagegroups/ti-world.bb +1 -9
index 96bfcac8..fc3eac74 100644
@@ -15,14 +15,7 @@ CHROMIUM:append:k3 = "\
     chromium-ozone-wayland \
 "
 
-EXTRABROWSERS = " \
-    qtwebbrowser-examples \
-    qtwebengine-qmlplugins \
-    qtwebengine-examples \
-"
-
 PYTHON2APPS = " \
-    ${@bb.utils.contains('DISTRO_FEATURES','opengl',"${EXTRABROWSERS}",'',d)} \
     ${@bb.utils.contains("BBFILE_COLLECTIONS","browser-layer",bb.utils.contains('DISTRO_FEATURES','wayland',"${CHROMIUM}",'',d),'',d)} \
 "
 
@@ -45,11 +38,10 @@ RDEPENDS:${PN} = "\
     packagegroup-arago-tisdk-multimedia \
     packagegroup-arago-tisdk-addons \
     packagegroup-arago-tisdk-addons-extra \
-    ${@bb.utils.contains('DISTRO_FEATURES','opengl','packagegroup-arago-tisdk-hmi','packagegroup-arago-base-tisdk-server-extra',d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES','opengl','','packagegroup-arago-base-tisdk-server-extra',d)} \
     ${@bb.utils.contains("BBFILE_COLLECTIONS", "meta-python2", "${PYTHON2APPS}", "", d)} \
     ${DEVTOOLS} \
     ${@bb.utils.contains('TUNE_FEATURES', 'armv7a', 'valgrind', '', d)} \
     packagegroup-arago-misc \
-    ${@bb.utils.contains('DISTRO_FEATURES','opengl','pdm-anomaly-detection','', d)} \
     ${PREFERRED_PROVIDER_virtual/docker} \
 "
Signature · 1 line
2.48.1
#2 lore raw

PATCH 2/2 arago.conf: enable opencl distro feature

In reply to [email protected]

From: Randolph Sapp <[email protected]>

The GPU (for rogue devices) is now capable of supplying required OpenCL libraries. Additional tests for this feature will be pulled in later.

This was previously disabled due to an outdated opencl library on legacy devices. The offending library has since been removed.

---
 meta-arago-distro/conf/distro/arago.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/conf/distro/arago.conf +1 -1
index 0b30b882..91c67d4b 100644
@@ -48,7 +48,7 @@ DISTRO_FEATURES = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}"
 # Add additional distro features
 DISTRO_FEATURES:append = " pam wayland opengl"
 DISTRO_FEATURES:remove = "x11"
-#DISTRO_FEATURES:append = " opencl"
+DISTRO_FEATURES:append = " opencl"
 DISTRO_FEATURES:append = " vulkan"
 
 # Normally target distro features will not be applied to native builds:
Signature · 1 line
2.48.1