summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Eatmon <reatmon@ti.com>2025-09-22 09:14:07 -0500
committerRyan Eatmon <reatmon@ti.com>2025-09-26 07:33:22 -0500
commit64d49bbb363199c46a338f11b68c47a72da93e38 (patch)
treed2d1f631c1b3ba4489bd7664dddd564f54cb6a55
parent0027b3c13fe9fdad226825536db81647a8493ce1 (diff)
downloadmeta-ti-64d49bbb363199c46a338f11b68c47a72da93e38.tar.gz
ti-extras: Clean up
The TI_EXTRAS infrastructure needs a little tweaking to support turning on multiple extra options at the same time. 1) Since TI_EXTRAS can be a space separated list and not a single fixed value, we need to change how we detect when to include the TI_EXTRA values. 2) The tie-jailhouse overrides were being a little too heavy handed. All of the variables that are changed for any given extra feature needs to use the proper variable override. This was most important for the COMPATIBLE_MACHINE settings. 3) Move the ti-extras out of specific machine configs and into the ti-soc so that all machines can use the extras. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/conf/machine/am62lxx-evm.conf1
-rw-r--r--meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf1
-rw-r--r--meta-ti-bsp/conf/machine/am62pxx-evm.conf1
-rw-r--r--meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf1
-rw-r--r--meta-ti-bsp/conf/machine/am62xx-evm.conf1
-rw-r--r--meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf1
-rw-r--r--meta-ti-bsp/conf/machine/am62xx-lp-evm.conf1
-rw-r--r--meta-ti-bsp/conf/machine/include/ti-extras.inc2
-rw-r--r--meta-ti-bsp/conf/machine/include/ti-soc.inc1
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc16
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc15
-rw-r--r--meta-ti-bsp/recipes-kernel/linux/ti-extras.inc16
12 files changed, 21 insertions, 36 deletions
diff --git a/meta-ti-bsp/conf/machine/am62lxx-evm.conf b/meta-ti-bsp/conf/machine/am62lxx-evm.conf
index 607092a7..a0bccf57 100644
--- a/meta-ti-bsp/conf/machine/am62lxx-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62lxx-evm.conf
@@ -3,7 +3,6 @@
3#@DESCRIPTION: Machine configuration for the TI AM62L EVM 3#@DESCRIPTION: Machine configuration for the TI AM62L EVM
4 4
5require conf/machine/include/am62lxx.inc 5require conf/machine/include/am62lxx.inc
6require conf/machine/include/ti-extras.inc
7 6
8IMAGE_FSTYPES += "ubifs ubi" 7IMAGE_FSTYPES += "ubifs ubi"
9 8
diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
index 28378209..a4b1005b 100644
--- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
+++ b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
@@ -3,7 +3,6 @@
3#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core) 3#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
4 4
5require conf/machine/include/k3r5.inc 5require conf/machine/include/k3r5.inc
6require conf/machine/include/ti-extras.inc
7 6
8SYSFW_SOC = "am62px" 7SYSFW_SOC = "am62px"
9SYSFW_CONFIG = "evm" 8SYSFW_CONFIG = "evm"
diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
index 3f9249e6..08bc2cf4 100644
--- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
@@ -3,7 +3,6 @@
3#@DESCRIPTION: Machine configuration for the TI AM62PX EVM 3#@DESCRIPTION: Machine configuration for the TI AM62PX EVM
4 4
5require conf/machine/include/am62pxx.inc 5require conf/machine/include/am62pxx.inc
6require conf/machine/include/ti-extras.inc
7 6
8KERNEL_DEVICETREE_PREFIX = " \ 7KERNEL_DEVICETREE_PREFIX = " \
9 ti/k3-am62p5 \ 8 ti/k3-am62p5 \
diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
index 5c5b133f..cd95a45e 100644
--- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
+++ b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
@@ -3,7 +3,6 @@
3#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core) 3#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
4 4
5require conf/machine/include/k3r5.inc 5require conf/machine/include/k3r5.inc
6require conf/machine/include/ti-extras.inc
7 6
8SYSFW_SOC = "am62x" 7SYSFW_SOC = "am62x"
9SYSFW_CONFIG = "evm" 8SYSFW_CONFIG = "evm"
diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf b/meta-ti-bsp/conf/machine/am62xx-evm.conf
index 298fc170..dd91ae66 100644
--- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
@@ -3,7 +3,6 @@
3#@DESCRIPTION: Machine configuration for the TI AM62XX EVM 3#@DESCRIPTION: Machine configuration for the TI AM62XX EVM
4 4
5require conf/machine/include/am62xx.inc 5require conf/machine/include/am62xx.inc
6require conf/machine/include/ti-extras.inc
7 6
8KERNEL_DEVICETREE_PREFIX = " \ 7KERNEL_DEVICETREE_PREFIX = " \
9 ti/k3-am625 \ 8 ti/k3-am625 \
diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
index 7203ebf7..29638d1d 100644
--- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
+++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
@@ -3,7 +3,6 @@
3#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core) 3#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
4 4
5require conf/machine/include/k3r5.inc 5require conf/machine/include/k3r5.inc
6require conf/machine/include/ti-extras.inc
7 6
8SYSFW_SOC = "am62x" 7SYSFW_SOC = "am62x"
9SYSFW_CONFIG = "evm" 8SYSFW_CONFIG = "evm"
diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
index 32e88051..bbc9dfd6 100644
--- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
@@ -3,7 +3,6 @@
3#@DESCRIPTION: Machine configuration for the TI AM62XX LP EVM 3#@DESCRIPTION: Machine configuration for the TI AM62XX LP EVM
4 4
5require conf/machine/include/am62xx.inc 5require conf/machine/include/am62xx.inc
6require conf/machine/include/ti-extras.inc
7 6
8KERNEL_DEVICETREE_PREFIX = " \ 7KERNEL_DEVICETREE_PREFIX = " \
9 ti/k3-am62-lp \ 8 ti/k3-am62-lp \
diff --git a/meta-ti-bsp/conf/machine/include/ti-extras.inc b/meta-ti-bsp/conf/machine/include/ti-extras.inc
index 4e62605c..1ef2fd3b 100644
--- a/meta-ti-bsp/conf/machine/include/ti-extras.inc
+++ b/meta-ti-bsp/conf/machine/include/ti-extras.inc
@@ -1,4 +1,4 @@
1# Add TI_EXTRAS to machine overrides so we get access to e.g. 'jailhouse' 1# Add TI_EXTRAS to machine overrides so we get access to e.g. 'jailhouse'
2 2
3TI_EXTRAS ??= "" 3TI_EXTRAS ??= ""
4MACHINEOVERRIDES =. "${@ '${TI_EXTRAS}:' if d.getVar('TI_EXTRAS').startswith('tie-') else ''}" 4MACHINEOVERRIDES =. "${@ ':'.join('${TI_EXTRAS}'.strip().split()) + ':' if d.getVar('TI_EXTRAS') else ''}"
diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc
index 018e9bfb..438dd6ab 100644
--- a/meta-ti-bsp/conf/machine/include/ti-soc.inc
+++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc
@@ -2,6 +2,7 @@
2# and platforms defined in meta-ti to allow BSP-level overrides. 2# and platforms defined in meta-ti to allow BSP-level overrides.
3SOC_FAMILY = "ti-soc" 3SOC_FAMILY = "ti-soc"
4require conf/machine/include/soc-family.inc 4require conf/machine/include/soc-family.inc
5require conf/machine/include/ti-extras.inc
5 6
6# kernel, initrd load addresses for the fitImage in all TI platforms 7# kernel, initrd load addresses for the fitImage in all TI platforms
7UBOOT_ENTRYPOINT = "0x82000000" 8UBOOT_ENTRYPOINT = "0x82000000"
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc b/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc
index e334ada0..b1802e27 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc
+++ b/meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc
@@ -1,12 +1,10 @@
1#
2# Jailhouse settings
3#
4COMPATIBLE_MACHINE:tie-jailhouse = "am62xx|am62pxx|am62lxx"
1 5
2# This will have priority over generic uboot path 6BRANCH:tie-jailhouse:bsp-ti-6_12 = "ti-u-boot-2025.01-jailhouse"
3 7
4COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" 8SRCREV:tie-jailhouse:bsp-ti-6_12 = "e718bbcec3ebf663c021839753034a224be4cc53"
5 9
6BRANCH = "ti-u-boot-2025.01" 10UBOOT_GIT_URI:tie-jailhouse = "git://git.ti.com/git/processor-sdk/u-boot.git"
7BRANCH:tie-jailhouse = "ti-u-boot-2025.01-jailhouse"
8
9SRCREV = "e718bbcec3ebf663c021839753034a224be4cc53"
10SRCREV:tie-jailhouse = "e718bbcec3ebf663c021839753034a224be4cc53"
11
12UBOOT_GIT_URI = "git://git.ti.com/git/processor-sdk/u-boot.git"
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
index dba9ef38..859b4801 100644
--- a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
+++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc
@@ -1,11 +1,6 @@
1#
2# Jailhouse settings
3#
4BRANCH:tie-jailhouse:bsp-ti-6_12 = "ti-linux-6.12.y-jailhouse"
1 5
2# Use different commit, repo and branch for TI extras build 6SRCREV:tie-jailhouse:bsp-ti-6_12 = "229a48602ad1557612a4ffabec6a3cbcdd745f87"
3# This will have priority over generic rt path
4
5COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx"
6
7BRANCH = "ti-linux-6.12.y"
8BRANCH:tie-jailhouse = "ti-linux-6.12.y-jailhouse"
9
10SRCREV = "c9e21a1ebd757f2b4487035382bbf65299cf8170"
11SRCREV:tie-jailhouse = "229a48602ad1557612a4ffabec6a3cbcdd745f87"
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc
index 4b7a9f20..1b7239f9 100644
--- a/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc
+++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc
@@ -1,14 +1,12 @@
1
2# Use different commit, repo and branch for TI extras build
3# This will have priority over generic rt path 1# This will have priority over generic rt path
4 2
5COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" 3#
6 4# Jailhouse settings
7BRANCH = "ti-linux-6.12.y" 5#
8BRANCH:tie-jailhouse = "ti-linux-6.12.y-jailhouse" 6COMPATIBLE_MACHINE:tie-jailhouse = "am62xx|am62pxx|am62lxx"
9 7
10SRCREV = "c9e21a1ebd757f2b4487035382bbf65299cf8170" 8BRANCH:tie-jailhouse:bsp-ti-6_12 = "ti-linux-6.12.y-jailhouse"
11SRCREV:tie-jailhouse = "229a48602ad1557612a4ffabec6a3cbcdd745f87"
12 9
13KERNEL_GIT_URI = "git://git.ti.com/git/processor-sdk/linux.git" 10SRCREV:tie-jailhouse:bsp-ti-6_12 = "229a48602ad1557612a4ffabec6a3cbcdd745f87"
14 11
12KERNEL_GIT_URI:tie-jailhouse = "git://git.ti.com/git/processor-sdk/linux.git"