kernel_legacyhs: fix building/installing DTBs
PATCH 1/1 kernel_legacyhs: fix building/installing DTBs
From: "Denys Dmytriyenko (TI)" <[email protected]>
A recent change in OE-Core kernel-devicetree.bbclass [1] changed appending code for devicetree from exported do_*() functions to :append to their unexported kernel_do_*() variant. But our copy of kernel_legacyhs.bbclass doesn't define those, using kernel_legacyhs_do_*() names instead, due to how function exporting works using the class name as a prefix.
In order to unreak devicetree building/installing, we need to provide empty stubs for kernel_do_*() functions for the :append to work and then call then at the end of our respective kernel_legacyhs_do_*() functions.
[1] https://git.openembedded.org/openembedded-core/commit/?id=350281188267d0ad7c7e44a6ae3990edcfbe0300
--- meta-ti-bsp/classes/kernel_legacyhs.bbclass | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+)
meta-ti-bsp/classes/kernel_legacyhs.bbclass +24 -0
@@ -354,6 +354,10 @@ addtask bundle_initramfs after do_install before do_deploy KERNEL_DEBUG_TIMESTAMPS ??= "0" +kernel_do_compile() { + : +} + kernel_legacyhs_do_compile() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
@@ -398,6 +402,8 @@ kernel_legacyhs_do_compile() { for typeformake in ${KERNEL_IMAGETYPE_FOR_MAKE} ; do oe_runmake ${PARALLEL_MAKE} ${typeformake} ${KERNEL_EXTRA_ARGS} $use_alternate_initrd done + + kernel_do_compile } kernel_legacyhs_do_transform_kernel() {
@@ -458,6 +464,10 @@ do_compile_kernelmodules() { } addtask compile_kernelmodules after do_compile before do_strip +kernel_do_install() { + : +} + kernel_legacyhs_do_install() { # # First install the modules
@@ -498,6 +508,8 @@ kernel_legacyhs_do_install() { install -m 0644 .config ${D}/${KERNEL_IMAGEDEST}/config-${KERNEL_VERSION} install -m 0644 vmlinux ${D}/${KERNEL_IMAGEDEST}/vmlinux-${KERNEL_VERSION} ! [ -e Module.symvers ] || install -m 0644 Module.symvers ${D}/${KERNEL_IMAGEDEST}/Module.symvers-${KERNEL_VERSION} + + kernel_do_install } # Must be ran no earlier than after do_kernel_checkout or else Makefile won't be in ${S}/Makefile
@@ -665,6 +677,10 @@ KERNEL_LOCALVERSION ??= "" # helper function oe.kernel.get_localversion_file export LOCALVERSION = "${KERNEL_LOCALVERSION}" +kernel_do_configure() { + : +} + kernel_legacyhs_do_configure() { # fixes extra + in /lib/modules/2.6.37+ # $ scripts/setlocalversion . => +
@@ -689,6 +705,8 @@ kernel_legacyhs_do_configure() { fi ${KERNEL_CONFIG_COMMAND} + + kernel_do_configure } inherit cml1 pkgconfig
@@ -807,6 +825,10 @@ addtask sizecheck before do_install after do_strip inherit kernel-artifact-names +kernel_do_deploy() { + : +} + kernel_legacyhs_do_deploy() { deployDir="${DEPLOYDIR}" if [ -n "${KERNEL_DEPLOYSUBDIR}" ]; then
@@ -857,6 +879,8 @@ kernel_legacyhs_do_deploy() { fi done fi + + kernel_do_deploy } # We deploy to filenames that include PKGV and PKGR, read the saved data to
Signature · 1 line
2.35.3
meta-ti / na / 20260811215723.45269-1-denis
PRC Results: FAIL
=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [master][PATCH] kernel_legacyhs: fix building/installing DTBs
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] kernel_legacyhs: fix building/installing DTBs
- Submitter: From: Denys Dmytriyenko <[email protected]>
From: "Denys Dmytriyenko (TI)" <[email protected]>
- Date: Date: Tue, 11 Aug 2026 17:57:23 -0400
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: 388180a081b20453ce6e18b0a31e997a0d385649
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
----------------------------------------
FAIL - [master][PATCH] kernel_legacyhs: fix building/installing DTBs
error: patch failed: meta-ti-bsp/classes/kernel_legacyhs.bbclass:665
error: meta-ti-bsp/classes/kernel_legacyhs.bbclass: patch does not apply
Applying: kernel_legacyhs: fix building/installing DTBs Patch failed at 0001 kernel_legacyhs: fix building/installing DTBs