Skip to contentSkip to conversation

u-boot-ti: Do not depend on DM firmware for R5 builds

PATCH NAK Andrew Davis 2 participants 6 messages Feb 14, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 u-boot-ti: Do not depend on DM firmware for R5 builds

This is not needed as the R5 builds do not use the firmware and can cause issues as ti-rtos-firmware does not handle MULTICONFIG well.

---
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +5 -5
index ae87ec6a..866c0314 100644
@@ -33,11 +33,11 @@ PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/b
 PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/pdk-ipc/${DM_FIRMWARE},,ti-rtos-firmware"
 
 PACKAGECONFIG:append:aarch64 = " atf optee"
-PACKAGECONFIG:append:j721e = " dm"
-PACKAGECONFIG:append:j7200 = " dm"
-PACKAGECONFIG:append:j721s2 = " dm"
-PACKAGECONFIG:append:j784s4 = " dm"
-PACKAGECONFIG:append:am62xx = " dm"
+PACKAGECONFIG:append:aarch64:j721e = " dm"
+PACKAGECONFIG:append:aarch64:j7200 = " dm"
+PACKAGECONFIG:append:aarch64:j721s2 = " dm"
+PACKAGECONFIG:append:aarch64:j784s4 = " dm"
+PACKAGECONFIG:append:aarch64:am62xx = " dm"
 
 COMPATIBLE_MACHINE = "(ti-soc)"
 
Signature · 1 line
2.39.1
#1 lore raw

PATCH 2/4 conf: machine: Add proper SOC_FAMILY for R5 builds

Having our SOC_FAMILY set to our SoC name can be useful in recipes that need SoC specific configuration. Add SoC names.

Setting the revision and security type is less useful here and not used. Remove that while here.

---
 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf           | 1 +
 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf        | 1 +
 meta-ti-bsp/conf/machine/am64xx-evm-k3r5-gp.conf        | 2 +-
 meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-fs.conf | 2 +-
 meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-se.conf | 2 +-
 meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf       | 1 -
 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf           | 1 +
 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf    | 1 -
 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf        | 1 +
 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf      | 1 +
 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf            | 1 +
 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf         | 1 +
 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf            | 1 +
 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf         | 1 +
 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf           | 1 +
 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf        | 1 +
 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf           | 1 +
 17 files changed, 15 insertions(+), 5 deletions(-)
meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf +1 -0
index 724a8d4a..2fb43256 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am62xx"
 
 SYSFW_SOC = "am62x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf +1 -0
index ca4ced5a..14246300 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI AM62xx LP EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am62xx"
 
 SYSFW_SOC = "am62x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-gp.conf +1 -1
index 50bf6a07..e6a1a9d7 100644
@@ -5,7 +5,7 @@
 # Booting GP requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-gp"
+SOC_FAMILY:append = ":am64xx"
 
 SYSFW_SOC = "am64x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-fs.conf +1 -1
index 42ddbb4c..29d000ef 100644
@@ -5,7 +5,7 @@
 # Booting SR2.0 HS-FS requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-sr2-hs-fs"
+SOC_FAMILY:append = ":am64xx"
 
 SYSFW_SOC = "am64x_sr2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-se.conf +1 -1
index a1c2b3e6..37457f00 100644
@@ -5,7 +5,7 @@
 # Booting SR2.0 HS-SE requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-sr2-hs-se"
+SOC_FAMILY:append = ":am64xx"
 
 SYSFW_SOC = "am64x_sr2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf +0 -1
index e74dd3ab..09625c51 100644
@@ -5,7 +5,6 @@
 # Booting SR2 requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/am65xx-evm-k3r5.conf
-SOC_FAMILY:append = ":k3r5-sr2"
 
 SYSFW_SOC = "am65x_sr2"
 SYSFW_SYMLINK = "sysfw.itb"
meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf +1 -0
index a484e444..f8afad9b 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am65xx"
 
 SYSFW_SOC = "am65x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf +0 -1
index ff1645e4..90ad313b 100644
@@ -5,7 +5,6 @@
 # Booting SR2 requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/am65xx-hs-evm-k3r5.conf
-SOC_FAMILY:append = ":k3r5-sr2"
 
 SYSFW_SOC = "am65x_sr2"
 SYSFW_SYMLINK = "sysfw.itb"
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf +1 -0
index d9041c9d..49983ba9 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am65xx"
 
 SYSFW_SOC = "am65x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf +1 -0
index 21b8702b..d0694122 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
 PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
 PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf +1 -0
index 68061883..4cd6accf 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j7200"
 
 SYSFW_SOC = "j7200"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf +1 -0
index 3fe06e74..c3584193 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j7200"
 
 SYSFW_SOC = "j7200_sr2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf +1 -0
index 9544cdb6..678b79b1 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
 SYSFW_SOC = "j721e"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf +1 -0
index 56312c0c..d7f0cfcc 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
 SYSFW_SOC = "j721e_sr1_1"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf +1 -0
index 508e96e5..7fb6ef28 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721s2"
 
 SYSFW_SOC = "j721s2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf +1 -0
index a4d51904..fa1284c3 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721s2"
 
 SYSFW_SOC = "j721s2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf +1 -0
index 04feebc6..37dad149 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j784s4"
 
 SYSFW_SOC = "j784s4"
 SYSFW_CONFIG = "evm"
Signature · 1 line
2.39.1
#4 lore raw

PATCH 3/4 ti-sci-fw: Use SOC_FAMILY to select boot and sysfw type

In reply to Andrew Davis

Use the new SOC_FAMILY SoC information to select boot type and SYSFW/TIFS split. This removes the need to add to this recipe for each new board, only for new SoCs.

---
 .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb    | 36 +++++--------------
 1 file changed, 9 insertions(+), 27 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +9 -27
index 578f56b8..e9c90a76 100644
@@ -4,14 +4,8 @@ export TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secd
 include recipes-ti/includes/ti-paths.inc
 
 DEPENDS = "openssl-native u-boot-mkimage-native dtc-native virtual/bootloader"
-DEPENDS:remove:am65xx-evm-k3r5 = "virtual/bootloader"
-DEPENDS:remove:am65xx-evm-k3r5-sr2 = "virtual/bootloader"
-DEPENDS:remove:am65xx-hs-evm-k3r5 = "virtual/bootloader"
-DEPENDS:remove:am65xx-hs-evm-k3r5-sr2 = "virtual/bootloader"
-DEPENDS:remove:j721e-evm-k3r5 = "virtual/bootloader"
-DEPENDS:remove:j721e-hs-evm-k3r5 = "virtual/bootloader"
-DEPENDS:remove:j721e-hs-evm-k3r5-sr1-1 = "virtual/bootloader"
-DEPENDS:remove:beaglebone-ai64-k3r5 = "virtual/bootloader"
+DEPENDS:remove:am65xx = "virtual/bootloader"
+DEPENDS:remove:j721e = "virtual/bootloader"
 DEPENDS:append = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
 
 CLEANBROKEN = "1"
@@ -31,17 +25,11 @@ SYSFW_SUFFIX ?= "unknown"
 SYSFW_CONFIG ?= "unknown"
 
 SYSFW_PREFIX = "sci"
-SYSFW_PREFIX:j721e-evm-k3r5 = "fs"
-SYSFW_PREFIX:j721e-hs-evm-k3r5 = "fs"
-SYSFW_PREFIX:j721e-hs-evm-k3r5-sr1-1 = "fs"
-SYSFW_PREFIX:beaglebone-ai64-k3r5 = "fs"
-SYSFW_PREFIX:j7200-evm-k3r5 = "fs"
-SYSFW_PREFIX:j7200-hs-evm-k3r5 = "fs"
-SYSFW_PREFIX:j721s2-evm-k3r5 = "fs"
-SYSFW_PREFIX:j721s2-hs-evm-k3r5 = "fs"
-SYSFW_PREFIX:j784s4-evm-k3r5 = "fs"
-SYSFW_PREFIX:am62xx-evm-k3r5 = "fs"
-SYSFW_PREFIX:am62xx-lp-evm-k3r5 = "fs"
+SYSFW_PREFIX:j721e = "fs"
+SYSFW_PREFIX:j7200 = "fs"
+SYSFW_PREFIX:j721s2 = "fs"
+SYSFW_PREFIX:j784s4 = "fs"
+SYSFW_PREFIX:am62xx = "fs"
 
 SYSFW_TISCI = "${S}/ti-sysfw/ti-${SYSFW_PREFIX}-firmware-${SYSFW_SOC}-*.bin"
 
@@ -65,14 +53,8 @@ EXTRA_OEMAKE = "\
     CONFIG=${SYSFW_CONFIG} SYSFW_DIR="${S}/ti-sysfw" \
     SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin" \
 "
-EXTRA_OEMAKE:remove:am65xx-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
-EXTRA_OEMAKE:remove:am65xx-evm-k3r5-sr2 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
-EXTRA_OEMAKE:remove:am65xx-hs-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
-EXTRA_OEMAKE:remove:am65xx-hs-evm-k3r5-sr2 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
-EXTRA_OEMAKE:remove:j721e-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
-EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
-EXTRA_OEMAKE:remove:j721e-hs-evm-k3r5-sr1-1 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
-EXTRA_OEMAKE:remove:beaglebone-ai64-k3r5 = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
+EXTRA_OEMAKE:remove:am65xx = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
+EXTRA_OEMAKE:remove:j721e = "SBL="${STAGING_DIR_HOST}/boot/u-boot-spl.bin""
 
 do_compile() {
 	cd ${WORKDIR}/imggen/
Signature · 1 line
2.39.1
#5 lore raw

PATCH 4/4 ti-sci-fw: Make split TIFS and DM the default

In reply to Andrew Davis

Going forward, the split TIFS/DM is going to be more common. Only AM65x and AM64x still use the combined SYSFW.

Set SYSFW_PREFIX for split "fs" firmware and override only for the two combined "sci" platforms. This makes it easier to add new platforms as no change will be needed to this recipe.

---
 meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb +3 -6
index e9c90a76..70311cbb 100644
@@ -24,12 +24,9 @@ SYSFW_SOC ?= "unknown"
 SYSFW_SUFFIX ?= "unknown"
 SYSFW_CONFIG ?= "unknown"
 
-SYSFW_PREFIX = "sci"
-SYSFW_PREFIX:j721e = "fs"
-SYSFW_PREFIX:j7200 = "fs"
-SYSFW_PREFIX:j721s2 = "fs"
-SYSFW_PREFIX:j784s4 = "fs"
-SYSFW_PREFIX:am62xx = "fs"
+SYSFW_PREFIX = "fs"
+SYSFW_PREFIX:am65xx = "sci"
+SYSFW_PREFIX:am64xx = "sci"
 
 SYSFW_TISCI = "${S}/ti-sysfw/ti-${SYSFW_PREFIX}-firmware-${SYSFW_SOC}-*.bin"
 
Signature · 1 line
2.39.1
#2 lore raw

Re: [meta-ti][master/kirkstone][PATCH 2/4] conf: machine: Add proper SOC_FAMILY for R5 builds

In reply to Andrew Davis

NAK, you should not mix overrides for different archs.

I also have this cleanup for R5 machine overrides pending, but using unique names rather than the same ones with the main cores. I'll try to submit that one shortly...

Quoted 236 lines · Andrew Davis via lists.yoctoproject.org

Having our SOC_FAMILY set to our SoC name can be useful in recipes that need SoC specific configuration. Add SoC names.

Setting the revision and security type is less useful here and not used. Remove that while here.

---
 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf           | 1 +
 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf        | 1 +
 meta-ti-bsp/conf/machine/am64xx-evm-k3r5-gp.conf        | 2 +-
 meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-fs.conf | 2 +-
 meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-se.conf | 2 +-
 meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf       | 1 -
 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf           | 1 +
 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf    | 1 -
 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf        | 1 +
 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf      | 1 +
 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf            | 1 +
 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf         | 1 +
 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf            | 1 +
 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf         | 1 +
 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf           | 1 +
 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf        | 1 +
 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf           | 1 +
 17 files changed, 15 insertions(+), 5 deletions(-)
meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf +1 -0
index 724a8d4a..2fb43256 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am62xx"
 
 SYSFW_SOC = "am62x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf +1 -0
index ca4ced5a..14246300 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI AM62xx LP EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am62xx"
 
 SYSFW_SOC = "am62x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-gp.conf +1 -1
index 50bf6a07..e6a1a9d7 100644
@@ -5,7 +5,7 @@
 # Booting GP requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-gp"
+SOC_FAMILY:append = ":am64xx"
 
 SYSFW_SOC = "am64x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-fs.conf +1 -1
index 42ddbb4c..29d000ef 100644
@@ -5,7 +5,7 @@
 # Booting SR2.0 HS-FS requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-sr2-hs-fs"
+SOC_FAMILY:append = ":am64xx"
 
 SYSFW_SOC = "am64x_sr2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-se.conf +1 -1
index a1c2b3e6..37457f00 100644
@@ -5,7 +5,7 @@
 # Booting SR2.0 HS-SE requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-sr2-hs-se"
+SOC_FAMILY:append = ":am64xx"
 
 SYSFW_SOC = "am64x_sr2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf +0 -1
index e74dd3ab..09625c51 100644
@@ -5,7 +5,6 @@
 # Booting SR2 requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/am65xx-evm-k3r5.conf
-SOC_FAMILY:append = ":k3r5-sr2"
 
 SYSFW_SOC = "am65x_sr2"
 SYSFW_SYMLINK = "sysfw.itb"
meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf +1 -0
index a484e444..f8afad9b 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am65xx"
 
 SYSFW_SOC = "am65x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf +0 -1
index ff1645e4..90ad313b 100644
@@ -5,7 +5,6 @@
 # Booting SR2 requires different SYSFW, the rest is handled at runtime
 
 require conf/machine/am65xx-hs-evm-k3r5.conf
-SOC_FAMILY:append = ":k3r5-sr2"
 
 SYSFW_SOC = "am65x_sr2"
 SYSFW_SYMLINK = "sysfw.itb"
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf +1 -0
index d9041c9d..49983ba9 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am65xx"
 
 SYSFW_SOC = "am65x"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf +1 -0
index 21b8702b..d0694122 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
 PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
 PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf +1 -0
index 68061883..4cd6accf 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j7200"
 
 SYSFW_SOC = "j7200"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf +1 -0
index 3fe06e74..c3584193 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j7200"
 
 SYSFW_SOC = "j7200_sr2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf +1 -0
index 9544cdb6..678b79b1 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
 SYSFW_SOC = "j721e"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf +1 -0
index 56312c0c..d7f0cfcc 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
 SYSFW_SOC = "j721e_sr1_1"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf +1 -0
index 508e96e5..7fb6ef28 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721s2"
 
 SYSFW_SOC = "j721s2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf +1 -0
index a4d51904..fa1284c3 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721s2"
 
 SYSFW_SOC = "j721s2"
 SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf +1 -0
index 04feebc6..37dad149 100644
@@ -3,6 +3,7 @@
 #@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
 
 require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j784s4"
 
 SYSFW_SOC = "j784s4"
 SYSFW_CONFIG = "evm"
Signature · 1 line
2.39.1
#3 lore raw

Re: [meta-ti][master/kirkstone][PATCH 2/4] conf: machine: Add proper SOC_FAMILY for R5 builds

Quoted 2 lines · Denys Dmytriyenko

NAK, you should not mix overrides for different archs.

Why? This seems to work just fine, and the SOC_FAMILY is am64xx no matter the core the code runs on, seems like an odd rule not to have that.

Quoted 242 lines

I also have this cleanup for R5 machine overrides pending, but using unique names rather than the same ones with the main cores. I'll try to submit that one shortly...

Quoted 236 lines · Andrew Davis via lists.yoctoproject.org

Having our SOC_FAMILY set to our SoC name can be useful in recipes that need SoC specific configuration. Add SoC names.

Setting the revision and security type is less useful here and not used. Remove that while here.

---
  meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf           | 1 +
  meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf        | 1 +
  meta-ti-bsp/conf/machine/am64xx-evm-k3r5-gp.conf        | 2 +-
  meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-fs.conf | 2 +-
  meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-se.conf | 2 +-
  meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf       | 1 -
  meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf           | 1 +
  meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf    | 1 -
  meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf        | 1 +
  meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf      | 1 +
  meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf            | 1 +
  meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf         | 1 +
  meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf            | 1 +
  meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf         | 1 +
  meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf           | 1 +
  meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf        | 1 +
  meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf           | 1 +
  17 files changed, 15 insertions(+), 5 deletions(-)
meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf +1 -0
index 724a8d4a..2fb43256 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am62xx"
 
  SYSFW_SOC = "am62x"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf +1 -0
index ca4ced5a..14246300 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI AM62xx LP EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am62xx"
 
  SYSFW_SOC = "am62x"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-gp.conf +1 -1
index 50bf6a07..e6a1a9d7 100644
@@ -5,7 +5,7 @@
  # Booting GP requires different SYSFW, the rest is handled at runtime
 
  require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-gp"
+SOC_FAMILY:append = ":am64xx"
 
  SYSFW_SOC = "am64x"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-fs.conf +1 -1
index 42ddbb4c..29d000ef 100644
@@ -5,7 +5,7 @@
  # Booting SR2.0 HS-FS requires different SYSFW, the rest is handled at runtime
 
  require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-sr2-hs-fs"
+SOC_FAMILY:append = ":am64xx"
 
  SYSFW_SOC = "am64x_sr2"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am64xx-evm-k3r5-sr2-hs-se.conf +1 -1
index a1c2b3e6..37457f00 100644
@@ -5,7 +5,7 @@
  # Booting SR2.0 HS-SE requires different SYSFW, the rest is handled at runtime
 
  require conf/machine/include/k3r5.inc
-SOC_FAMILY:append = ":k3r5-sr2-hs-se"
+SOC_FAMILY:append = ":am64xx"
 
  SYSFW_SOC = "am64x_sr2"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am65xx-evm-k3r5-sr2.conf +0 -1
index e74dd3ab..09625c51 100644
@@ -5,7 +5,6 @@
  # Booting SR2 requires different SYSFW, the rest is handled at runtime
 
  require conf/machine/am65xx-evm-k3r5.conf
-SOC_FAMILY:append = ":k3r5-sr2"
 
  SYSFW_SOC = "am65x_sr2"
  SYSFW_SYMLINK = "sysfw.itb"
meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf +1 -0
index a484e444..f8afad9b 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am65xx"
 
  SYSFW_SOC = "am65x"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5-sr2.conf +0 -1
index ff1645e4..90ad313b 100644
@@ -5,7 +5,6 @@
  # Booting SR2 requires different SYSFW, the rest is handled at runtime
 
  require conf/machine/am65xx-hs-evm-k3r5.conf
-SOC_FAMILY:append = ":k3r5-sr2"
 
  SYSFW_SOC = "am65x_sr2"
  SYSFW_SYMLINK = "sysfw.itb"
meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf +1 -0
index d9041c9d..49983ba9 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":am65xx"
 
  SYSFW_SOC = "am65x"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf +1 -0
index 21b8702b..d0694122 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
  PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
  PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf +1 -0
index 68061883..4cd6accf 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j7200"
 
  SYSFW_SOC = "j7200"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf +1 -0
index 3fe06e74..c3584193 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j7200"
 
  SYSFW_SOC = "j7200_sr2"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf +1 -0
index 9544cdb6..678b79b1 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
  SYSFW_SOC = "j721e"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf +1 -0
index 56312c0c..d7f0cfcc 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721e"
 
  SYSFW_SOC = "j721e_sr1_1"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf +1 -0
index 508e96e5..7fb6ef28 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721s2"
 
  SYSFW_SOC = "j721s2"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf +1 -0
index a4d51904..fa1284c3 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j721s2"
 
  SYSFW_SOC = "j721s2"
  SYSFW_CONFIG = "evm"
meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf +1 -0
index 04feebc6..37dad149 100644
@@ -3,6 +3,7 @@
  #@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
 
  require conf/machine/include/k3r5.inc
+SOC_FAMILY:append = ":j784s4"
 
  SYSFW_SOC = "j784s4"
  SYSFW_CONFIG = "evm"
Signature · 1 line
2.39.1