diff options
author | Ryan Eatmon <reatmon@ti.com> | 2025-09-22 09:14:07 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-09-26 07:33:22 -0500 |
commit | 64d49bbb363199c46a338f11b68c47a72da93e38 (patch) | |
tree | d2d1f631c1b3ba4489bd7664dddd564f54cb6a55 | |
parent | 0027b3c13fe9fdad226825536db81647a8493ce1 (diff) | |
download | meta-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.conf | 1 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf | 1 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/am62pxx-evm.conf | 1 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 1 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/am62xx-evm.conf | 1 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf | 1 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/am62xx-lp-evm.conf | 1 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/include/ti-extras.inc | 2 | ||||
-rw-r--r-- | meta-ti-bsp/conf/machine/include/ti-soc.inc | 1 | ||||
-rw-r--r-- | meta-ti-bsp/recipes-bsp/u-boot/ti-extras.inc | 16 | ||||
-rw-r--r-- | meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc | 15 | ||||
-rw-r--r-- | meta-ti-bsp/recipes-kernel/linux/ti-extras.inc | 16 |
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 | ||
5 | require conf/machine/include/am62lxx.inc | 5 | require conf/machine/include/am62lxx.inc |
6 | require conf/machine/include/ti-extras.inc | ||
7 | 6 | ||
8 | IMAGE_FSTYPES += "ubifs ubi" | 7 | IMAGE_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 | ||
5 | require conf/machine/include/k3r5.inc | 5 | require conf/machine/include/k3r5.inc |
6 | require conf/machine/include/ti-extras.inc | ||
7 | 6 | ||
8 | SYSFW_SOC = "am62px" | 7 | SYSFW_SOC = "am62px" |
9 | SYSFW_CONFIG = "evm" | 8 | SYSFW_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 | ||
5 | require conf/machine/include/am62pxx.inc | 5 | require conf/machine/include/am62pxx.inc |
6 | require conf/machine/include/ti-extras.inc | ||
7 | 6 | ||
8 | KERNEL_DEVICETREE_PREFIX = " \ | 7 | KERNEL_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 | ||
5 | require conf/machine/include/k3r5.inc | 5 | require conf/machine/include/k3r5.inc |
6 | require conf/machine/include/ti-extras.inc | ||
7 | 6 | ||
8 | SYSFW_SOC = "am62x" | 7 | SYSFW_SOC = "am62x" |
9 | SYSFW_CONFIG = "evm" | 8 | SYSFW_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 | ||
5 | require conf/machine/include/am62xx.inc | 5 | require conf/machine/include/am62xx.inc |
6 | require conf/machine/include/ti-extras.inc | ||
7 | 6 | ||
8 | KERNEL_DEVICETREE_PREFIX = " \ | 7 | KERNEL_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 | ||
5 | require conf/machine/include/k3r5.inc | 5 | require conf/machine/include/k3r5.inc |
6 | require conf/machine/include/ti-extras.inc | ||
7 | 6 | ||
8 | SYSFW_SOC = "am62x" | 7 | SYSFW_SOC = "am62x" |
9 | SYSFW_CONFIG = "evm" | 8 | SYSFW_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 | ||
5 | require conf/machine/include/am62xx.inc | 5 | require conf/machine/include/am62xx.inc |
6 | require conf/machine/include/ti-extras.inc | ||
7 | 6 | ||
8 | KERNEL_DEVICETREE_PREFIX = " \ | 7 | KERNEL_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 | ||
3 | TI_EXTRAS ??= "" | 3 | TI_EXTRAS ??= "" |
4 | MACHINEOVERRIDES =. "${@ '${TI_EXTRAS}:' if d.getVar('TI_EXTRAS').startswith('tie-') else ''}" | 4 | MACHINEOVERRIDES =. "${@ ':'.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. |
3 | SOC_FAMILY = "ti-soc" | 3 | SOC_FAMILY = "ti-soc" |
4 | require conf/machine/include/soc-family.inc | 4 | require conf/machine/include/soc-family.inc |
5 | require 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 |
7 | UBOOT_ENTRYPOINT = "0x82000000" | 8 | UBOOT_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 | # | ||
4 | COMPATIBLE_MACHINE:tie-jailhouse = "am62xx|am62pxx|am62lxx" | ||
1 | 5 | ||
2 | # This will have priority over generic uboot path | 6 | BRANCH:tie-jailhouse:bsp-ti-6_12 = "ti-u-boot-2025.01-jailhouse" |
3 | 7 | ||
4 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" | 8 | SRCREV:tie-jailhouse:bsp-ti-6_12 = "e718bbcec3ebf663c021839753034a224be4cc53" |
5 | 9 | ||
6 | BRANCH = "ti-u-boot-2025.01" | 10 | UBOOT_GIT_URI:tie-jailhouse = "git://git.ti.com/git/processor-sdk/u-boot.git" |
7 | BRANCH:tie-jailhouse = "ti-u-boot-2025.01-jailhouse" | ||
8 | |||
9 | SRCREV = "e718bbcec3ebf663c021839753034a224be4cc53" | ||
10 | SRCREV:tie-jailhouse = "e718bbcec3ebf663c021839753034a224be4cc53" | ||
11 | |||
12 | UBOOT_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 | # | ||
4 | BRANCH: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 | 6 | SRCREV:tie-jailhouse:bsp-ti-6_12 = "229a48602ad1557612a4ffabec6a3cbcdd745f87" |
3 | # This will have priority over generic rt path | ||
4 | |||
5 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" | ||
6 | |||
7 | BRANCH = "ti-linux-6.12.y" | ||
8 | BRANCH:tie-jailhouse = "ti-linux-6.12.y-jailhouse" | ||
9 | |||
10 | SRCREV = "c9e21a1ebd757f2b4487035382bbf65299cf8170" | ||
11 | SRCREV: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 | ||
5 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" | 3 | # |
6 | 4 | # Jailhouse settings | |
7 | BRANCH = "ti-linux-6.12.y" | 5 | # |
8 | BRANCH:tie-jailhouse = "ti-linux-6.12.y-jailhouse" | 6 | COMPATIBLE_MACHINE:tie-jailhouse = "am62xx|am62pxx|am62lxx" |
9 | 7 | ||
10 | SRCREV = "c9e21a1ebd757f2b4487035382bbf65299cf8170" | 8 | BRANCH:tie-jailhouse:bsp-ti-6_12 = "ti-linux-6.12.y-jailhouse" |
11 | SRCREV:tie-jailhouse = "229a48602ad1557612a4ffabec6a3cbcdd745f87" | ||
12 | 9 | ||
13 | KERNEL_GIT_URI = "git://git.ti.com/git/processor-sdk/linux.git" | 10 | SRCREV:tie-jailhouse:bsp-ti-6_12 = "229a48602ad1557612a4ffabec6a3cbcdd745f87" |
14 | 11 | ||
12 | KERNEL_GIT_URI:tie-jailhouse = "git://git.ti.com/git/processor-sdk/linux.git" | ||