Skip to contentSkip to conversation

kernel_legacyhs: Adapt to recent changes in oe-core

PATCH In review Ryan Eatmon 2 participants 4 messages Aug 12

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 kernel_legacyhs: Adapt to recent changes in oe-core

Three recent changes in oe-core [1], [2] and [3] have moved around various things with the kernel classes. Since we have our own copy of the old kernel class we need to adapt to the changes.

[1] https://git.openembedded.org/openembedded-core/commit/?id=945f3faa4909b226996eff62bf55fa586a5279fa
[2] https://git.openembedded.org/openembedded-core/commit/?id=635f85b7b8ffe4bfd5f282a98bdf640aa037cde1
[3] https://git.openembedded.org/openembedded-core/commit/?id=06057ac24f74ce5de74dfc7b479a1e2c796bcdcd

---
v3: Add export to the ARCH = assignment.
v2: Some additional changes from testing and further looking at the
upstream patch series changes.

 meta-ti-bsp/classes/kernel_legacyhs.bbclass | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
meta-ti-bsp/classes/kernel_legacyhs.bbclass +5 -3
index f2b79b1a..56130047 100644
@@ -4,7 +4,9 @@
 # SPDX-License-Identifier: MIT
 #
 
-inherit linux-kernel-base kernel-module-split
+inherit kernel-arch kernel-module-split
+
+export ARCH = "${@oe.kernel.map_kernel_arch(d)}"
 
 COMPATIBLE_HOST = ".*-linux"
 
@@ -227,7 +229,7 @@ KERNEL_DTBVENDORED ?= "0"
 #
 # configuration
 #
-KERNEL_VERSION = "${@get_kernelversion_headers('${B}')}"
+KERNEL_VERSION = "${@oe.kernel.get_version_headers('${B}')}"
 
 # kernels are generally machine specific
 PACKAGE_ARCH = "${MACHINE_ARCH}"
@@ -660,7 +662,7 @@ KERNEL_LOCALVERSION ??= ""
 #
 # Note: This class saves the value of localversion to a file
 # so other recipes like make-mod-scripts can restore it via the
-# helper function get_kernellocalversion_file
+# helper function oe.kernel.get_localversion_file
 export LOCALVERSION = "${KERNEL_LOCALVERSION}"
 
 kernel_legacyhs_do_configure() {
Signature · 1 line
2.43.0
#1 lore raw

PATCH v3 2/3 kernel-uboot-legacyhs: Set ARCH and UBOOT_ARCH directly

A per changes in oe-core [1][2], it is preferable to set ARCH and UBOOT_ARCH directly instead of relying on a class.

[1] https://git.openembedded.org/openembedded-core/commit/?id=635f85b7b8ffe4bfd5f282a98bdf640aa037cde1
[2] https://git.openembedded.org/openembedded-core/commit/?id=bdcd04bbc5e205df16c0779388521db4041e7841

---
v3: No changes
v2: New patch

 meta-ti-bsp/classes/kernel-uboot-legacyhs.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta-ti-bsp/classes/kernel-uboot-legacyhs.bbclass +3 -0
index 6d4aff6b..a2940845 100644
@@ -4,6 +4,9 @@
 # SPDX-License-Identifier: MIT
 #
 
+ARCH = "${@oe.kernel.map_kernel_arch(d)}"
+UBOOT_ARCH = "${@oe.kernel.map_uboot_arch(d)}"
+
 # fitImage kernel compression algorithm
 FIT_KERNEL_COMP_ALG ?= "gzip"
 FIT_KERNEL_COMP_ALG_EXTENSION ?= ".gz"
Signature · 1 line
2.43.0
#2 lore raw

PATCH v3 3/3 ti-devicetree-prefix: set ARCH directly

In reply to Ryan Eatmon

A change in oe-core [1] no longer set ARCH but prefers that you set it yourself.

[1] https://git.openembedded.org/openembedded-core/commit/?id=635f85b7b8ffe4bfd5f282a98bdf640aa037cde1

---
v3: No changes
v2: New patch

 meta-ti-bsp/classes/ti-devicetree-prefix.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta-ti-bsp/classes/ti-devicetree-prefix.bbclass +2 -0
index 5858cc65..65c0134c 100644
@@ -35,6 +35,8 @@ def get_merge_dtbs_from_kernel(dts_dir, dts_pattern):
                     matches.append(pattern)
     return ' '.join(matches)
 
+ARCH = "${@oe.kernel.map_kernel_arch(d)}"
+
 KERNEL_DEVICETREE = " \
     ${@get_dtbs_from_kernel('${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts/', '${KERNEL_DEVICETREE_PREFIX}')} \
     ${@get_merge_dtbs_from_kernel('${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts/', '${KERNEL_DEVICETREE_DTBMERGE}')} \
Signature · 1 line
2.43.0
#3 lore raw
In reply to Ryan Eatmon

meta-ti / na / 20260812214920.3639941-1-reatmon

PRC Results: FAIL

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
All patches passed

=========================================================
apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-ti][master][PATCH v3 1/3] kernel_legacyhs: Adapt to recent changes in oe-core
- Submitter: From: Ryan Eatmon <[email protected]>
- Date: Date: Wed, 12 Aug 2026 16:49:18 -0500
- Num Patches: 3
- Mailing List (public inbox) Commit SHA: d0412f705767e28857162a634630bafbd2358cec

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: master
- Commit Author: Ryan Eatmon <[email protected]>
- Commit Subject: ti-core-initramfs: Decrease IMAGE_OVERHEAD_FACTOR
- Commit SHA: 9a5228e56c20f4b3ae65cec904010ba208e635d2

Patches
----------------------------------------
All patches applied

=========================================================
check-yocto-repo: PASS
=========================================================
master
=====================
PASS

=========================================================
yocto-check-layers: FAIL
=========================================================
master - FAIL
=====================
ERROR: No recipes in default available for: