diff mbox series

[master,v2] meta-arago: migrate to the new layer config format

Message ID 20261204184008.13349-1-denis@denix.org
State Under Review
Delegated to: Ryan Eatmon
Headers show
Series [master,v2] meta-arago: migrate to the new layer config format | expand

Commit Message

Denys Dmytriyenko Dec. 4, 2026, 6:40 p.m. UTC
From: "Denys Dmytriyenko (TI)" <denys@konsulko.com>

The new layer configuration format being introduced in "garburn" release series
simplifies and changes how layer gets setup, by making things more automated,
predictable, but also more restrictive.

* There's a limited pre-defined set of variables that can be set or changed
  inside the layer.conf
* Arbitrary variables can be set in the layervars.conf, but those are local
  to the corresponding layer only
* Dynamic layers are handled automatically, but the directory got renamed to
  dynamic-recipes/
* Layer-specific HOSTTOOLS adjustments need to be converted to recipe-specific
  RECIPE_HOSTTOOLS
* Layer names are also being standardized to some degree

Specific changes in meta-arago:

* Handle commercial licenses for the Distro
* Drop proxy-specific host tools
* Point to standard TI licenses in meta-ti-bsp

Signed-off-by: Denys Dmytriyenko (TI) <denys@konsulko.com>
---
v2 changes:
* use addfragments in the arago.conf
* previous mesa-demos patch applied

 meta-arago-distro/conf/distro/arago.conf |  4 ++-
 meta-arago-distro/conf/layer.conf        | 41 ++++++++----------------
 meta-arago-extras/conf/layer.conf        | 31 ++++++------------
 meta-arago-extras/conf/layervars.conf    |  1 +
 4 files changed, 26 insertions(+), 51 deletions(-)
 create mode 100644 meta-arago-extras/conf/layervars.conf

Comments

PRC Automation Dec. 4, 2026, 6:55 p.m. UTC | #1
meta-arago / na / 20261204184008.13349-1-denis

PRC Results: FAIL

=========================================================
  check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [master][PATCH v2] meta-arago: migrate to the new layer config format
    WARN: Revised patch missing a comment. (REVISION-1)
        patch
    
    WARN: Missing Signed-off-by by sender in commit message. (SIGNED-OFF-BY-2)
        patch
    
    For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887



=========================================================
  apply-yocto-patch: FAIL
=========================================================
master
=====================
Summary:
- Patch Series: [master][PATCH v2] meta-arago: migrate to the new layer config format
- Submitter: From: Denys Dmytriyenko <denis@denix.org>
From: "Denys Dmytriyenko (TI)" <denys@konsulko.com>
- Date: Date: Fri,  4 Dec 2026 13:40:08 -0500
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: 43b63cbb609a73e820ae87958ae48b9243461bee

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: master
- Commit Author: Andrew Davis <afd@ti.com>
- Commit Subject: wayland-protocols: Do not add wayland-drm protocol
- Commit SHA: e9590d8729ba5982bd2f9da36d56c1a52ce5ef21

Patches
----------------------------------------
FAIL - [master][PATCH v2] meta-arago: migrate to the new layer config format
    error: patch failed: meta-arago-distro/conf/layer.conf:1
    error: meta-arago-distro/conf/layer.conf: patch does not apply
    Applying: meta-arago: migrate to the new layer config format
    Patch failed at 0001 meta-arago: migrate to the new layer config format
diff mbox series

Patch

diff --git a/meta-arago-distro/conf/distro/arago.conf b/meta-arago-distro/conf/distro/arago.conf
index 7bd4be3f..8049cdce 100644
--- a/meta-arago-distro/conf/distro/arago.conf
+++ b/meta-arago-distro/conf/distro/arago.conf
@@ -146,4 +146,6 @@  SKIP_META_VIRT_SANITY_CHECK = "1"
 # 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"
+LICENSE_FLAGS_ACCEPTED += "commercial_ffmpeg commercial_gstreamer1.0-libav"
+META_TI_TEST_FRAGMENT = "meta-ti-test/accept-commercial-license"
+addfragments ${OE_FRAGMENTS_PREFIX} META_TI_TEST_FRAGMENT OE_FRAGMENTS_METADATA_VARS OE_FRAGMENTS_BUILTIN
diff --git a/meta-arago-distro/conf/layer.conf b/meta-arago-distro/conf/layer.conf
index cc3d421a..d80c0b73 100644
--- a/meta-arago-distro/conf/layer.conf
+++ b/meta-arago-distro/conf/layer.conf
@@ -1,41 +1,26 @@ 
-# We have a conf and classes directory, append to BBPATH
-BBPATH .= ":${LAYERDIR}"
+LAYERNAME = "meta-arago-distro"
+LAYERVERSION = "2"
+LAYERSERIES_COMPAT = "garburn"
 
-# We have a recipes directory, add to BBFILES
-BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
-
-BBFILE_COLLECTIONS += "meta-arago-distro"
-BBFILE_PATTERN_meta-arago-distro := "^${LAYERDIR}/"
-BBFILE_PRIORITY_meta-arago-distro = "10"
-
-LAYERSERIES_COMPAT_meta-arago-distro = "wrynose blacksail"
-
-LAYERDEPENDS_meta-arago-distro = " \
-    core \
+LAYERDEPENDS = " \
+    oe-core \
     meta-ti-bsp \
     meta-ti-extras \
     meta-ti-test \
-    openembedded-layer \
-    networking-layer \
-    multimedia-layer \
-    meta-python \
-    virtualization-layer \
+    meta-oe \
+    meta-oe-python \
+    meta-oe-networking \
+    meta-oe-multimedia \
+    meta-virtualization \
     meta-arago-extras \
 "
 
-LAYERRECOMMENDS_meta-arago-distro = " \
-    chromium-browser-layer \
-    selinux \
-"
-
-BBFILES_DYNAMIC += " \
-    chromium-browser-layer:${LAYERDIR}/dynamic-layers/chromium-browser-layer/recipes*/*/*.bbappend \
-    selinux:${LAYERDIR}/dynamic-layers/selinux/recipes*/*/*.bbappend \
+LAYERRECOMMENDS = " \
+    meta-browser-chromium \
+    meta-selinux \
 "
 
 SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
     weston-init->weston \
     weston-init->kbd \
 "
-
-HOSTTOOLS_NONFATAL += "corkscrew getent socket"
diff --git a/meta-arago-extras/conf/layer.conf b/meta-arago-extras/conf/layer.conf
index 3644c174..0272548e 100644
--- a/meta-arago-extras/conf/layer.conf
+++ b/meta-arago-extras/conf/layer.conf
@@ -1,28 +1,15 @@ 
-# We have a conf and classes directory, append to BBPATH
-BBPATH .= ":${LAYERDIR}"
+LAYERNAME = "meta-arago-extras"
+LAYERVERSION = "2"
+LAYERSERIES_COMPAT = "garburn"
 
-# We have a recipes directory, add to BBFILES
-BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
-
-BBFILE_COLLECTIONS += "meta-arago-extras"
-BBFILE_PATTERN_meta-arago-extras := "^${LAYERDIR}/"
-BBFILE_PRIORITY_meta-arago-extras = "10"
-
-LAYERSERIES_COMPAT_meta-arago-extras = "wrynose blacksail"
-
-# Set a variable to get to the top of the metadata location
-ARAGOBASE := '${@os.path.normpath("${LAYERDIR}/../")}'
-
-LICENSE_PATH += "${LAYERDIR}/licenses"
-
-LAYERDEPENDS_meta-arago-extras = " \
-    core \
+LAYERDEPENDS = " \
+    oe-core \
     meta-ti-bsp \
     meta-ti-extras \
-    networking-layer \
-    openembedded-layer \
+    meta-oe \
+    meta-oe-networking \
 "
 
-BBFILES_DYNAMIC += " \
-    qt6-layer:${LAYERDIR}/dynamic-layers/qt6-layer/recipes*/*/*.bbappend \
+LAYERRECOMMENDS = " \
+    meta-qt6 \
 "
diff --git a/meta-arago-extras/conf/layervars.conf b/meta-arago-extras/conf/layervars.conf
new file mode 100644
index 00000000..b98ddb23
--- /dev/null
+++ b/meta-arago-extras/conf/layervars.conf
@@ -0,0 +1 @@ 
+LICENSE_PATH += "${LAYERDIR_meta-ti-bsp}/licenses"