All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-arago][scarthgap/master][PATCH 1/5] arago.conf: Remove old and unused config flags
@ 2025-01-17 21:19 Andrew Davis
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 2/5] arago.conf: Remove leftover comments around security protections Andrew Davis
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andrew Davis @ 2025-01-17 21:19 UTC (permalink / raw)
  To: Denys Dmytriyenko, Ryan Eatmon, meta-arago; +Cc: Andrew Davis

These are no longer used in any layer, remove these.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 meta-arago-distro/conf/distro/arago.conf | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index 8e094e02..6e8c6cb9 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -140,9 +140,6 @@ JH_RAMFS_IMAGE = "tisdk-jailhouse-inmate"
 # Enable UI and scripting for perf
 PERF_FEATURES_ENABLE ?= "perf-scripting perf-tui"
 
-# Do not warn on meta-gnome w/o x11
-SKIP_META_GNOME_SANITY_CHECK = "1"
-
 ARAGO_KERNEL_SUFFIX ?= ""
 ARAGO_IMAGE_SUFFIX ?= ""
 
@@ -169,17 +166,9 @@ ARAGO_BRAND ??= "core"
 
 require conf/distro/include/branding-${ARAGO_BRAND}.inc
 
-# Disable polkit's systemd configuration from meta-oe
-POLKITAUTH = ""
-
 # Disable meta-virtualization sanity check and warning
 SKIP_META_VIRT_SANITY_CHECK = "1"
 
-# Set ENTERPRISE_DISTRO flag to ensure that recipes that have been flagged
-# do not attempt to enable features that have potential commercial
-# licensing issues.
-ENTERPRISE_DISTRO = "1"
-
 # oe-core uses external libav instead of internal libav for gst-ffmpeg. We
 # disable by default the codecs in libav that causes issues with shipping an
 # Arago based SDK. No need to prevent gst-ffmpeg from being used since we
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-arago][scarthgap/master][PATCH 2/5] arago.conf: Remove leftover comments around security protections
  2025-01-17 21:19 [meta-arago][scarthgap/master][PATCH 1/5] arago.conf: Remove old and unused config flags Andrew Davis
@ 2025-01-17 21:19 ` Andrew Davis
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 3/5] arago-prefs.inc: Remove PREFERRED_PROVIDER for jpeg Andrew Davis
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Andrew Davis @ 2025-01-17 21:19 UTC (permalink / raw)
  To: Denys Dmytriyenko, Ryan Eatmon, meta-arago; +Cc: Andrew Davis

These flags, along with many more updated ones, can all be set using
security_flags.inc from oe-core now.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 meta-arago-distro/conf/distro/arago.conf | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index 6e8c6cb9..f1948523 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -153,10 +153,6 @@ ARAGO_SYSTEST_ENABLE ?= "0"
 ARAGO_KERNEL_SUFFIX:append = "${@oe.utils.conditional("ARAGO_SYSTEST_ENABLE", "1", "-systest", "", d)}"
 IMAGE_FSTYPES:remove = "${@['','ubi ubifs'][d.getVar('ARAGO_SYSTEST_ENABLE') == '1']}"
 
-# Enable basic stack and buffer overflow protections
-#TARGET_CPPFLAGS += "-fstack-protector -D_FORTIFY_SOURCE=1"
-#TARGET_CPPFLAGS += "-fstack-protector"
-
 # Load default preferences
 require conf/distro/include/arago-prefs.inc
 
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-arago][scarthgap/master][PATCH 3/5] arago-prefs.inc: Remove PREFERRED_PROVIDER for jpeg
  2025-01-17 21:19 [meta-arago][scarthgap/master][PATCH 1/5] arago.conf: Remove old and unused config flags Andrew Davis
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 2/5] arago.conf: Remove leftover comments around security protections Andrew Davis
@ 2025-01-17 21:19 ` Andrew Davis
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 4/5] opencv: Remove OpenCV customization and DISTRO_FEATURE Andrew Davis
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 5/5] ffmpeg: Remove bbappend to disable x264 Andrew Davis
  3 siblings, 0 replies; 9+ messages in thread
From: Andrew Davis @ 2025-01-17 21:19 UTC (permalink / raw)
  To: Denys Dmytriyenko, Ryan Eatmon, meta-arago; +Cc: Andrew Davis

There is now only one provider for libjpeg, the other provider was dropped
from oe-core ~10 years ago. Remove this very outdated PREFERRED_PROVIDER.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 meta-arago-distro/conf/distro/include/arago-prefs.inc           | 2 --
 .../packagegroups/packagegroup-arago-standalone-sdk-target.bb   | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta-arago-distro/conf/distro/include/arago-prefs.inc b/meta-arago-distro/conf/distro/include/arago-prefs.inc
index a518a857..f8e39830 100644
--- a/meta-arago-distro/conf/distro/include/arago-prefs.inc
+++ b/meta-arago-distro/conf/distro/include/arago-prefs.inc
@@ -8,8 +8,6 @@ PREFERRED_PROVIDER_virtual/gettext = "gettext"
 
 PREFERRED_PROVIDER_virtual/kernel:append = "${ARAGO_KERNEL_SUFFIX}"
 
-PREFERRED_PROVIDER_jpeg = "libjpeg-turbo"
-
 # Setting PREFERRED_VERSIONS due to selecting a specific version of a library or
 # application that does not have a GPLv3 license
 PREFERRED_VERSION_crda = "3.18"
diff --git a/meta-arago-extras/recipes-core/packagegroups/packagegroup-arago-standalone-sdk-target.bb b/meta-arago-extras/recipes-core/packagegroups/packagegroup-arago-standalone-sdk-target.bb
index 9c5a2644..78ffe567 100644
--- a/meta-arago-extras/recipes-core/packagegroups/packagegroup-arago-standalone-sdk-target.bb
+++ b/meta-arago-extras/recipes-core/packagegroups/packagegroup-arago-standalone-sdk-target.bb
@@ -21,7 +21,7 @@ RDEPENDS:${PN} = "\
     curl-dev \
     i2c-tools-dev \
     freetype-dev \
-    ${@oe.utils.conditional('PREFERRED_PROVIDER_jpeg', 'libjpeg-turbo', 'libjpeg-turbo-dev', 'jpeg-dev', d)}  \
+    libjpeg-turbo-dev  \
     lzo-dev \
     opkg-dev \
     libpng-dev \
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-arago][scarthgap/master][PATCH 4/5] opencv: Remove OpenCV customization and DISTRO_FEATURE
  2025-01-17 21:19 [meta-arago][scarthgap/master][PATCH 1/5] arago.conf: Remove old and unused config flags Andrew Davis
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 2/5] arago.conf: Remove leftover comments around security protections Andrew Davis
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 3/5] arago-prefs.inc: Remove PREFERRED_PROVIDER for jpeg Andrew Davis
@ 2025-01-17 21:19 ` Andrew Davis
  2025-01-20 21:29   ` Denys Dmytriyenko
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 5/5] ffmpeg: Remove bbappend to disable x264 Andrew Davis
  3 siblings, 1 reply; 9+ messages in thread
From: Andrew Davis @ 2025-01-17 21:19 UTC (permalink / raw)
  To: Denys Dmytriyenko, Ryan Eatmon, meta-arago; +Cc: Andrew Davis

These customizations are leftover from when we had DSP acceleration
for OpenCV. Also "opencv" is not a DISTRO_FEATURE, it is a regular
library, if you need OpenCV for a package you should just DEPEND on it.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 .../point-cloud-viewer/point-cloud-viewer_git.bb             | 4 ----
 meta-arago-distro/conf/distro/arago.conf                     | 5 ++---
 .../recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh     | 3 ---
 .../recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh     | 3 ---
 .../recipes-support/opencv/opencv/keystone/setupEnv.sh       | 3 ---
 meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh  | 2 --
 meta-arago-distro/recipes-support/opencv/opencv_%.bbappend   | 3 ---
 7 files changed, 2 insertions(+), 21 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
 delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
 delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
 delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
 delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv_%.bbappend

diff --git a/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb b/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
index 0388a2e0..d08e0f6b 100644
--- a/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
+++ b/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
@@ -3,10 +3,6 @@ HOMEPAGE = "https://git.ti.com/processor-sdk/point-cloud-viewer/"
 LICENSE = "TI-TSPA"
 LIC_FILES_CHKSUM := "file://PointCloudViewer_manifest.html;md5=7ea694db2dd8d82fd91a18cab8c2c2db"
 
-inherit features_check
-
-REQUIRED_DISTRO_FEATURES = "opencv"
-
 PR = "r2"
 
 COMPATIBLE_MACHINE = "dra7xx"
diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index f1948523..baa526a9 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -50,13 +50,12 @@ DISTRO_FEATURES:append = " pam wayland opengl"
 DISTRO_FEATURES:remove = "x11"
 #DISTRO_FEATURES:append = " opencl"
 DISTRO_FEATURES:append = " vulkan"
-DISTRO_FEATURES:append = " opencv"
 DISTRO_FEATURES:append = " openmp"
 
 # Normally target distro features will not be applied to native builds:
 # Native distro features on this list will use the target feature value
-DISTRO_FEATURES_FILTER_NATIVE:append = " opencl opencv openmp"
-DISTRO_FEATURES_FILTER_NATIVESDK:append = " opencl opencv openmp"
+DISTRO_FEATURES_FILTER_NATIVE:append = " opencl openmp"
+DISTRO_FEATURES_FILTER_NATIVESDK:append = " opencl openmp"
 
 # Set global runtime providers for major components
 ARAGO_SYSVINIT ??= "0"
diff --git a/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
deleted file mode 100644
index 3ad25601..00000000
--- a/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
-export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
-export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP'
diff --git a/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
deleted file mode 100644
index 3ad25601..00000000
--- a/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
-export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
-export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP'
diff --git a/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
deleted file mode 100644
index 5b6bdb78..00000000
--- a/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
-export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
-export OPENCV_OPENCL_DEVICE='TI KeyStone II:ACCELERATOR:TI Multicore C66 DSP'
diff --git a/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
deleted file mode 100644
index 5bf7afd3..00000000
--- a/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
-export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
diff --git a/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend b/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend
deleted file mode 100644
index 2ee6bff7..00000000
--- a/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend
+++ /dev/null
@@ -1,3 +0,0 @@
-inherit features_check
-
-REQUIRED_DISTRO_FEATURES = "opencv"
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [meta-arago][scarthgap/master][PATCH 5/5] ffmpeg: Remove bbappend to disable x264
  2025-01-17 21:19 [meta-arago][scarthgap/master][PATCH 1/5] arago.conf: Remove old and unused config flags Andrew Davis
                   ` (2 preceding siblings ...)
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 4/5] opencv: Remove OpenCV customization and DISTRO_FEATURE Andrew Davis
@ 2025-01-17 21:19 ` Andrew Davis
  2025-01-20 21:16   ` Denys Dmytriyenko
  3 siblings, 1 reply; 9+ messages in thread
From: Andrew Davis @ 2025-01-17 21:19 UTC (permalink / raw)
  To: Denys Dmytriyenko, Ryan Eatmon, meta-arago; +Cc: Andrew Davis

The x264 codec is no longer enabled by default in oe-core, remove the
extra disabling. The x264 codec is not the only codec that makes this
package license flag commercial, so removing that flag after only
disabling one codec is not correct. All potentially troublesome codecs
should be evaluated before setting LICENSE_FLAGS_ACCEPTED to approve
of the license flags.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 meta-arago-distro/conf/distro/arago.conf                 | 9 ++++-----
 .../recipes-multimedia/ffmpeg/ffmpeg_%.bbappend          | 4 ----
 2 files changed, 4 insertions(+), 9 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend

diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index baa526a9..85c7ddd1 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -164,11 +164,10 @@ require conf/distro/include/branding-${ARAGO_BRAND}.inc
 # Disable meta-virtualization sanity check and warning
 SKIP_META_VIRT_SANITY_CHECK = "1"
 
-# oe-core uses external libav instead of internal libav for gst-ffmpeg. We
-# disable by default the codecs in libav that causes issues with shipping an
-# Arago based SDK. No need to prevent gst-ffmpeg from being used since we
-# disable troublesome software.
-LICENSE_FLAGS_ACCEPTED = "commercial_gst-ffmpeg commercial_gstreamer1.0-libav commercial_faad2 non-commercial_netperf"
+# Codecs in libav and ffmpeg with questionable patent statuses are not
+# included by default. If you enable any of those codecs you should check
+# if the below acceptance flags still work for your software distribution
+LICENSE_FLAGS_ACCEPTED = "commercial_ffmpeg commercial_gstreamer1.0-libav"
 
 # Do not package own copy of perl into devkit, rely on host one
 ASSUME_PROVIDED += "nativesdk-perl"
diff --git a/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend b/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend
deleted file mode 100644
index d2f22d8e..00000000
--- a/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend
+++ /dev/null
@@ -1,4 +0,0 @@
-PR:append = ".arago0"
-
-PACKAGECONFIG:remove = "x264"
-LICENSE_FLAGS = ""
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [meta-arago][scarthgap/master][PATCH 5/5] ffmpeg: Remove bbappend to disable x264
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 5/5] ffmpeg: Remove bbappend to disable x264 Andrew Davis
@ 2025-01-20 21:16   ` Denys Dmytriyenko
  2025-01-21 16:08     ` Andrew Davis
  0 siblings, 1 reply; 9+ messages in thread
From: Denys Dmytriyenko @ 2025-01-20 21:16 UTC (permalink / raw)
  To: afd; +Cc: Denys Dmytriyenko, Ryan Eatmon, meta-arago

On Fri, Jan 17, 2025 at 03:19:51PM -0600, Andrew Davis via lists.yoctoproject.org wrote:
> The x264 codec is no longer enabled by default in oe-core, remove the
> extra disabling. The x264 codec is not the only codec that makes this
> package license flag commercial, so removing that flag after only
> disabling one codec is not correct. All potentially troublesome codecs
> should be evaluated before setting LICENSE_FLAGS_ACCEPTED to approve
> of the license flags.

From what I see in the changes below, they are not limited to x264 codec, 
yet, there's no explanation for other changes in the description.


> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>  meta-arago-distro/conf/distro/arago.conf                 | 9 ++++-----
>  .../recipes-multimedia/ffmpeg/ffmpeg_%.bbappend          | 4 ----
>  2 files changed, 4 insertions(+), 9 deletions(-)
>  delete mode 100644 meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend
> 
> diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
> index baa526a9..85c7ddd1 100644
> --- a/meta-arago-distro/conf/distro/arago.conf
> +++ b/meta-arago-distro/conf/distro/arago.conf
> @@ -164,11 +164,10 @@ require conf/distro/include/branding-${ARAGO_BRAND}.inc
>  # Disable meta-virtualization sanity check and warning
>  SKIP_META_VIRT_SANITY_CHECK = "1"
>  
> -# oe-core uses external libav instead of internal libav for gst-ffmpeg. We
> -# disable by default the codecs in libav that causes issues with shipping an
> -# Arago based SDK. No need to prevent gst-ffmpeg from being used since we
> -# disable troublesome software.
> -LICENSE_FLAGS_ACCEPTED = "commercial_gst-ffmpeg commercial_gstreamer1.0-libav commercial_faad2 non-commercial_netperf"
> +# Codecs in libav and ffmpeg with questionable patent statuses are not
> +# included by default. If you enable any of those codecs you should check
> +# if the below acceptance flags still work for your software distribution
> +LICENSE_FLAGS_ACCEPTED = "commercial_ffmpeg commercial_gstreamer1.0-libav"
>  
>  # Do not package own copy of perl into devkit, rely on host one
>  ASSUME_PROVIDED += "nativesdk-perl"
> diff --git a/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend b/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend
> deleted file mode 100644
> index d2f22d8e..00000000
> --- a/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -PR:append = ".arago0"
> -
> -PACKAGECONFIG:remove = "x264"
> -LICENSE_FLAGS = ""
> -- 
> 2.39.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-arago][scarthgap/master][PATCH 4/5] opencv: Remove OpenCV customization and DISTRO_FEATURE
  2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 4/5] opencv: Remove OpenCV customization and DISTRO_FEATURE Andrew Davis
@ 2025-01-20 21:29   ` Denys Dmytriyenko
  2025-01-21 16:19     ` Andrew Davis
  0 siblings, 1 reply; 9+ messages in thread
From: Denys Dmytriyenko @ 2025-01-20 21:29 UTC (permalink / raw)
  To: afd; +Cc: Denys Dmytriyenko, Ryan Eatmon, meta-arago

On Fri, Jan 17, 2025 at 03:19:50PM -0600, Andrew Davis via lists.yoctoproject.org wrote:
> These customizations are leftover from when we had DSP acceleration
> for OpenCV. 

> Also "opencv" is not a DISTRO_FEATURE

Do you mean it is not a DISTRO_FEATURE already defined in OE-Core? True.

Do you mean it cannot be used as a DISTRO_FEATURE? False.

Either way, in this context "opencv" *is* a DISTRO_FEATURE and is being used 
as such.

Any Distro is free to define its own set of additional DISTRO_FEATURES to be 
used locally or downstream, which was the case here.

Moreover, please note that "openmp" is another example of a locally-defined 
DISTRO_FEATURE here.

In other words - I'm fine with the changes, but not fine with the reasoning 
behind them...


>, it is a regular
> library, if you need OpenCV for a package you should just DEPEND on it.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>  .../point-cloud-viewer/point-cloud-viewer_git.bb             | 4 ----
>  meta-arago-distro/conf/distro/arago.conf                     | 5 ++---
>  .../recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh     | 3 ---
>  .../recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh     | 3 ---
>  .../recipes-support/opencv/opencv/keystone/setupEnv.sh       | 3 ---
>  meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh  | 2 --
>  meta-arago-distro/recipes-support/opencv/opencv_%.bbappend   | 3 ---
>  7 files changed, 2 insertions(+), 21 deletions(-)
>  delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
>  delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
>  delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
>  delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
>  delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv_%.bbappend
> 
> diff --git a/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb b/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
> index 0388a2e0..d08e0f6b 100644
> --- a/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
> +++ b/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
> @@ -3,10 +3,6 @@ HOMEPAGE = "https://git.ti.com/processor-sdk/point-cloud-viewer/"
>  LICENSE = "TI-TSPA"
>  LIC_FILES_CHKSUM := "file://PointCloudViewer_manifest.html;md5=7ea694db2dd8d82fd91a18cab8c2c2db"
>  
> -inherit features_check
> -
> -REQUIRED_DISTRO_FEATURES = "opencv"
> -
>  PR = "r2"
>  
>  COMPATIBLE_MACHINE = "dra7xx"
> diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
> index f1948523..baa526a9 100644
> --- a/meta-arago-distro/conf/distro/arago.conf
> +++ b/meta-arago-distro/conf/distro/arago.conf
> @@ -50,13 +50,12 @@ DISTRO_FEATURES:append = " pam wayland opengl"
>  DISTRO_FEATURES:remove = "x11"
>  #DISTRO_FEATURES:append = " opencl"
>  DISTRO_FEATURES:append = " vulkan"
> -DISTRO_FEATURES:append = " opencv"
>  DISTRO_FEATURES:append = " openmp"
>  
>  # Normally target distro features will not be applied to native builds:
>  # Native distro features on this list will use the target feature value
> -DISTRO_FEATURES_FILTER_NATIVE:append = " opencl opencv openmp"
> -DISTRO_FEATURES_FILTER_NATIVESDK:append = " opencl opencv openmp"
> +DISTRO_FEATURES_FILTER_NATIVE:append = " opencl openmp"
> +DISTRO_FEATURES_FILTER_NATIVESDK:append = " opencl openmp"
>  
>  # Set global runtime providers for major components
>  ARAGO_SYSVINIT ??= "0"
> diff --git a/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
> deleted file mode 100644
> index 3ad25601..00000000
> --- a/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
> -export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
> -export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP'
> diff --git a/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
> deleted file mode 100644
> index 3ad25601..00000000
> --- a/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
> -export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
> -export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP'
> diff --git a/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
> deleted file mode 100644
> index 5b6bdb78..00000000
> --- a/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
> -export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
> -export OPENCV_OPENCL_DEVICE='TI KeyStone II:ACCELERATOR:TI Multicore C66 DSP'
> diff --git a/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
> deleted file mode 100644
> index 5bf7afd3..00000000
> --- a/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
> +++ /dev/null
> @@ -1,2 +0,0 @@
> -export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
> -export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
> diff --git a/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend b/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend
> deleted file mode 100644
> index 2ee6bff7..00000000
> --- a/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -inherit features_check
> -
> -REQUIRED_DISTRO_FEATURES = "opencv"
> -- 
> 2.39.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-arago][scarthgap/master][PATCH 5/5] ffmpeg: Remove bbappend to disable x264
  2025-01-20 21:16   ` Denys Dmytriyenko
@ 2025-01-21 16:08     ` Andrew Davis
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew Davis @ 2025-01-21 16:08 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Denys Dmytriyenko, Ryan Eatmon, meta-arago

On 1/20/25 3:16 PM, Denys Dmytriyenko wrote:
> On Fri, Jan 17, 2025 at 03:19:51PM -0600, Andrew Davis via lists.yoctoproject.org wrote:
>> The x264 codec is no longer enabled by default in oe-core, remove the
>> extra disabling. The x264 codec is not the only codec that makes this
>> package license flag commercial, so removing that flag after only
>> disabling one codec is not correct. All potentially troublesome codecs
>> should be evaluated before setting LICENSE_FLAGS_ACCEPTED to approve
>> of the license flags.
> 
>  From what I see in the changes below, they are not limited to x264 codec,
> yet, there's no explanation for other changes in the description.
> 

I'll split out the other changes to LICENSE_FLAGS_ACCEPTED into a
different patch.

Andrew

> 
>> Signed-off-by: Andrew Davis <afd@ti.com>
>> ---
>>   meta-arago-distro/conf/distro/arago.conf                 | 9 ++++-----
>>   .../recipes-multimedia/ffmpeg/ffmpeg_%.bbappend          | 4 ----
>>   2 files changed, 4 insertions(+), 9 deletions(-)
>>   delete mode 100644 meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend
>>
>> diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
>> index baa526a9..85c7ddd1 100644
>> --- a/meta-arago-distro/conf/distro/arago.conf
>> +++ b/meta-arago-distro/conf/distro/arago.conf
>> @@ -164,11 +164,10 @@ require conf/distro/include/branding-${ARAGO_BRAND}.inc
>>   # Disable meta-virtualization sanity check and warning
>>   SKIP_META_VIRT_SANITY_CHECK = "1"
>>   
>> -# oe-core uses external libav instead of internal libav for gst-ffmpeg. We
>> -# disable by default the codecs in libav that causes issues with shipping an
>> -# Arago based SDK. No need to prevent gst-ffmpeg from being used since we
>> -# disable troublesome software.
>> -LICENSE_FLAGS_ACCEPTED = "commercial_gst-ffmpeg commercial_gstreamer1.0-libav commercial_faad2 non-commercial_netperf"
>> +# Codecs in libav and ffmpeg with questionable patent statuses are not
>> +# included by default. If you enable any of those codecs you should check
>> +# if the below acceptance flags still work for your software distribution
>> +LICENSE_FLAGS_ACCEPTED = "commercial_ffmpeg commercial_gstreamer1.0-libav"
>>   
>>   # Do not package own copy of perl into devkit, rely on host one
>>   ASSUME_PROVIDED += "nativesdk-perl"
>> diff --git a/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend b/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend
>> deleted file mode 100644
>> index d2f22d8e..00000000
>> --- a/meta-arago-distro/recipes-multimedia/ffmpeg/ffmpeg_%.bbappend
>> +++ /dev/null
>> @@ -1,4 +0,0 @@
>> -PR:append = ".arago0"
>> -
>> -PACKAGECONFIG:remove = "x264"
>> -LICENSE_FLAGS = ""
>> -- 
>> 2.39.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-arago][scarthgap/master][PATCH 4/5] opencv: Remove OpenCV customization and DISTRO_FEATURE
  2025-01-20 21:29   ` Denys Dmytriyenko
@ 2025-01-21 16:19     ` Andrew Davis
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew Davis @ 2025-01-21 16:19 UTC (permalink / raw)
  To: Denys Dmytriyenko; +Cc: Denys Dmytriyenko, Ryan Eatmon, meta-arago

On 1/20/25 3:29 PM, Denys Dmytriyenko wrote:
> On Fri, Jan 17, 2025 at 03:19:50PM -0600, Andrew Davis via lists.yoctoproject.org wrote:
>> These customizations are leftover from when we had DSP acceleration
>> for OpenCV.
> 
>> Also "opencv" is not a DISTRO_FEATURE
> 
> Do you mean it is not a DISTRO_FEATURE already defined in OE-Core? True.
> 
> Do you mean it cannot be used as a DISTRO_FEATURE? False.
> 
> Either way, in this context "opencv" *is* a DISTRO_FEATURE and is being used
> as such.
> 
> Any Distro is free to define its own set of additional DISTRO_FEATURES to be
> used locally or downstream, which was the case here.
> 

I was meaning the first, trying to point out it is not used by oe-core or
anywhere else, and after this change is not used by Arago either. I'll
re-word that to be more clear here.

> Moreover, please note that "openmp" is another example of a locally-defined
> DISTRO_FEATURE here.
> 

Ah that reminds me, this DISTRO_FEATURE is also now not used after dropping
the openmpacc recipes, we should be able to drop it too.

Andrew

> In other words - I'm fine with the changes, but not fine with the reasoning
> behind them...
> 
> 
>> , it is a regular
>> library, if you need OpenCV for a package you should just DEPEND on it.
>>
>> Signed-off-by: Andrew Davis <afd@ti.com>
>> ---
>>   .../point-cloud-viewer/point-cloud-viewer_git.bb             | 4 ----
>>   meta-arago-distro/conf/distro/arago.conf                     | 5 ++---
>>   .../recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh     | 3 ---
>>   .../recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh     | 3 ---
>>   .../recipes-support/opencv/opencv/keystone/setupEnv.sh       | 3 ---
>>   meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh  | 2 --
>>   meta-arago-distro/recipes-support/opencv/opencv_%.bbappend   | 3 ---
>>   7 files changed, 2 insertions(+), 21 deletions(-)
>>   delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
>>   delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
>>   delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
>>   delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
>>   delete mode 100644 meta-arago-distro/recipes-support/opencv/opencv_%.bbappend
>>
>> diff --git a/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb b/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
>> index 0388a2e0..d08e0f6b 100644
>> --- a/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
>> +++ b/meta-arago-demos/recipes-apps/point-cloud-viewer/point-cloud-viewer_git.bb
>> @@ -3,10 +3,6 @@ HOMEPAGE = "https://git.ti.com/processor-sdk/point-cloud-viewer/"
>>   LICENSE = "TI-TSPA"
>>   LIC_FILES_CHKSUM := "file://PointCloudViewer_manifest.html;md5=7ea694db2dd8d82fd91a18cab8c2c2db"
>>   
>> -inherit features_check
>> -
>> -REQUIRED_DISTRO_FEATURES = "opencv"
>> -
>>   PR = "r2"
>>   
>>   COMPATIBLE_MACHINE = "dra7xx"
>> diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
>> index f1948523..baa526a9 100644
>> --- a/meta-arago-distro/conf/distro/arago.conf
>> +++ b/meta-arago-distro/conf/distro/arago.conf
>> @@ -50,13 +50,12 @@ DISTRO_FEATURES:append = " pam wayland opengl"
>>   DISTRO_FEATURES:remove = "x11"
>>   #DISTRO_FEATURES:append = " opencl"
>>   DISTRO_FEATURES:append = " vulkan"
>> -DISTRO_FEATURES:append = " opencv"
>>   DISTRO_FEATURES:append = " openmp"
>>   
>>   # Normally target distro features will not be applied to native builds:
>>   # Native distro features on this list will use the target feature value
>> -DISTRO_FEATURES_FILTER_NATIVE:append = " opencl opencv openmp"
>> -DISTRO_FEATURES_FILTER_NATIVESDK:append = " opencl opencv openmp"
>> +DISTRO_FEATURES_FILTER_NATIVE:append = " opencl openmp"
>> +DISTRO_FEATURES_FILTER_NATIVESDK:append = " opencl openmp"
>>   
>>   # Set global runtime providers for major components
>>   ARAGO_SYSVINIT ??= "0"
>> diff --git a/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
>> deleted file mode 100644
>> index 3ad25601..00000000
>> --- a/meta-arago-distro/recipes-support/opencv/opencv/am57xx-evm/setupEnv.sh
>> +++ /dev/null
>> @@ -1,3 +0,0 @@
>> -export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
>> -export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
>> -export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP'
>> diff --git a/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
>> deleted file mode 100644
>> index 3ad25601..00000000
>> --- a/meta-arago-distro/recipes-support/opencv/opencv/dra7xx-evm/setupEnv.sh
>> +++ /dev/null
>> @@ -1,3 +0,0 @@
>> -export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
>> -export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
>> -export OPENCV_OPENCL_DEVICE='TI AM57:ACCELERATOR:TI Multicore C66 DSP'
>> diff --git a/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
>> deleted file mode 100644
>> index 5b6bdb78..00000000
>> --- a/meta-arago-distro/recipes-support/opencv/opencv/keystone/setupEnv.sh
>> +++ /dev/null
>> @@ -1,3 +0,0 @@
>> -export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
>> -export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
>> -export OPENCV_OPENCL_DEVICE='TI KeyStone II:ACCELERATOR:TI Multicore C66 DSP'
>> diff --git a/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh b/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
>> deleted file mode 100644
>> index 5bf7afd3..00000000
>> --- a/meta-arago-distro/recipes-support/opencv/opencv/setupEnv.sh
>> +++ /dev/null
>> @@ -1,2 +0,0 @@
>> -export OPENCV_BUILDDIR=/usr/share/OpenCV/samples
>> -export OPENCV_TEST_DATA_PATH=/usr/share/OpenCV/testdata
>> diff --git a/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend b/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend
>> deleted file mode 100644
>> index 2ee6bff7..00000000
>> --- a/meta-arago-distro/recipes-support/opencv/opencv_%.bbappend
>> +++ /dev/null
>> @@ -1,3 +0,0 @@
>> -inherit features_check
>> -
>> -REQUIRED_DISTRO_FEATURES = "opencv"
>> -- 
>> 2.39.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-01-21 16:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-17 21:19 [meta-arago][scarthgap/master][PATCH 1/5] arago.conf: Remove old and unused config flags Andrew Davis
2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 2/5] arago.conf: Remove leftover comments around security protections Andrew Davis
2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 3/5] arago-prefs.inc: Remove PREFERRED_PROVIDER for jpeg Andrew Davis
2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 4/5] opencv: Remove OpenCV customization and DISTRO_FEATURE Andrew Davis
2025-01-20 21:29   ` Denys Dmytriyenko
2025-01-21 16:19     ` Andrew Davis
2025-01-17 21:19 ` [meta-arago][scarthgap/master][PATCH 5/5] ffmpeg: Remove bbappend to disable x264 Andrew Davis
2025-01-20 21:16   ` Denys Dmytriyenko
2025-01-21 16:08     ` Andrew Davis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.