linux-ti-*: Move KERNEL_BASE_CLASS default
PATCH 1/1 linux-ti-*: Move KERNEL_BASE_CLASS default
If you are trying to build a TI kernel and not building a TI machine then KERNEL_BASE_CLASS is not defined and you get a parse error. Move the default setting out of ti-soc.inc and into ti-kernel.inc.
--- meta-ti-bsp/conf/machine/include/ti-soc.inc | 3 --- meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb | 4 ++-- meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb | 3 ++- meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb | 3 ++- meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)
meta-ti-bsp/conf/machine/include/ti-soc.inc +0 -3
@@ -12,9 +12,6 @@ UBOOT_RD_ENTRYPOINT = "0x84000000" # TI platforms all use devicetrees with overlays MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" -# All machines should start off pointing at the default base kernel class -KERNEL_BASE_CLASS = "kernel" - # Tell the kernel class to install the DTBs in the same directory structure as # the kernel KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb"
meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +2 -2
@@ -3,10 +3,10 @@ SUMMARY = "Mainline Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -inherit ${KERNEL_BASE_CLASS} - require recipes-kernel/linux/ti-kernel.inc +inherit ${KERNEL_BASE_CLASS} + DEPENDS += "gmp-native libmpc-native" KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb +2 -1
@@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" +require recipes-kernel/linux/ti-kernel.inc + inherit ${KERNEL_BASE_CLASS} require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} DEPENDS += "gmp-native libmpc-native"
meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb +2 -1
@@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" +require recipes-kernel/linux/ti-kernel.inc + inherit ${KERNEL_BASE_CLASS} require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} DEPENDS += "gmp-native libmpc-native"
meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +2 -0
@@ -4,6 +4,8 @@ KERNEL_GIT_BRANCH ?= "branch=${BRANCH}" KERNEL_DEFCONFIG ?= "file://defconfig" +KERNEL_BASE_CLASS ?= "kernel" + KERNEL_REPRODUCIBILITY_PATCHES ?= "" SRC_URI = " \
Signature · 1 line
2.17.1
Quoted 1 line · Ryan Eatmon via lists.yoctoproject.org
If you are trying to build a TI kernel and not building a TI machine
Based on the original report, it breaks during parsing of meta-ti for any non-TI machine, not even trying to build a kernel...
Quoted 92 lines
then
KERNEL_BASE_CLASSis not defined and you get a parse error. Move the default setting out of ti-soc.inc and into ti-kernel.inc.Signed-off-by Ryan Eatmon <[email protected]>--- meta-ti-bsp/conf/machine/include/ti-soc.inc | 3 --- meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb | 4 ++-- meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb | 3 ++- meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb | 3 ++- meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)meta-ti-bsp/conf/machine/include/ti-soc.inc +0
-3@@ -12,9 +12,6 @@ UBOOT_RD_ENTRYPOINT = "0x84000000" # TI platforms all use devicetrees with overlays MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" -# All machines should start off pointing at the default base kernel class -KERNEL_BASE_CLASS = "kernel" - # Tell the kernel class to install the DTBs in the same directory structure as # the kernel KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb"meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +2
-2@@ -3,10 +3,10 @@ SUMMARY = "Mainline Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -inherit ${KERNEL_BASE_CLASS} - require recipes-kernel/linux/ti-kernel.inc +inherit ${KERNEL_BASE_CLASS} + DEPENDS += "gmp-native libmpc-native" KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb +2
-1@@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" +require recipes-kernel/linux/ti-kernel.inc + inherit ${KERNEL_BASE_CLASS} require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} DEPENDS += "gmp-native libmpc-native"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb +2
-1@@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" +require recipes-kernel/linux/ti-kernel.inc + inherit ${KERNEL_BASE_CLASS} require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} DEPENDS += "gmp-native libmpc-native"meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +2
-0@@ -4,6 +4,8 @@ KERNEL_GIT_BRANCH ?= "branch=${BRANCH}" KERNEL_DEFCONFIG ?= "file://defconfig" +KERNEL_BASE_CLASS ?= "kernel" + KERNEL_REPRODUCIBILITY_PATCHES ?= "" SRC_URI = " \Signature · 1 line
2.17.1
Quoted 5 lines · Denys Dmytriyenko
Quoted 1 line · Ryan Eatmon via lists.yoctoproject.org
If you are trying to build a TI kernel and not building a TI machine
Based on the original report, it breaks during parsing of meta-ti for any non-TI machine, not even trying to build a kernel...
Good point.
Quoted 93 lines
Quoted 93 lines
then
KERNEL_BASE_CLASSis not defined and you get a parse error. Move the default setting out of ti-soc.inc and into ti-kernel.inc.Signed-off-by Ryan Eatmon <[email protected]>--- meta-ti-bsp/conf/machine/include/ti-soc.inc | 3 --- meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb | 4 ++-- meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb | 3 ++- meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb | 3 ++- meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | 2 ++ 5 files changed, 8 insertions(+), 7 deletions(-)meta-ti-bsp/conf/machine/include/ti-soc.inc +0
-3@@ -12,9 +12,6 @@ UBOOT_RD_ENTRYPOINT = "0x84000000" # TI platforms all use devicetrees with overlays MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" -# All machines should start off pointing at the default base kernel class -KERNEL_BASE_CLASS = "kernel" - # Tell the kernel class to install the DTBs in the same directory structure as # the kernel KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb"meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +2
-2@@ -3,10 +3,10 @@ SUMMARY = "Mainline Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -inherit ${KERNEL_BASE_CLASS} - require recipes-kernel/linux/ti-kernel.inc +inherit ${KERNEL_BASE_CLASS} + DEPENDS += "gmp-native libmpc-native" KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb +2
-1@@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" +require recipes-kernel/linux/ti-kernel.inc + inherit ${KERNEL_BASE_CLASS} require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} DEPENDS += "gmp-native libmpc-native"meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb +2
-1@@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" +require recipes-kernel/linux/ti-kernel.inc + inherit ${KERNEL_BASE_CLASS} require recipes-kernel/linux/setup-defconfig.inc -require recipes-kernel/linux/ti-kernel.inc include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} DEPENDS += "gmp-native libmpc-native"meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +2
-0@@ -4,6 +4,8 @@ KERNEL_GIT_BRANCH ?= "branch=${BRANCH}" KERNEL_DEFCONFIG ?= "file://defconfig" +KERNEL_BASE_CLASS ?= "kernel" + KERNEL_REPRODUCIBILITY_PATCHES ?= "" SRC_URI = " \Signature · 1 line
2.17.1
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
meta-ti / na / 20250801133958.22623-1-reatmon
PRC Results: PASS
master
=====================
PASS
meta-ti / na / 20250801133958.22623-1-reatmon
PRC Results: PASS
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
check-yocto-patches: PASS
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Patches
----------------------------------------
All patches passed
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
apply-yocto-patch: PASS
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
master
=====================
Summary:
- Patch Series: [meta-ti][master][PATCH] linux-ti-*: Move KERNEL_BASE_CLASS default
- Submitter: From: Ryan Eatmon <[email protected]>
- Date: Date: Fri, 1 Aug 2025 08:39:58 -0500
- Num Patches: 1
- Mailing List (public inbox) Commit SHA: 4a6419bb5add15bfab8802eb7999858d9ebd2772
Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: master-next
- Commit Author: LCPD Automation Script <[email protected]>
- Commit Subject: CI/CD Auto-Merger: cicd.master.202508010100
- Commit SHA: 414080e9729f0e76bb66808fb048f5eba8fe6c8a
Patches
----------------------------------------
All patches applied
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
check-yocto-repo: PASS
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
master
=====================
PASS