1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-06-02 08:50:31 +00:00

linux-ti-*: Move KERNEL_BASE_CLASS default

If you are 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.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
Ryan Eatmon
2025-08-01 07:22:36 -05:00
parent 414080e972
commit f2b5ea5d01
5 changed files with 8 additions and 7 deletions
@@ -12,9 +12,6 @@ UBOOT_RD_ENTRYPOINT = "0x84000000"
# TI platforms all use devicetrees with overlays # TI platforms all use devicetrees with overlays
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" 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 # Tell the kernel class to install the DTBs in the same directory structure as
# the kernel # the kernel
KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb"
@@ -3,10 +3,10 @@ SUMMARY = "Mainline Linux kernel for TI devices"
LICENSE = "GPL-2.0-only" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
inherit ${KERNEL_BASE_CLASS}
require recipes-kernel/linux/ti-kernel.inc require recipes-kernel/linux/ti-kernel.inc
inherit ${KERNEL_BASE_CLASS}
DEPENDS += "gmp-native libmpc-native" DEPENDS += "gmp-native libmpc-native"
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}"
@@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices"
LICENSE = "GPL-2.0-only" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
require recipes-kernel/linux/ti-kernel.inc
inherit ${KERNEL_BASE_CLASS} inherit ${KERNEL_BASE_CLASS}
require recipes-kernel/linux/setup-defconfig.inc 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 ''} include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
DEPENDS += "gmp-native libmpc-native" DEPENDS += "gmp-native libmpc-native"
@@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices"
LICENSE = "GPL-2.0-only" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
require recipes-kernel/linux/ti-kernel.inc
inherit ${KERNEL_BASE_CLASS} inherit ${KERNEL_BASE_CLASS}
require recipes-kernel/linux/setup-defconfig.inc 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 ''} include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
DEPENDS += "gmp-native libmpc-native" DEPENDS += "gmp-native libmpc-native"
@@ -4,6 +4,8 @@ KERNEL_GIT_BRANCH ?= "branch=${BRANCH}"
KERNEL_DEFCONFIG ?= "file://defconfig" KERNEL_DEFCONFIG ?= "file://defconfig"
KERNEL_BASE_CLASS ?= "kernel"
KERNEL_REPRODUCIBILITY_PATCHES ?= "" KERNEL_REPRODUCIBILITY_PATCHES ?= ""
SRC_URI = " \ SRC_URI = " \