diff options
| author | Ryan Eatmon <reatmon@ti.com> | 2025-08-01 07:22:36 -0500 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2025-08-01 11:46:52 -0500 |
| commit | f2b5ea5d01960c8982d8f153c3f5453e40d7f167 (patch) | |
| tree | 6aaa498b0280fff7436785f11ddecf40e9fb836b | |
| parent | 414080e9729f0e76bb66808fb048f5eba8fe6c8a (diff) | |
| download | meta-ti-f2b5ea5d01960c8982d8f153c3f5453e40d7f167.tar.gz | |
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>
5 files changed, 8 insertions, 7 deletions
diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc index 3f11e31d..018e9bfb 100644 --- a/meta-ti-bsp/conf/machine/include/ti-soc.inc +++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc | |||
| @@ -12,9 +12,6 @@ UBOOT_RD_ENTRYPOINT = "0x84000000" | |||
| 12 | # TI platforms all use devicetrees with overlays | 12 | # TI platforms all use devicetrees with overlays |
| 13 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" | 13 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-devicetree" |
| 14 | 14 | ||
| 15 | # All machines should start off pointing at the default base kernel class | ||
| 16 | KERNEL_BASE_CLASS = "kernel" | ||
| 17 | |||
| 18 | # Tell the kernel class to install the DTBs in the same directory structure as | 15 | # Tell the kernel class to install the DTBs in the same directory structure as |
| 19 | # the kernel | 16 | # the kernel |
| 20 | KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" | 17 | KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb index 51723fc0..92fb1e6c 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb | |||
| @@ -3,10 +3,10 @@ SUMMARY = "Mainline Linux kernel for TI devices" | |||
| 3 | LICENSE = "GPL-2.0-only" | 3 | LICENSE = "GPL-2.0-only" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
| 5 | 5 | ||
| 6 | inherit ${KERNEL_BASE_CLASS} | ||
| 7 | |||
| 8 | require recipes-kernel/linux/ti-kernel.inc | 6 | require recipes-kernel/linux/ti-kernel.inc |
| 9 | 7 | ||
| 8 | inherit ${KERNEL_BASE_CLASS} | ||
| 9 | |||
| 10 | DEPENDS += "gmp-native libmpc-native" | 10 | DEPENDS += "gmp-native libmpc-native" |
| 11 | 11 | ||
| 12 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" | 12 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb index 51e4b604..d36485fb 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb | |||
| @@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices" | |||
| 3 | LICENSE = "GPL-2.0-only" | 3 | LICENSE = "GPL-2.0-only" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
| 5 | 5 | ||
| 6 | require recipes-kernel/linux/ti-kernel.inc | ||
| 7 | |||
| 6 | inherit ${KERNEL_BASE_CLASS} | 8 | inherit ${KERNEL_BASE_CLASS} |
| 7 | 9 | ||
| 8 | require recipes-kernel/linux/setup-defconfig.inc | 10 | require recipes-kernel/linux/setup-defconfig.inc |
| 9 | require recipes-kernel/linux/ti-kernel.inc | ||
| 10 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} | 11 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} |
| 11 | 12 | ||
| 12 | DEPENDS += "gmp-native libmpc-native" | 13 | DEPENDS += "gmp-native libmpc-native" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb index 321cdcbb..b6d882d8 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb | |||
| @@ -3,10 +3,11 @@ SUMMARY = "Linux kernel for TI devices" | |||
| 3 | LICENSE = "GPL-2.0-only" | 3 | LICENSE = "GPL-2.0-only" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
| 5 | 5 | ||
| 6 | require recipes-kernel/linux/ti-kernel.inc | ||
| 7 | |||
| 6 | inherit ${KERNEL_BASE_CLASS} | 8 | inherit ${KERNEL_BASE_CLASS} |
| 7 | 9 | ||
| 8 | require recipes-kernel/linux/setup-defconfig.inc | 10 | require recipes-kernel/linux/setup-defconfig.inc |
| 9 | require recipes-kernel/linux/ti-kernel.inc | ||
| 10 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} | 11 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} |
| 11 | 12 | ||
| 12 | DEPENDS += "gmp-native libmpc-native" | 13 | DEPENDS += "gmp-native libmpc-native" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc index ef4ba4a1..32b6c95d 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | |||
| @@ -4,6 +4,8 @@ KERNEL_GIT_BRANCH ?= "branch=${BRANCH}" | |||
| 4 | 4 | ||
| 5 | KERNEL_DEFCONFIG ?= "file://defconfig" | 5 | KERNEL_DEFCONFIG ?= "file://defconfig" |
| 6 | 6 | ||
| 7 | KERNEL_BASE_CLASS ?= "kernel" | ||
| 8 | |||
| 7 | KERNEL_REPRODUCIBILITY_PATCHES ?= "" | 9 | KERNEL_REPRODUCIBILITY_PATCHES ?= "" |
| 8 | 10 | ||
| 9 | SRC_URI = " \ | 11 | SRC_URI = " \ |
