diff mbox series

[meta-ti,master/kirkstone,RFC] meta-ti-bsp: Build R5 bootloader without multiconfig

Message ID 20231220160737.40535-1-afd@ti.com
State RFC
Delegated to: Ryan Eatmon
Headers show
Series [meta-ti,master/kirkstone,RFC] meta-ti-bsp: Build R5 bootloader without multiconfig | expand

Commit Message

Andrew Davis Dec. 20, 2023, 4:07 p.m. UTC
The R5 SPL bootloader is the only software we build using the R5 (arm32)
multiconfig environment. Using multiconfig pulls in a large number of
build dependencies (see the -native environment in baremetal tmp dir)
this increases build time and space.

Using multiconfig for a deploy target also leads to several oddities in
the bitbake build system forcing use of a non-standard deploy directory
and careful checks that no recipe built in both configuration deploy
the same files.

While I believe we will get more use out of multiconfig for future
devices, today let's simplify the K3 build infrastructure here by
building R5 SPL like a normal firmware using a foreign targeting cross
compiler. This is the technique meta-arm uses to build firmware (see
scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware
recipe here.

With that we can also drop all the related k3r5 multiconfig files and
definitions. Do that here.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 meta-ti-bsp/classes/ti-secdev.bbclass         |  3 -
 .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
 meta-ti-bsp/conf/machine/am62axx-evm.conf     |  5 ++
 .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
 meta-ti-bsp/conf/machine/am62pxx-evm.conf     |  5 ++
 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
 meta-ti-bsp/conf/machine/am62xx-evm.conf      |  5 ++
 .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
 meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   |  5 ++
 .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
 meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
 meta-ti-bsp/conf/machine/am64xx-evm.conf      |  5 ++
 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
 meta-ti-bsp/conf/machine/am65xx-evm.conf      |  5 ++
 .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
 meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   |  5 ++
 .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
 meta-ti-bsp/conf/machine/beaglebone-ai64.conf |  5 ++
 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
 meta-ti-bsp/conf/machine/beagleplay.conf      |  5 ++
 meta-ti-bsp/conf/machine/include/k3.inc       |  4 +-
 meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
 meta-ti-bsp/conf/machine/j7200-evm.conf       |  5 ++
 .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
 meta-ti-bsp/conf/machine/j7200-hs-evm.conf    |  5 ++
 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
 meta-ti-bsp/conf/machine/j721e-evm.conf       |  5 ++
 .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
 meta-ti-bsp/conf/machine/j721e-hs-evm.conf    |  3 +-
 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
 meta-ti-bsp/conf/machine/j721s2-evm.conf      |  5 ++
 .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
 meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   |  2 +
 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
 meta-ti-bsp/conf/machine/j784s4-evm.conf      |  5 ++
 .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
 meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   |  2 +
 meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
 .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb    |  3 -
 .../u-boot/tiboot3-staging_2023.5.bb          | 65 +++++++++++++++++++
 .../recipes-bsp/u-boot/u-boot-bb.org_git.bb   |  2 -
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 ------------
 44 files changed, 152 insertions(+), 303 deletions(-)
 delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
 delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
 delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
 create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb

Comments

Andrew Davis Dec. 20, 2023, 4:12 p.m. UTC | #1
On 12/20/23 10:07 AM, Andrew Davis wrote:
> The R5 SPL bootloader is the only software we build using the R5 (arm32)
> multiconfig environment. Using multiconfig pulls in a large number of
> build dependencies (see the -native environment in baremetal tmp dir)
> this increases build time and space.
> 
> Using multiconfig for a deploy target also leads to several oddities in
> the bitbake build system forcing use of a non-standard deploy directory
> and careful checks that no recipe built in both configuration deploy
> the same files.
> 
> While I believe we will get more use out of multiconfig for future
> devices, today let's simplify the K3 build infrastructure here by
> building R5 SPL like a normal firmware using a foreign targeting cross
> compiler. This is the technique meta-arm uses to build firmware (see
> scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware
> recipe here.
> 
> With that we can also drop all the related k3r5 multiconfig files and
> definitions. Do that here.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>   meta-ti-bsp/classes/ti-secdev.bbclass         |  3 -
>   .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
>   meta-ti-bsp/conf/machine/am62axx-evm.conf     |  5 ++
>   .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
>   meta-ti-bsp/conf/machine/am62pxx-evm.conf     |  5 ++
>   meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
>   meta-ti-bsp/conf/machine/am62xx-evm.conf      |  5 ++
>   .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
>   meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   |  5 ++
>   .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
>   meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
>   meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
>   meta-ti-bsp/conf/machine/am64xx-evm.conf      |  5 ++
>   meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
>   meta-ti-bsp/conf/machine/am65xx-evm.conf      |  5 ++
>   .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
>   meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   |  5 ++
>   .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
>   meta-ti-bsp/conf/machine/beaglebone-ai64.conf |  5 ++
>   meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
>   meta-ti-bsp/conf/machine/beagleplay.conf      |  5 ++
>   meta-ti-bsp/conf/machine/include/k3.inc       |  4 +-
>   meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
>   meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
>   meta-ti-bsp/conf/machine/j7200-evm.conf       |  5 ++
>   .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
>   meta-ti-bsp/conf/machine/j7200-hs-evm.conf    |  5 ++
>   meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
>   meta-ti-bsp/conf/machine/j721e-evm.conf       |  5 ++
>   .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
>   meta-ti-bsp/conf/machine/j721e-hs-evm.conf    |  3 +-
>   meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
>   meta-ti-bsp/conf/machine/j721s2-evm.conf      |  5 ++
>   .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
>   meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   |  2 +
>   meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
>   meta-ti-bsp/conf/machine/j784s4-evm.conf      |  5 ++
>   .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
>   meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   |  2 +
>   meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
>   .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb    |  3 -
>   .../u-boot/tiboot3-staging_2023.5.bb          | 65 +++++++++++++++++++
>   .../recipes-bsp/u-boot/u-boot-bb.org_git.bb   |  2 -
>   meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 ------------
>   44 files changed, 152 insertions(+), 303 deletions(-)
>   delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
>   delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
>   create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb

Hopefully the diffstat above speak for itself in how much
this cleans up :) This also should let us now recombine the
deploy directories and several other cleanups in tisdk-bundle
that have continue to cause user confusion.

This is still and RFC as it needs more testing and a few more
cleanups yet but wanted to get the idea out in the open for
alignment before the final rounds of polishing.

Andrew
Ryan Eatmon Dec. 20, 2023, 4:14 p.m. UTC | #2
On 12/20/2023 10:07 AM, Andrew Davis wrote:
> The R5 SPL bootloader is the only software we build using the R5 (arm32)
> multiconfig environment. Using multiconfig pulls in a large number of
> build dependencies (see the -native environment in baremetal tmp dir)
> this increases build time and space.
> 
> Using multiconfig for a deploy target also leads to several oddities in
> the bitbake build system forcing use of a non-standard deploy directory
> and careful checks that no recipe built in both configuration deploy
> the same files.
> 
> While I believe we will get more use out of multiconfig for future
> devices, today let's simplify the K3 build infrastructure here by
> building R5 SPL like a normal firmware using a foreign targeting cross
> compiler. This is the technique meta-arm uses to build firmware (see
> scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware
> recipe here.
> 
> With that we can also drop all the related k3r5 multiconfig files and
> definitions. Do that here.

On first glance, this looks good.  Let me do some test builds.


> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>   meta-ti-bsp/classes/ti-secdev.bbclass         |  3 -
>   .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
>   meta-ti-bsp/conf/machine/am62axx-evm.conf     |  5 ++
>   .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
>   meta-ti-bsp/conf/machine/am62pxx-evm.conf     |  5 ++
>   meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
>   meta-ti-bsp/conf/machine/am62xx-evm.conf      |  5 ++
>   .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
>   meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   |  5 ++
>   .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
>   meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
>   meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
>   meta-ti-bsp/conf/machine/am64xx-evm.conf      |  5 ++
>   meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
>   meta-ti-bsp/conf/machine/am65xx-evm.conf      |  5 ++
>   .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
>   meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   |  5 ++
>   .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
>   meta-ti-bsp/conf/machine/beaglebone-ai64.conf |  5 ++
>   meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
>   meta-ti-bsp/conf/machine/beagleplay.conf      |  5 ++
>   meta-ti-bsp/conf/machine/include/k3.inc       |  4 +-
>   meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
>   meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
>   meta-ti-bsp/conf/machine/j7200-evm.conf       |  5 ++
>   .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
>   meta-ti-bsp/conf/machine/j7200-hs-evm.conf    |  5 ++
>   meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
>   meta-ti-bsp/conf/machine/j721e-evm.conf       |  5 ++
>   .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
>   meta-ti-bsp/conf/machine/j721e-hs-evm.conf    |  3 +-
>   meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
>   meta-ti-bsp/conf/machine/j721s2-evm.conf      |  5 ++
>   .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
>   meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   |  2 +
>   meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
>   meta-ti-bsp/conf/machine/j784s4-evm.conf      |  5 ++
>   .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
>   meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   |  2 +
>   meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
>   .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb    |  3 -
>   .../u-boot/tiboot3-staging_2023.5.bb          | 65 +++++++++++++++++++
>   .../recipes-bsp/u-boot/u-boot-bb.org_git.bb   |  2 -
>   meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 ------------
>   44 files changed, 152 insertions(+), 303 deletions(-)
>   delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
>   delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>   delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
>   create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> 
> diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
> index b3d70e5c..18d15269 100644
> --- a/meta-ti-bsp/classes/ti-secdev.bbclass
> +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
> @@ -2,14 +2,11 @@
>   
>   # K3 SECDEV scripts use OpenSSL
>   DEPENDS:append:k3 = " openssl-native"
> -DEPENDS:append:k3r5 = " openssl-native"
>   
>   # Use package version of TI SECDEV for K3 if one is not provided through the environment
>   DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
> -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>   TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
>   TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
> -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>   
>   # For non-K3 we require the SECDEV tools be provided through the environment with the following vars
>   TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
> diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> deleted file mode 100644
> index 2af3317e..00000000
> --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62A HS-FS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62ax"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> index 22f61401..59884629 100644
> --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>       ti/k3-am62a7-sk.dtb \
>   "
>   
> +SYSFW_SOC = "am62ax"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
>   UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> deleted file mode 100644
> index 36915381..00000000
> --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62PX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62px"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> index d7c9f589..116d819b 100644
> --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>       ti/k3-am62p5-sk.dtb \
>   "
>   
> +SYSFW_SOC = "am62px"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
>   UBOOT_MACHINE = "am62px_evm_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> deleted file mode 100644
> index 548369ca..00000000
> --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> index fadbc6f4..6f234811 100644
> --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>       ti/k3-am625-sk.dtb \
>   "
>   
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> deleted file mode 100644
> index aa9422cd..00000000
> --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX LP GP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> index 229b74bc..e33b60e2 100644
> --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> @@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \
>       ti/k3-am62-lp-sk.dtb \
>   "
>   
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
>   UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> deleted file mode 100644
> index 0daff2b9..00000000
> --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX SIP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> -
> -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
> -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
> diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> index b5dd18f1..2e077f75 100644
> --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> @@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \
>       ti/k3-am625-sk.dtb \
>   "
>   
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> +
> +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
> +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
> diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> deleted file mode 100644
> index e932928a..00000000
> --- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM64xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am64x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> index c6ba2a87..dc21c174 100644
> --- a/meta-ti-bsp/conf/machine/am64xx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> @@ -4,4 +4,9 @@
>   
>   require conf/machine/include/am64xx.inc
>   
> +SYSFW_SOC = "am64x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
>   UBOOT_MACHINE = "am64x_evm_a53_defconfig"
> +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> deleted file mode 100644
> index 8744ac3e..00000000
> --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> index f6eb6f0c..9b050b03 100644
> --- a/meta-ti-bsp/conf/machine/am65xx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> @@ -4,6 +4,11 @@
>   
>   require conf/machine/include/am65xx.inc
>   
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>   
>   MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
> diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> deleted file mode 100644
> index 337c8413..00000000
> --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> index f8221f31..4164ae53 100644
> --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> @@ -4,4 +4,9 @@
>   
>   require conf/machine/include/am65xx.inc
>   
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> deleted file mode 100644
> index b893f380..00000000
> --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> +++ /dev/null
> @@ -1,17 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeagleBone AI-64 (R5F)
> -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
> -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> index e529f565..bad86a22 100644
> --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> +++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> @@ -4,6 +4,11 @@
>   
>   require conf/machine/include/j721e.inc
>   
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>   UBOOT_MACHINE = "j721e_evm_a72_config"
>   
>   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
> diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> deleted file mode 100644
> index c40615c9..00000000
> --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeaglePlay (R5F)
> -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
> -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf b/meta-ti-bsp/conf/machine/beagleplay.conf
> index ac4a202a..312fc503 100644
> --- a/meta-ti-bsp/conf/machine/beagleplay.conf
> +++ b/meta-ti-bsp/conf/machine/beagleplay.conf
> @@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1"
>   
>   OPTEEMACHINE = "k3-am62x"
>   
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>   
>   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
> diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
> index 2415f0ba..84feee08 100644
> --- a/meta-ti-bsp/conf/machine/include/k3.inc
> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>   
>   require conf/machine/include/arm/arch-arm64.inc
>   
> -BBMULTICONFIG += "k3r5"
> -
>   # Increase this everytime you change something in the kernel
>   MACHINE_KERNEL_PR = "r0"
>   
> @@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi"
>   WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}"
>   
>   do_image_wic[depends] += "virtual/bootloader:do_deploy"
> -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
> +do_image[depends] += "tiboot3-staging:do_deploy"
>   
>   SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
>   SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
> diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
> deleted file mode 100644
> index 63267a5e..00000000
> --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
> +++ /dev/null
> @@ -1,27 +0,0 @@
> -# TI K3 Armv7 profile for Cortex-R5F cores
> -
> -require conf/machine/include/ti-soc.inc
> -SOC_FAMILY:append = ":k3r5"
> -
> -# The closest of existing tunes for Cortex-R5F
> -DEFAULTTUNE = "armv7athf"
> -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
> -
> -# R5 runs early bootloader and loads SYSFW
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst
> -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
> -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
> -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
> -
> -SPL_SUFFIX = "bin"
> -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> -UBOOT_SUFFIX = "bin"
> -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -PACKAGECONFIG:pn-u-boot-ti-staging = ""
> -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
> diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> deleted file mode 100644
> index 68061883..00000000
> --- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf
> index dff1da69..e733d15a 100644
> --- a/meta-ti-bsp/conf/machine/j7200-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
> @@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \
>       ti/k3-j7200-common-proc-board.dtb \
>   "
>   
> +SYSFW_SOC = "j7200"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>   UBOOT_MACHINE = "j7200_evm_a72_config"
> diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> deleted file mode 100644
> index 1922d5c8..00000000
> --- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> index 54fd2b4a..fc33106c 100644
> --- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> @@ -4,4 +4,9 @@
>   
>   require conf/machine/j7200-evm.conf
>   
> +SYSFW_SOC = "j7200_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>   UBOOT_MACHINE = "j7200_evm_a72_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> deleted file mode 100644
> index 070bf7aa..00000000
> --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf b/meta-ti-bsp/conf/machine/j721e-evm.conf
> index 5e1f6dca..ca23e3e3 100644
> --- a/meta-ti-bsp/conf/machine/j721e-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
> @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>       ti/k3-j721e-sk.dtb \
>   "
>   
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>   UBOOT_MACHINE = "j721e_evm_a72_config"
> diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> deleted file mode 100644
> index 7904c660..00000000
> --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e_sr1_1"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> index 441ca169..3d4bedb6 100644
> --- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> @@ -4,4 +4,5 @@
>   
>   require conf/machine/j721e-evm.conf
>   
> -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
> +SYSFW_SOC = "j721e_sr1_1"
> +SYSFW_SUFFIX = "hs"
> diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> deleted file mode 100644
> index 508e96e5..00000000
> --- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> index ecb1836f..63d86af0 100644
> --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>       ti/k3-j721s2-common-proc-board.dtb \
>   "
>   
> +SYSFW_SOC = "j721s2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
>   UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> deleted file mode 100644
> index 58cd92c4..00000000
> --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> index 4cf32a28..1129a189 100644
> --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> @@ -3,3 +3,5 @@
>   #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>   
>   require conf/machine/j721s2-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> deleted file mode 100644
> index 04feebc6..00000000
> --- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> index 40a63651..a242ef8a 100644
> --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>       ti/k3-j784s4-evm.dtb \
>   "
>   
> +SYSFW_SOC = "j784s4"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
>   UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> deleted file mode 100644
> index 80a228a0..00000000
> --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> index 8fa1c1fd..42468088 100644
> --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> @@ -3,3 +3,5 @@
>   #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>   
>   require conf/machine/j784s4-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf b/meta-ti-bsp/conf/multiconfig/k3r5.conf
> deleted file mode 100644
> index 936bce2f..00000000
> --- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -MAINMACHINE := "${MACHINE}"
> -
> -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
> -
> -MACHINE:append = "-k3r5"
> -TCLIBC = "baremetal"
> -TI_TMPDIR_APPEND ?= "-k3r5"
> -TMPDIR:append = "${TI_TMPDIR_APPEND}"
> -
> -SDKPKGSUFFIX = "k3r5-nativesdk"
> diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> index 12292c88..0597d9bb 100644
> --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> @@ -17,9 +17,6 @@ do_install() {
>   }
>   
>   do_deploy(){
> -}
> -
> -do_deploy:k3r5() {
>   	install -d ${DEPLOYDIR}/ti-sysfw
>   	install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
>   	install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> new file mode 100644
> index 00000000..0f1929b5
> --- /dev/null
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> @@ -0,0 +1,65 @@
> +require u-boot-ti.inc
> +
> +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
> +
> +PR = "r0"
> +BRANCH = "ti-u-boot-2023.04"
> +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
> +
> +PROVIDES:remove = "virtual/bootloader"
> +PROVIDES:remove = "u-boot"
> +
> +# Using gcc-cross-arm-native here would have been ideal
> +# as the compiler version would match between R5 and
> +# main ARM core builds. arm-oe-linux-gnueabi-
> +DEPENDS += "gcc-arm-none-eabi-native"
> +
> +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
> +
> +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
> +
> +SPL_SUFFIX = "bin"
> +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> +UBOOT_SUFFIX = "bin"
> +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> +
> +do_compile:append () {
> +	if [ -n "${UBOOT_CONFIG}" ];
> +	then
> +		for config in ${UBOOT_MACHINE}; do
> +			i=$(expr $i + 1);
> +			for type in ${UBOOT_CONFIG}; do
> +				j=$(expr $j + 1);
> +				if [ $j -eq $i ];
> +				then
> +					if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> +						ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> +					fi
> +				fi
> +			done
> +			unset  j
> +		done
> +		unset  i
> +	else
> +		if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> +			ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> +		fi
> +	fi
> +}
> +
> +do_deploy:append () {
> +	for f in ${B}/tiboot3-*.bin; do
> +		if [ -f "$f" ]; then
> +			install -m 644 $f ${DEPLOYDIR}/
> +		fi
> +	done
> +
> +	for f in ${B}/sysfw*.itb; do
> +		if [ -f "$f" ]; then
> +			install -m 644 $f ${DEPLOYDIR}/
> +		fi
> +	done
> +}
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> index 5bb20213..1ec5f9bf 100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
>   SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>   
>   BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
> -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
>   SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
> -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> index 2f15c4fb..b0f88a5a 100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n
>   
>   # SYSFW/TIFS Firmware
>   DEPENDS:append:k3 = " ti-sci-fw"
> -DEPENDS:append:k3r5 = " ti-sci-fw"
>   
>   DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>   
> @@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot"
>   
>   # SPL (Second Program Loader) to be loaded over UART
>   SPL_UART_BINARY = "u-boot-spl.bin"
> -SPL_UART_BINARY:k3r5 = ""
>   
>   SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
>   SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
> @@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
>   UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
>   UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>   
> -do_compile:append:k3r5 () {
> -	if [ -n "${UBOOT_CONFIG}" ];
> -	then
> -		for config in ${UBOOT_MACHINE}; do
> -			i=$(expr $i + 1);
> -			for type in ${UBOOT_CONFIG}; do
> -				j=$(expr $j + 1);
> -				if [ $j -eq $i ];
> -				then
> -					if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> -						ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> -					fi
> -				fi
> -			done
> -			unset  j
> -		done
> -		unset  i
> -	else
> -		if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> -			ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> -		fi
> -	fi
> -}
> -
>   do_install:append () {
>   	if [ -n "${UBOOT_CONFIG}" ]
>   	then
> @@ -204,20 +178,6 @@ do_install:append () {
>   	fi
>   }
>   
> -do_deploy:append:k3r5 () {
> -	for f in ${B}/tiboot3-*.bin; do
> -		if [ -f "$f" ]; then
> -			install -m 644 $f ${DEPLOYDIR}/
> -		fi
> -	done
> -
> -	for f in ${B}/sysfw*.itb; do
> -		if [ -f "$f" ]; then
> -			install -m 644 $f ${DEPLOYDIR}/
> -		fi
> -	done
> -}
> -
>   do_deploy:append () {
>   	if [ -n "${UBOOT_CONFIG}" ]
>   	then
Jose Quaresma Dec. 20, 2023, 4:43 p.m. UTC | #3
Hi Andrew,

I believe this patchset can help fix some of the remaining issues mainly in
the kirstone branch.
I will test it but maybe only next year.

Jose

Ryan Eatmon via lists.yoctoproject.org <reatmon=
ti.com@lists.yoctoproject.org> escreveu no dia quarta, 20/12/2023 à(s)
16:14:

>
>
> On 12/20/2023 10:07 AM, Andrew Davis wrote:
> > The R5 SPL bootloader is the only software we build using the R5 (arm32)
> > multiconfig environment. Using multiconfig pulls in a large number of
> > build dependencies (see the -native environment in baremetal tmp dir)
> > this increases build time and space.
> >
> > Using multiconfig for a deploy target also leads to several oddities in
> > the bitbake build system forcing use of a non-standard deploy directory
> > and careful checks that no recipe built in both configuration deploy
> > the same files.
> >
> > While I believe we will get more use out of multiconfig for future
> > devices, today let's simplify the K3 build infrastructure here by
> > building R5 SPL like a normal firmware using a foreign targeting cross
> > compiler. This is the technique meta-arm uses to build firmware (see
> > scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware
> > recipe here.
> >
> > With that we can also drop all the related k3r5 multiconfig files and
> > definitions. Do that here.
>
> On first glance, this looks good.  Let me do some test builds.
>
>
> > Signed-off-by: Andrew Davis <afd@ti.com>
> > ---
> >   meta-ti-bsp/classes/ti-secdev.bbclass         |  3 -
> >   .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
> >   meta-ti-bsp/conf/machine/am62axx-evm.conf     |  5 ++
> >   .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
> >   meta-ti-bsp/conf/machine/am62pxx-evm.conf     |  5 ++
> >   meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
> >   meta-ti-bsp/conf/machine/am62xx-evm.conf      |  5 ++
> >   .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
> >   meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   |  5 ++
> >   .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
> >   meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
> >   meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
> >   meta-ti-bsp/conf/machine/am64xx-evm.conf      |  5 ++
> >   meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
> >   meta-ti-bsp/conf/machine/am65xx-evm.conf      |  5 ++
> >   .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
> >   meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   |  5 ++
> >   .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
> >   meta-ti-bsp/conf/machine/beaglebone-ai64.conf |  5 ++
> >   meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
> >   meta-ti-bsp/conf/machine/beagleplay.conf      |  5 ++
> >   meta-ti-bsp/conf/machine/include/k3.inc       |  4 +-
> >   meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
> >   meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
> >   meta-ti-bsp/conf/machine/j7200-evm.conf       |  5 ++
> >   .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
> >   meta-ti-bsp/conf/machine/j7200-hs-evm.conf    |  5 ++
> >   meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
> >   meta-ti-bsp/conf/machine/j721e-evm.conf       |  5 ++
> >   .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
> >   meta-ti-bsp/conf/machine/j721e-hs-evm.conf    |  3 +-
> >   meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
> >   meta-ti-bsp/conf/machine/j721s2-evm.conf      |  5 ++
> >   .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
> >   meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   |  2 +
> >   meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
> >   meta-ti-bsp/conf/machine/j784s4-evm.conf      |  5 ++
> >   .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
> >   meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   |  2 +
> >   meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
> >   .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb    |  3 -
> >   .../u-boot/tiboot3-staging_2023.5.bb          | 65 +++++++++++++++++++
> >   .../recipes-bsp/u-boot/u-boot-bb.org_git.bb   |  2 -
> >   meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 ------------
> >   44 files changed, 152 insertions(+), 303 deletions(-)
> >   delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
> >   delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> >   delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
> >   create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/
> tiboot3-staging_2023.5.bb
> >
> > diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass
> b/meta-ti-bsp/classes/ti-secdev.bbclass
> > index b3d70e5c..18d15269 100644
> > --- a/meta-ti-bsp/classes/ti-secdev.bbclass
> > +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
> > @@ -2,14 +2,11 @@
> >
> >   # K3 SECDEV scripts use OpenSSL
> >   DEPENDS:append:k3 = " openssl-native"
> > -DEPENDS:append:k3r5 = " openssl-native"
> >
> >   # Use package version of TI SECDEV for K3 if one is not provided
> through the environment
> >   DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else '
> ti-k3-secdev-native' }"
> > -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else
> ' ti-k3-secdev-native' }"
> >   TI_K3_SECDEV_INSTALL_DIR =
> "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
> >   TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or
> d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
> > -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or
> d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
> >
> >   # For non-K3 we require the SECDEV tools be provided through the
> environment with the following vars
> >   TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
> > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> > deleted file mode 100644
> > index 2af3317e..00000000
> > --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: AM62A HS-FS EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "am62ax"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs-fs"
> > -
> > -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf
> b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> > index 22f61401..59884629 100644
> > --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-am62a7-sk.dtb \
> >   "
> >
> > +SYSFW_SOC = "am62ax"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs-fs"
> > +
> > +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
> >   UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> > deleted file mode 100644
> > index 36915381..00000000
> > --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,12 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: AM62PX EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -require conf/machine/include/ti-extras.inc
> > -
> > -SYSFW_SOC = "am62px"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs-fs"
> > -
> > -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> > index d7c9f589..116d819b 100644
> > --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-am62p5-sk.dtb \
> >   "
> >
> > +SYSFW_SOC = "am62px"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs-fs"
> > +
> > +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
> >   UBOOT_MACHINE = "am62px_evm_a53_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> > deleted file mode 100644
> > index 548369ca..00000000
> > --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,12 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: AM62XX EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -require conf/machine/include/ti-extras.inc
> > -
> > -SYSFW_SOC = "am62x"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs-fs"
> > -
> > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf
> b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> > index fadbc6f4..6f234811 100644
> > --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-am625-sk.dtb \
> >   "
> >
> > +SYSFW_SOC = "am62x"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs-fs"
> > +
> > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> > deleted file mode 100644
> > index aa9422cd..00000000
> > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: AM62XX LP GP EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F
> core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "am62x"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs-fs"
> > -
> > -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> > index 229b74bc..e33b60e2 100644
> > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> > @@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-am62-lp-sk.dtb \
> >   "
> >
> > +SYSFW_SOC = "am62x"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs-fs"
> > +
> > +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
> >   UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> > deleted file mode 100644
> > index 0daff2b9..00000000
> > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,16 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: AM62XX SIP EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F
> core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "am62x"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs-fs"
> > -
> > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> > -
> > -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments
> which has to be build
> > -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer
> u-boot-mergeconfig.inc
> > -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> > -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
> > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> > index b5dd18f1..2e077f75 100644
> > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> > @@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-am625-sk.dtb \
> >   "
> >
> > +SYSFW_SOC = "am62x"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs-fs"
> > +
> > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> > +
> > +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments
> which has to be build
> > +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer
> u-boot-mergeconfig.inc
> > +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> > +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
> > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> > deleted file mode 100644
> > index e932928a..00000000
> > --- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: AM64xx EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "am64x_sr2"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs-fs"
> > -
> > -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf
> b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> > index c6ba2a87..dc21c174 100644
> > --- a/meta-ti-bsp/conf/machine/am64xx-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> > @@ -4,4 +4,9 @@
> >
> >   require conf/machine/include/am64xx.inc
> >
> > +SYSFW_SOC = "am64x_sr2"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs-fs"
> > +
> >   UBOOT_MACHINE = "am64x_evm_a53_defconfig"
> > +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> > deleted file mode 100644
> > index 8744ac3e..00000000
> > --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: AM65xx EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "am65x_sr2"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "gp"
> > -
> > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf
> b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> > index f6eb6f0c..9b050b03 100644
> > --- a/meta-ti-bsp/conf/machine/am65xx-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> > @@ -4,6 +4,11 @@
> >
> >   require conf/machine/include/am65xx.inc
> >
> > +SYSFW_SOC = "am65x_sr2"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "gp"
> > +
> > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
> >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
> >
> >   MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2
> pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
> > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> > deleted file mode 100644
> > index 337c8413..00000000
> > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: AM65xx HS EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "am65x_sr2"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs"
> > -
> > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> > index f8221f31..4164ae53 100644
> > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> > @@ -4,4 +4,9 @@
> >
> >   require conf/machine/include/am65xx.inc
> >
> > +SYSFW_SOC = "am65x_sr2"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs"
> > +
> > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
> >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> > deleted file mode 100644
> > index b893f380..00000000
> > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> > +++ /dev/null
> > @@ -1,17 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: BeagleBone AI-64 (R5F)
> > -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j721e"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "gp"
> > -
> > -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
> > -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
> > -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
> > -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> > -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
> > -
> > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> > index e529f565..bad86a22 100644
> > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> > +++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> > @@ -4,6 +4,11 @@
> >
> >   require conf/machine/include/j721e.inc
> >
> > +SYSFW_SOC = "j721e"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "gp"
> > +
> > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
> >   UBOOT_MACHINE = "j721e_evm_a72_config"
> >
> >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
> > diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> > deleted file mode 100644
> > index c40615c9..00000000
> > --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> > +++ /dev/null
> > @@ -1,14 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: BeaglePlay (R5F)
> > -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
> > -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
> > -
> > -SYSFW_SOC = "am62x"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "gp"
> > -
> > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf
> b/meta-ti-bsp/conf/machine/beagleplay.conf
> > index ac4a202a..312fc503 100644
> > --- a/meta-ti-bsp/conf/machine/beagleplay.conf
> > +++ b/meta-ti-bsp/conf/machine/beagleplay.conf
> > @@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1"
> >
> >   OPTEEMACHINE = "k3-am62x"
> >
> > +SYSFW_SOC = "am62x"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "gp"
> > +
> > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
> >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> >
> >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
> > diff --git a/meta-ti-bsp/conf/machine/include/k3.inc
> b/meta-ti-bsp/conf/machine/include/k3.inc
> > index 2415f0ba..84feee08 100644
> > --- a/meta-ti-bsp/conf/machine/include/k3.inc
> > +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> > @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
> >
> >   require conf/machine/include/arm/arch-arm64.inc
> >
> > -BBMULTICONFIG += "k3r5"
> > -
> >   # Increase this everytime you change something in the kernel
> >   MACHINE_KERNEL_PR = "r0"
> >
> > @@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi"
> >   WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "
> sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}"
> >
> >   do_image_wic[depends] += "virtual/bootloader:do_deploy"
> > -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
> > +do_image[depends] += "tiboot3-staging:do_deploy"
> >
> >   SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
> >   SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
> > diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc
> b/meta-ti-bsp/conf/machine/include/k3r5.inc
> > deleted file mode 100644
> > index 63267a5e..00000000
> > --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
> > +++ /dev/null
> > @@ -1,27 +0,0 @@
> > -# TI K3 Armv7 profile for Cortex-R5F cores
> > -
> > -require conf/machine/include/ti-soc.inc
> > -SOC_FAMILY:append = ":k3r5"
> > -
> > -# The closest of existing tunes for Cortex-R5F
> > -DEFAULTTUNE = "armv7athf"
> > -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
> > -
> > -# R5 runs early bootloader and loads SYSFW
> > -#
> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst
> > -#
> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst
> > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst
> > -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
> > -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
> > -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
> > -
> > -SPL_SUFFIX = "bin"
> > -SPL_BINARY =
> "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> > -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> > -UBOOT_SUFFIX = "bin"
> > -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> > -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> > -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> > -
> > -PACKAGECONFIG:pn-u-boot-ti-staging = ""
> > -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
> > diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> > deleted file mode 100644
> > index 68061883..00000000
> > --- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: J7200 EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j7200"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "gp"
> > -
> > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf
> b/meta-ti-bsp/conf/machine/j7200-evm.conf
> > index dff1da69..e733d15a 100644
> > --- a/meta-ti-bsp/conf/machine/j7200-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
> > @@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-j7200-common-proc-board.dtb \
> >   "
> >
> > +SYSFW_SOC = "j7200"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "gp"
> > +
> > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
> >   UBOOT_MACHINE = "j7200_evm_a72_config"
> > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> > deleted file mode 100644
> > index 1922d5c8..00000000
> > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: J7200 HS EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j7200_sr2"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs"
> > -
> > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> > index 54fd2b4a..fc33106c 100644
> > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> > @@ -4,4 +4,9 @@
> >
> >   require conf/machine/j7200-evm.conf
> >
> > +SYSFW_SOC = "j7200_sr2"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "hs"
> > +
> > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
> >   UBOOT_MACHINE = "j7200_evm_a72_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> > deleted file mode 100644
> > index 070bf7aa..00000000
> > --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: J721e EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j721e"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "gp"
> > -
> > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf
> b/meta-ti-bsp/conf/machine/j721e-evm.conf
> > index 5e1f6dca..ca23e3e3 100644
> > --- a/meta-ti-bsp/conf/machine/j721e-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
> > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-j721e-sk.dtb \
> >   "
> >
> > +SYSFW_SOC = "j721e"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "gp"
> > +
> > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
> >   UBOOT_MACHINE = "j721e_evm_a72_config"
> > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> > deleted file mode 100644
> > index 7904c660..00000000
> > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: J721e HS EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j721e_sr1_1"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs"
> > -
> > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> > index 441ca169..3d4bedb6 100644
> > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> > @@ -4,4 +4,5 @@
> >
> >   require conf/machine/j721e-evm.conf
> >
> > -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
> > +SYSFW_SOC = "j721e_sr1_1"
> > +SYSFW_SUFFIX = "hs"
> > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> > deleted file mode 100644
> > index 508e96e5..00000000
> > --- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: J721S2 EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j721s2"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "gp"
> > -
> > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf
> b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> > index ecb1836f..63d86af0 100644
> > --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-j721s2-common-proc-board.dtb \
> >   "
> >
> > +SYSFW_SOC = "j721s2"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "gp"
> > +
> > +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
> >   UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> > deleted file mode 100644
> > index 58cd92c4..00000000
> > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: J721S2 HS EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j721s2"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs"
> > -
> > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> > index 4cf32a28..1129a189 100644
> > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> > @@ -3,3 +3,5 @@
> >   #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
> >
> >   require conf/machine/j721s2-evm.conf
> > +
> > +SYSFW_SUFFIX = "hs"
> > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> > deleted file mode 100644
> > index 04feebc6..00000000
> > --- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: J784S4 EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j784s4"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "gp"
> > -
> > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf
> b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> > index 40a63651..a242ef8a 100644
> > --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
> >       ti/k3-j784s4-evm.dtb \
> >   "
> >
> > +SYSFW_SOC = "j784s4"
> > +SYSFW_CONFIG = "evm"
> > +SYSFW_SUFFIX = "gp"
> > +
> > +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
> >   UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> > deleted file mode 100644
> > index 80a228a0..00000000
> > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -#@TYPE: Machine
> > -#@NAME: J784S4 HS EVM (R5F)
> > -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
> > -
> > -require conf/machine/include/k3r5.inc
> > -
> > -SYSFW_SOC = "j784s4"
> > -SYSFW_CONFIG = "evm"
> > -SYSFW_SUFFIX = "hs"
> > -
> > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> > index 8fa1c1fd..42468088 100644
> > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> > +++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> > @@ -3,3 +3,5 @@
> >   #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
> >
> >   require conf/machine/j784s4-evm.conf
> > +
> > +SYSFW_SUFFIX = "hs"
> > diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf
> b/meta-ti-bsp/conf/multiconfig/k3r5.conf
> > deleted file mode 100644
> > index 936bce2f..00000000
> > --- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
> > +++ /dev/null
> > @@ -1,10 +0,0 @@
> > -MAINMACHINE := "${MACHINE}"
> > -
> > -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
> > -
> > -MACHINE:append = "-k3r5"
> > -TCLIBC = "baremetal"
> > -TI_TMPDIR_APPEND ?= "-k3r5"
> > -TMPDIR:append = "${TI_TMPDIR_APPEND}"
> > -
> > -SDKPKGSUFFIX = "k3r5-nativesdk"
> > diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> > index 12292c88..0597d9bb 100644
> > --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> > +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> > @@ -17,9 +17,6 @@ do_install() {
> >   }
> >
> >   do_deploy(){
> > -}
> > -
> > -do_deploy:k3r5() {
> >       install -d ${DEPLOYDIR}/ti-sysfw
> >       install -m 644 ${S}/ti-sysfw/ti-sci-firmware-*
> ${DEPLOYDIR}/ti-sysfw
> >       install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
> > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> > new file mode 100644
> > index 00000000..0f1929b5
> > --- /dev/null
> > +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> > @@ -0,0 +1,65 @@
> > +require u-boot-ti.inc
> > +
> > +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS')
> else ''}
> > +
> > +PR = "r0"
> > +BRANCH = "ti-u-boot-2023.04"
> > +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
> > +
> > +PROVIDES:remove = "virtual/bootloader"
> > +PROVIDES:remove = "u-boot"
> > +
> > +# Using gcc-cross-arm-native here would have been ideal
> > +# as the compiler version would match between R5 and
> > +# main ARM core builds. arm-oe-linux-gnueabi-
> > +DEPENDS += "gcc-arm-none-eabi-native"
> > +
> > +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
> > +
> > +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
> > +
> > +SPL_SUFFIX = "bin"
> > +SPL_BINARY =
> "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> > +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> > +UBOOT_SUFFIX = "bin"
> > +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> > +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> > +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> > +
> > +do_compile:append () {
> > +     if [ -n "${UBOOT_CONFIG}" ];
> > +     then
> > +             for config in ${UBOOT_MACHINE}; do
> > +                     i=$(expr $i + 1);
> > +                     for type in ${UBOOT_CONFIG}; do
> > +                             j=$(expr $j + 1);
> > +                             if [ $j -eq $i ];
> > +                             then
> > +                                     if ! [ -L
> ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY}
> ]; then
> > +                                             ln -s
> ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> > +                                     fi
> > +                             fi
> > +                     done
> > +                     unset  j
> > +             done
> > +             unset  i
> > +     else
> > +             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> > +                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX}
> ${B}/${UBOOT_BINARY}
> > +             fi
> > +     fi
> > +}
> > +
> > +do_deploy:append () {
> > +     for f in ${B}/tiboot3-*.bin; do
> > +             if [ -f "$f" ]; then
> > +                     install -m 644 $f ${DEPLOYDIR}/
> > +             fi
> > +     done
> > +
> > +     for f in ${B}/sysfw*.itb; do
> > +             if [ -f "$f" ]; then
> > +                     install -m 644 $f ${DEPLOYDIR}/
> > +             fi
> > +     done
> > +}
> > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> > index 5bb20213..1ec5f9bf 100644
> > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> > @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
> >   SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
> >
> >   BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
> > -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
> >   SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
> > -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
> > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> > index 2f15c4fb..b0f88a5a 100644
> > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> > @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native
> python3-pyyaml-native python3-jsonschema-n
> >
> >   # SYSFW/TIFS Firmware
> >   DEPENDS:append:k3 = " ti-sci-fw"
> > -DEPENDS:append:k3r5 = " ti-sci-fw"
> >
> >   DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
> >
> > @@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot"
> >
> >   # SPL (Second Program Loader) to be loaded over UART
> >   SPL_UART_BINARY = "u-boot-spl.bin"
> > -SPL_UART_BINARY:k3r5 = ""
> >
> >   SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
> >   SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
> > @@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
> >   UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
> >   UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
> >
> > -do_compile:append:k3r5 () {
> > -     if [ -n "${UBOOT_CONFIG}" ];
> > -     then
> > -             for config in ${UBOOT_MACHINE}; do
> > -                     i=$(expr $i + 1);
> > -                     for type in ${UBOOT_CONFIG}; do
> > -                             j=$(expr $j + 1);
> > -                             if [ $j -eq $i ];
> > -                             then
> > -                                     if ! [ -L
> ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY}
> ]; then
> > -                                             ln -s
> ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> > -                                     fi
> > -                             fi
> > -                     done
> > -                     unset  j
> > -             done
> > -             unset  i
> > -     else
> > -             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> > -                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX}
> ${B}/${UBOOT_BINARY}
> > -             fi
> > -     fi
> > -}
> > -
> >   do_install:append () {
> >       if [ -n "${UBOOT_CONFIG}" ]
> >       then
> > @@ -204,20 +178,6 @@ do_install:append () {
> >       fi
> >   }
> >
> > -do_deploy:append:k3r5 () {
> > -     for f in ${B}/tiboot3-*.bin; do
> > -             if [ -f "$f" ]; then
> > -                     install -m 644 $f ${DEPLOYDIR}/
> > -             fi
> > -     done
> > -
> > -     for f in ${B}/sysfw*.itb; do
> > -             if [ -f "$f" ]; then
> > -                     install -m 644 $f ${DEPLOYDIR}/
> > -             fi
> > -     done
> > -}
> > -
> >   do_deploy:append () {
> >       if [ -n "${UBOOT_CONFIG}" ]
> >       then
>
> --
> Ryan Eatmon                reatmon@ti.com
> -----------------------------------------
> Texas Instruments, Inc.  -  LCPD  -  MGTS
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#17353):
> https://lists.yoctoproject.org/g/meta-ti/message/17353
> Mute This Topic: https://lists.yoctoproject.org/mt/103283292/5052612
> Group Owner: meta-ti+owner@lists.yoctoproject.org
> Unsubscribe:
> https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy
> [quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Andrew Davis Dec. 20, 2023, 4:54 p.m. UTC | #4
On 12/20/23 10:43 AM, Jose Quaresma wrote:
> Hi Andrew,
> 
> I believe this patchset can help fix some of the remaining issues mainly in the kirstone branch.

I hope so, I was thinking of the troubles you have been having when
puting this together. (plus several others on E2E with multiconf issues)

> I will test it but maybe only next year.

This is a very early RFC so no guarantee it even boots on all platforms.
Denys and Ryan put a lot of work into keeping multiconf working so just
wanted to make sure they are okay with dropping it back out before I do
too much work on getting all the exact details right.

There is also a change needed up in the meta-arago layer so this all
will probably end up targeting only master/scarthgap and not kirkstone.

Andrew

> 
> Jose
> 
> Ryan Eatmon via lists.yoctoproject.org <http://lists.yoctoproject.org> <reatmon=ti.com@lists.yoctoproject.org <mailto:ti.com@lists.yoctoproject.org>> escreveu no dia quarta, 20/12/2023 à(s) 16:14:
> 
> 
> 
>     On 12/20/2023 10:07 AM, Andrew Davis wrote:
>      > The R5 SPL bootloader is the only software we build using the R5 (arm32)
>      > multiconfig environment. Using multiconfig pulls in a large number of
>      > build dependencies (see the -native environment in baremetal tmp dir)
>      > this increases build time and space.
>      >
>      > Using multiconfig for a deploy target also leads to several oddities in
>      > the bitbake build system forcing use of a non-standard deploy directory
>      > and careful checks that no recipe built in both configuration deploy
>      > the same files.
>      >
>      > While I believe we will get more use out of multiconfig for future
>      > devices, today let's simplify the K3 build infrastructure here by
>      > building R5 SPL like a normal firmware using a foreign targeting cross
>      > compiler. This is the technique meta-arm uses to build firmware (see
>      > scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware
>      > recipe here.
>      >
>      > With that we can also drop all the related k3r5 multiconfig files and
>      > definitions. Do that here.
> 
>     On first glance, this looks good.  Let me do some test builds.
> 
> 
>      > Signed-off-by: Andrew Davis <afd@ti.com <mailto:afd@ti.com>>
>      > ---
>      >   meta-ti-bsp/classes/ti-secdev.bbclass         |  3 -
>      >   .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
>      >   meta-ti-bsp/conf/machine/am62axx-evm.conf     |  5 ++
>      >   .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
>      >   meta-ti-bsp/conf/machine/am62pxx-evm.conf     |  5 ++
>      >   meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
>      >   meta-ti-bsp/conf/machine/am62xx-evm.conf      |  5 ++
>      >   .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
>      >   meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   |  5 ++
>      >   .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
>      >   meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
>      >   meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
>      >   meta-ti-bsp/conf/machine/am64xx-evm.conf      |  5 ++
>      >   meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
>      >   meta-ti-bsp/conf/machine/am65xx-evm.conf      |  5 ++
>      >   .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
>      >   meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   |  5 ++
>      >   .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
>      >   meta-ti-bsp/conf/machine/beaglebone-ai64.conf |  5 ++
>      >   meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
>      >   meta-ti-bsp/conf/machine/beagleplay.conf      |  5 ++
>      >   meta-ti-bsp/conf/machine/include/k3.inc       |  4 +-
>      >   meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
>      >   meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
>      >   meta-ti-bsp/conf/machine/j7200-evm.conf       |  5 ++
>      >   .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
>      >   meta-ti-bsp/conf/machine/j7200-hs-evm.conf    |  5 ++
>      >   meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
>      >   meta-ti-bsp/conf/machine/j721e-evm.conf       |  5 ++
>      >   .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
>      >   meta-ti-bsp/conf/machine/j721e-hs-evm.conf    |  3 +-
>      >   meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
>      >   meta-ti-bsp/conf/machine/j721s2-evm.conf      |  5 ++
>      >   .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
>      >   meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   |  2 +
>      >   meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
>      >   meta-ti-bsp/conf/machine/j784s4-evm.conf      |  5 ++
>      >   .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
>      >   meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   |  2 +
>      >   meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
>      >   .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>    |  3 -
>      >   .../u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>          | 65 +++++++++++++++++++
>      >   .../recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>   |  2 -
>      >   meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 ------------
>      >   44 files changed, 152 insertions(+), 303 deletions(-)
>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
>      >   delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>      >   delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
>      >   create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>      >
>      > diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
>      > index b3d70e5c..18d15269 100644
>      > --- a/meta-ti-bsp/classes/ti-secdev.bbclass
>      > +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
>      > @@ -2,14 +2,11 @@
>      >
>      >   # K3 SECDEV scripts use OpenSSL
>      >   DEPENDS:append:k3 = " openssl-native"
>      > -DEPENDS:append:k3r5 = " openssl-native"
>      >
>      >   # Use package version of TI SECDEV for K3 if one is not provided through the environment
>      >   DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>      > -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>      >   TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
>      >   TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>      > -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>      >
>      >   # For non-K3 we require the SECDEV tools be provided through the environment with the following vars
>      >   TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
>      > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 2af3317e..00000000
>      > --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: AM62A HS-FS EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "am62ax"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs-fs"
>      > -
>      > -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf b/meta-ti-bsp/conf/machine/am62axx-evm.conf
>      > index 22f61401..59884629 100644
>      > --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
>      > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-am62a7-sk.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "am62ax"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "hs-fs"
>      > +
>      > +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 36915381..00000000
>      > --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,12 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: AM62PX EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -require conf/machine/include/ti-extras.inc
>      > -
>      > -SYSFW_SOC = "am62px"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs-fs"
>      > -
>      > -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>      > index d7c9f589..116d819b 100644
>      > --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>      > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-am62p5-sk.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "am62px"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "hs-fs"
>      > +
>      > +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "am62px_evm_a53_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 548369ca..00000000
>      > --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,12 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: AM62XX EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -require conf/machine/include/ti-extras.inc
>      > -
>      > -SYSFW_SOC = "am62x"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs-fs"
>      > -
>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf b/meta-ti-bsp/conf/machine/am62xx-evm.conf
>      > index fadbc6f4..6f234811 100644
>      > --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
>      > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-am625-sk.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "am62x"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "hs-fs"
>      > +
>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>      > deleted file mode 100644
>      > index aa9422cd..00000000
>      > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: AM62XX LP GP EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "am62x"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs-fs"
>      > -
>      > -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>      > index 229b74bc..e33b60e2 100644
>      > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>      > @@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-am62-lp-sk.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "am62x"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "hs-fs"
>      > +
>      > +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
>      >   UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 0daff2b9..00000000
>      > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,16 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: AM62XX SIP EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "am62x"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs-fs"
>      > -
>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>      > -
>      > -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
>      > -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
>      > -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
>      > -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
>      > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>      > index b5dd18f1..2e077f75 100644
>      > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>      > @@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-am625-sk.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "am62x"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "hs-fs"
>      > +
>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>      > +
>      > +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
>      > +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
>      > +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
>      > +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
>      > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>      > deleted file mode 100644
>      > index e932928a..00000000
>      > --- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: AM64xx EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "am64x_sr2"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs-fs"
>      > -
>      > -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf b/meta-ti-bsp/conf/machine/am64xx-evm.conf
>      > index c6ba2a87..dc21c174 100644
>      > --- a/meta-ti-bsp/conf/machine/am64xx-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
>      > @@ -4,4 +4,9 @@
>      >
>      >   require conf/machine/include/am64xx.inc
>      >
>      > +SYSFW_SOC = "am64x_sr2"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "hs-fs"
>      > +
>      >   UBOOT_MACHINE = "am64x_evm_a53_defconfig"
>      > +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 8744ac3e..00000000
>      > --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: AM65xx EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "am65x_sr2"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "gp"
>      > -
>      > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf b/meta-ti-bsp/conf/machine/am65xx-evm.conf
>      > index f6eb6f0c..9b050b03 100644
>      > --- a/meta-ti-bsp/conf/machine/am65xx-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
>      > @@ -4,6 +4,11 @@
>      >
>      >   require conf/machine/include/am65xx.inc
>      >
>      > +SYSFW_SOC = "am65x_sr2"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "gp"
>      > +
>      > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>      >
>      >   MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 337c8413..00000000
>      > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: AM65xx HS EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "am65x_sr2"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs"
>      > -
>      > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>      > index f8221f31..4164ae53 100644
>      > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>      > @@ -4,4 +4,9 @@
>      >
>      >   require conf/machine/include/am65xx.inc
>      >
>      > +SYSFW_SOC = "am65x_sr2"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "hs"
>      > +
>      > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>      > deleted file mode 100644
>      > index b893f380..00000000
>      > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,17 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: BeagleBone AI-64 (R5F)
>      > -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j721e"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "gp"
>      > -
>      > -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
>      > -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
>      > -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
>      > -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>      > -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
>      > -
>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>      > index e529f565..bad86a22 100644
>      > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>      > +++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>      > @@ -4,6 +4,11 @@
>      >
>      >   require conf/machine/include/j721e.inc
>      >
>      > +SYSFW_SOC = "j721e"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "gp"
>      > +
>      > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "j721e_evm_a72_config"
>      >
>      >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
>      > diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>      > deleted file mode 100644
>      > index c40615c9..00000000
>      > --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,14 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: BeaglePlay (R5F)
>      > -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org <http://u-boot-bb.org>"
>      > -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org <http://u-boot-bb.org>"
>      > -
>      > -SYSFW_SOC = "am62x"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "gp"
>      > -
>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf b/meta-ti-bsp/conf/machine/beagleplay.conf
>      > index ac4a202a..312fc503 100644
>      > --- a/meta-ti-bsp/conf/machine/beagleplay.conf
>      > +++ b/meta-ti-bsp/conf/machine/beagleplay.conf
>      > @@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1"
>      >
>      >   OPTEEMACHINE = "k3-am62x"
>      >
>      > +SYSFW_SOC = "am62x"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "gp"
>      > +
>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>      >
>      >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
>      > diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
>      > index 2415f0ba..84feee08 100644
>      > --- a/meta-ti-bsp/conf/machine/include/k3.inc
>      > +++ b/meta-ti-bsp/conf/machine/include/k3.inc
>      > @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>      >
>      >   require conf/machine/include/arm/arch-arm64.inc
>      >
>      > -BBMULTICONFIG += "k3r5"
>      > -
>      >   # Increase this everytime you change something in the kernel
>      >   MACHINE_KERNEL_PR = "r0"
>      >
>      > @@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi"
>      >   WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in <http://sdimage-2part-efi.wks.in>", "sdimage-2part.wks", d)}"
>      >
>      >   do_image_wic[depends] += "virtual/bootloader:do_deploy"
>      > -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
>      > +do_image[depends] += "tiboot3-staging:do_deploy"
>      >
>      >   SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
>      >   SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
>      > diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
>      > deleted file mode 100644
>      > index 63267a5e..00000000
>      > --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
>      > +++ /dev/null
>      > @@ -1,27 +0,0 @@
>      > -# TI K3 Armv7 profile for Cortex-R5F cores
>      > -
>      > -require conf/machine/include/ti-soc.inc
>      > -SOC_FAMILY:append = ":k3r5"
>      > -
>      > -# The closest of existing tunes for Cortex-R5F
>      > -DEFAULTTUNE = "armv7athf"
>      > -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
>      > -
>      > -# R5 runs early bootloader and loads SYSFW
>      > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst>
>      > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst>
>      > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst>
>      > -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
>      > -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
>      > -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
>      > -
>      > -SPL_SUFFIX = "bin"
>      > -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
>      > -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
>      > -UBOOT_SUFFIX = "bin"
>      > -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
>      > -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>      > -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
>      > -
>      > -PACKAGECONFIG:pn-u-boot-ti-staging = ""
>      > -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
>      > diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 68061883..00000000
>      > --- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: J7200 EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j7200"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "gp"
>      > -
>      > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf
>      > index dff1da69..e733d15a 100644
>      > --- a/meta-ti-bsp/conf/machine/j7200-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
>      > @@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-j7200-common-proc-board.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "j7200"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "gp"
>      > +
>      > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "j7200_evm_a72_config"
>      > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 1922d5c8..00000000
>      > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: J7200 HS EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j7200_sr2"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs"
>      > -
>      > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>      > index 54fd2b4a..fc33106c 100644
>      > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>      > @@ -4,4 +4,9 @@
>      >
>      >   require conf/machine/j7200-evm.conf
>      >
>      > +SYSFW_SOC = "j7200_sr2"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "hs"
>      > +
>      > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "j7200_evm_a72_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 070bf7aa..00000000
>      > --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: J721e EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j721e"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "gp"
>      > -
>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf b/meta-ti-bsp/conf/machine/j721e-evm.conf
>      > index 5e1f6dca..ca23e3e3 100644
>      > --- a/meta-ti-bsp/conf/machine/j721e-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
>      > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-j721e-sk.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "j721e"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "gp"
>      > +
>      > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "j721e_evm_a72_config"
>      > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 7904c660..00000000
>      > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: J721e HS EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j721e_sr1_1"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs"
>      > -
>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>      > index 441ca169..3d4bedb6 100644
>      > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>      > @@ -4,4 +4,5 @@
>      >
>      >   require conf/machine/j721e-evm.conf
>      >
>      > -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
>      > +SYSFW_SOC = "j721e_sr1_1"
>      > +SYSFW_SUFFIX = "hs"
>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 508e96e5..00000000
>      > --- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: J721S2 EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j721s2"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "gp"
>      > -
>      > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf b/meta-ti-bsp/conf/machine/j721s2-evm.conf
>      > index ecb1836f..63d86af0 100644
>      > --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
>      > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-j721s2-common-proc-board.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "j721s2"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "gp"
>      > +
>      > +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 58cd92c4..00000000
>      > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: J721S2 HS EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j721s2"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs"
>      > -
>      > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>      > index 4cf32a28..1129a189 100644
>      > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>      > @@ -3,3 +3,5 @@
>      >   #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>      >
>      >   require conf/machine/j721s2-evm.conf
>      > +
>      > +SYSFW_SUFFIX = "hs"
>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 04feebc6..00000000
>      > --- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: J784S4 EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j784s4"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "gp"
>      > -
>      > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf b/meta-ti-bsp/conf/machine/j784s4-evm.conf
>      > index 40a63651..a242ef8a 100644
>      > --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf
>      > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>      >       ti/k3-j784s4-evm.dtb \
>      >   "
>      >
>      > +SYSFW_SOC = "j784s4"
>      > +SYSFW_CONFIG = "evm"
>      > +SYSFW_SUFFIX = "gp"
>      > +
>      > +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
>      >   UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>      > deleted file mode 100644
>      > index 80a228a0..00000000
>      > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>      > +++ /dev/null
>      > @@ -1,11 +0,0 @@
>      > -#@TYPE: Machine
>      > -#@NAME: J784S4 HS EVM (R5F)
>      > -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
>      > -
>      > -require conf/machine/include/k3r5.inc
>      > -
>      > -SYSFW_SOC = "j784s4"
>      > -SYSFW_CONFIG = "evm"
>      > -SYSFW_SUFFIX = "hs"
>      > -
>      > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>      > index 8fa1c1fd..42468088 100644
>      > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>      > +++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>      > @@ -3,3 +3,5 @@
>      >   #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>      >
>      >   require conf/machine/j784s4-evm.conf
>      > +
>      > +SYSFW_SUFFIX = "hs"
>      > diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf b/meta-ti-bsp/conf/multiconfig/k3r5.conf
>      > deleted file mode 100644
>      > index 936bce2f..00000000
>      > --- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
>      > +++ /dev/null
>      > @@ -1,10 +0,0 @@
>      > -MAINMACHINE := "${MACHINE}"
>      > -
>      > -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
>      > -
>      > -MACHINE:append = "-k3r5"
>      > -TCLIBC = "baremetal"
>      > -TI_TMPDIR_APPEND ?= "-k3r5"
>      > -TMPDIR:append = "${TI_TMPDIR_APPEND}"
>      > -
>      > -SDKPKGSUFFIX = "k3r5-nativesdk"
>      > diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
>      > index 12292c88..0597d9bb 100644
>      > --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
>      > +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
>      > @@ -17,9 +17,6 @@ do_install() {
>      >   }
>      >
>      >   do_deploy(){
>      > -}
>      > -
>      > -do_deploy:k3r5() {
>      >       install -d ${DEPLOYDIR}/ti-sysfw
>      >       install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
>      >       install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
>      > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>      > new file mode 100644
>      > index 00000000..0f1929b5
>      > --- /dev/null
>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>      > @@ -0,0 +1,65 @@
>      > +require u-boot-ti.inc
>      > +
>      > +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
>      > +
>      > +PR = "r0"
>      > +BRANCH = "ti-u-boot-2023.04"
>      > +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
>      > +
>      > +PROVIDES:remove = "virtual/bootloader"
>      > +PROVIDES:remove = "u-boot"
>      > +
>      > +# Using gcc-cross-arm-native here would have been ideal
>      > +# as the compiler version would match between R5 and
>      > +# main ARM core builds. arm-oe-linux-gnueabi-
>      > +DEPENDS += "gcc-arm-none-eabi-native"
>      > +
>      > +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
>      > +
>      > +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
>      > +
>      > +SPL_SUFFIX = "bin"
>      > +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
>      > +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
>      > +UBOOT_SUFFIX = "bin"
>      > +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
>      > +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>      > +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
>      > +
>      > +do_compile:append () {
>      > +     if [ -n "${UBOOT_CONFIG}" ];
>      > +     then
>      > +             for config in ${UBOOT_MACHINE}; do
>      > +                     i=$(expr $i + 1);
>      > +                     for type in ${UBOOT_CONFIG}; do
>      > +                             j=$(expr $j + 1);
>      > +                             if [ $j -eq $i ];
>      > +                             then
>      > +                                     if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
>      > +                                             ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
>      > +                                     fi
>      > +                             fi
>      > +                     done
>      > +                     unset  j
>      > +             done
>      > +             unset  i
>      > +     else
>      > +             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
>      > +                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
>      > +             fi
>      > +     fi
>      > +}
>      > +
>      > +do_deploy:append () {
>      > +     for f in ${B}/tiboot3-*.bin; do
>      > +             if [ -f "$f" ]; then
>      > +                     install -m 644 $f ${DEPLOYDIR}/
>      > +             fi
>      > +     done
>      > +
>      > +     for f in ${B}/sysfw*.itb; do
>      > +             if [ -f "$f" ]; then
>      > +                     install -m 644 $f ${DEPLOYDIR}/
>      > +             fi
>      > +     done
>      > +}
>      > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
>      > index 5bb20213..1ec5f9bf 100644
>      > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
>      > @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
>      >   SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>      >
>      >   BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
>      > -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
>      >   SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
>      > -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
>      > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>      > index 2f15c4fb..b0f88a5a 100644
>      > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>      > @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n
>      >
>      >   # SYSFW/TIFS Firmware
>      >   DEPENDS:append:k3 = " ti-sci-fw"
>      > -DEPENDS:append:k3r5 = " ti-sci-fw"
>      >
>      >   DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>      >
>      > @@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot"
>      >
>      >   # SPL (Second Program Loader) to be loaded over UART
>      >   SPL_UART_BINARY = "u-boot-spl.bin"
>      > -SPL_UART_BINARY:k3r5 = ""
>      >
>      >   SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
>      >   SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
>      > @@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
>      >   UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
>      >   UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>      >
>      > -do_compile:append:k3r5 () {
>      > -     if [ -n "${UBOOT_CONFIG}" ];
>      > -     then
>      > -             for config in ${UBOOT_MACHINE}; do
>      > -                     i=$(expr $i + 1);
>      > -                     for type in ${UBOOT_CONFIG}; do
>      > -                             j=$(expr $j + 1);
>      > -                             if [ $j -eq $i ];
>      > -                             then
>      > -                                     if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
>      > -                                             ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
>      > -                                     fi
>      > -                             fi
>      > -                     done
>      > -                     unset  j
>      > -             done
>      > -             unset  i
>      > -     else
>      > -             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
>      > -                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
>      > -             fi
>      > -     fi
>      > -}
>      > -
>      >   do_install:append () {
>      >       if [ -n "${UBOOT_CONFIG}" ]
>      >       then
>      > @@ -204,20 +178,6 @@ do_install:append () {
>      >       fi
>      >   }
>      >
>      > -do_deploy:append:k3r5 () {
>      > -     for f in ${B}/tiboot3-*.bin; do
>      > -             if [ -f "$f" ]; then
>      > -                     install -m 644 $f ${DEPLOYDIR}/
>      > -             fi
>      > -     done
>      > -
>      > -     for f in ${B}/sysfw*.itb; do
>      > -             if [ -f "$f" ]; then
>      > -                     install -m 644 $f ${DEPLOYDIR}/
>      > -             fi
>      > -     done
>      > -}
>      > -
>      >   do_deploy:append () {
>      >       if [ -n "${UBOOT_CONFIG}" ]
>      >       then
> 
>     -- 
>     Ryan Eatmon reatmon@ti.com <mailto:reatmon@ti.com>
>     -----------------------------------------
>     Texas Instruments, Inc.  -  LCPD  -  MGTS
> 
>     -=-=-=-=-=-=-=-=-=-=-=-
>     Links: You receive all messages sent to this group.
>     View/Reply Online (#17353): https://lists.yoctoproject.org/g/meta-ti/message/17353 <https://lists.yoctoproject.org/g/meta-ti/message/17353>
>     Mute This Topic: https://lists.yoctoproject.org/mt/103283292/5052612 <https://lists.yoctoproject.org/mt/103283292/5052612>
>     Group Owner: meta-ti+owner@lists.yoctoproject.org <mailto:meta-ti%2Bowner@lists.yoctoproject.org>
>     Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy <https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy> [quaresma.jose@gmail.com <mailto:quaresma.jose@gmail.com>]
>     -=-=-=-=-=-=-=-=-=-=-=-
> 
> 
> 
> -- 
> Best regards,
> 
> José Quaresma
Ryan Eatmon Dec. 20, 2023, 5:40 p.m. UTC | #5
On 12/20/2023 10:54 AM, Andrew Davis wrote:
> On 12/20/23 10:43 AM, Jose Quaresma wrote:
>> Hi Andrew,
>>
>> I believe this patchset can help fix some of the remaining issues 
>> mainly in the kirstone branch.
> 
> I hope so, I was thinking of the troubles you have been having when
> puting this together. (plus several others on E2E with multiconf issues)
> 
>> I will test it but maybe only next year.
> 
> This is a very early RFC so no guarantee it even boots on all platforms.
> Denys and Ryan put a lot of work into keeping multiconf working so just
> wanted to make sure they are okay with dropping it back out before I do
> too much work on getting all the exact details right.
> 
> There is also a change needed up in the meta-arago layer so this all
> will probably end up targeting only master/scarthgap and not kirkstone.

What's the change in arago?  Will my test builds even work without that 
change?


> Andrew
> 
>>
>> Jose
>>
>> Ryan Eatmon via lists.yoctoproject.org <http://lists.yoctoproject.org> 
>> <reatmon=ti.com@lists.yoctoproject.org 
>> <mailto:ti.com@lists.yoctoproject.org>> escreveu no dia quarta, 
>> 20/12/2023 à(s) 16:14:
>>
>>
>>
>>     On 12/20/2023 10:07 AM, Andrew Davis wrote:
>>      > The R5 SPL bootloader is the only software we build using the 
>> R5 (arm32)
>>      > multiconfig environment. Using multiconfig pulls in a large 
>> number of
>>      > build dependencies (see the -native environment in baremetal 
>> tmp dir)
>>      > this increases build time and space.
>>      >
>>      > Using multiconfig for a deploy target also leads to several 
>> oddities in
>>      > the bitbake build system forcing use of a non-standard deploy 
>> directory
>>      > and careful checks that no recipe built in both configuration 
>> deploy
>>      > the same files.
>>      >
>>      > While I believe we will get more use out of multiconfig for future
>>      > devices, today let's simplify the K3 build infrastructure here by
>>      > building R5 SPL like a normal firmware using a foreign 
>> targeting cross
>>      > compiler. This is the technique meta-arm uses to build firmware 
>> (see
>>      > scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 
>> firmware
>>      > recipe here.
>>      >
>>      > With that we can also drop all the related k3r5 multiconfig 
>> files and
>>      > definitions. Do that here.
>>
>>     On first glance, this looks good.  Let me do some test builds.
>>
>>
>>      > Signed-off-by: Andrew Davis <afd@ti.com <mailto:afd@ti.com>>
>>      > ---
>>      >   meta-ti-bsp/classes/ti-secdev.bbclass         |  3 -
>>      >   .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
>>      >   meta-ti-bsp/conf/machine/am62axx-evm.conf     |  5 ++
>>      >   .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
>>      >   meta-ti-bsp/conf/machine/am62pxx-evm.conf     |  5 ++
>>      >   meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
>>      >   meta-ti-bsp/conf/machine/am62xx-evm.conf      |  5 ++
>>      >   .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
>>      >   meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   |  5 ++
>>      >   .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
>>      >   meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
>>      >   meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
>>      >   meta-ti-bsp/conf/machine/am64xx-evm.conf      |  5 ++
>>      >   meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
>>      >   meta-ti-bsp/conf/machine/am65xx-evm.conf      |  5 ++
>>      >   .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
>>      >   meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   |  5 ++
>>      >   .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
>>      >   meta-ti-bsp/conf/machine/beaglebone-ai64.conf |  5 ++
>>      >   meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
>>      >   meta-ti-bsp/conf/machine/beagleplay.conf      |  5 ++
>>      >   meta-ti-bsp/conf/machine/include/k3.inc       |  4 +-
>>      >   meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
>>      >   meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
>>      >   meta-ti-bsp/conf/machine/j7200-evm.conf       |  5 ++
>>      >   .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
>>      >   meta-ti-bsp/conf/machine/j7200-hs-evm.conf    |  5 ++
>>      >   meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
>>      >   meta-ti-bsp/conf/machine/j721e-evm.conf       |  5 ++
>>      >   .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
>>      >   meta-ti-bsp/conf/machine/j721e-hs-evm.conf    |  3 +-
>>      >   meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
>>      >   meta-ti-bsp/conf/machine/j721s2-evm.conf      |  5 ++
>>      >   .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
>>      >   meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   |  2 +
>>      >   meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
>>      >   meta-ti-bsp/conf/machine/j784s4-evm.conf      |  5 ++
>>      >   .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
>>      >   meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   |  2 +
>>      >   meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
>>      >   .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>> <http://ti-sci-fw_git.bb>    |  3 -
>>      >   .../u-boot/tiboot3-staging_2023.5.bb 
>> <http://tiboot3-staging_2023.5.bb>          | 65 +++++++++++++++++++
>>      >   .../recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>> <http://u-boot-bb.org_git.bb>   |  2 -
>>      >   meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 ------------
>>      >   44 files changed, 152 insertions(+), 303 deletions(-)
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>      >   delete mode 100644 
>> meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>      >   delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
>>      >   create mode 100644 
>> meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb 
>> <http://tiboot3-staging_2023.5.bb>
>>      >
>>      > diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass 
>> b/meta-ti-bsp/classes/ti-secdev.bbclass
>>      > index b3d70e5c..18d15269 100644
>>      > --- a/meta-ti-bsp/classes/ti-secdev.bbclass
>>      > +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
>>      > @@ -2,14 +2,11 @@
>>      >
>>      >   # K3 SECDEV scripts use OpenSSL
>>      >   DEPENDS:append:k3 = " openssl-native"
>>      > -DEPENDS:append:k3r5 = " openssl-native"
>>      >
>>      >   # Use package version of TI SECDEV for K3 if one is not 
>> provided through the environment
>>      >   DEPENDS:append:k3 = "${@ '' if 
>> d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>>      > -DEPENDS:append:k3r5 = "${@ '' if 
>> d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>>      >   TI_K3_SECDEV_INSTALL_DIR = 
>> "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
>>      >   TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') 
>> or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>>      > -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') 
>> or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>>      >
>>      >   # For non-K3 we require the SECDEV tools be provided through 
>> the environment with the following vars
>>      >   TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 2af3317e..00000000
>>      > --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: AM62A HS-FS EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F 
>> core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "am62ax"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs-fs"
>>      > -
>>      > -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf 
>> b/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>      > index 22f61401..59884629 100644
>>      > --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>      > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-am62a7-sk.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "am62ax"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "hs-fs"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 36915381..00000000
>>      > --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,12 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: AM62PX EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -require conf/machine/include/ti-extras.inc
>>      > -
>>      > -SYSFW_SOC = "am62px"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs-fs"
>>      > -
>>      > -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf 
>> b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>      > index d7c9f589..116d819b 100644
>>      > --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>      > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-am62p5-sk.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "am62px"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "hs-fs"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "am62px_evm_a53_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 548369ca..00000000
>>      > --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,12 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: AM62XX EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -require conf/machine/include/ti-extras.inc
>>      > -
>>      > -SYSFW_SOC = "am62x"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs-fs"
>>      > -
>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf 
>> b/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>      > index fadbc6f4..6f234811 100644
>>      > --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>      > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-am625-sk.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "am62x"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "hs-fs"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index aa9422cd..00000000
>>      > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: AM62XX LP GP EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP 
>> EVM (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "am62x"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs-fs"
>>      > -
>>      > -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf 
>> b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>      > index 229b74bc..e33b60e2 100644
>>      > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>      > @@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-am62-lp-sk.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "am62x"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "hs-fs"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
>>      >   UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 0daff2b9..00000000
>>      > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,16 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: AM62XX SIP EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "am62x"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs-fs"
>>      > -
>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>      > -
>>      > -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config 
>> fragments which has to be build
>>      > -# along with the base defconfig mentioned in UBOOT_MACHINE. 
>> Refer u-boot-mergeconfig.inc
>>      > -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
>>      > -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
>>      > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf 
>> b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>      > index b5dd18f1..2e077f75 100644
>>      > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>      > @@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-am625-sk.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "am62x"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "hs-fs"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>      > +
>>      > +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config 
>> fragments which has to be build
>>      > +# along with the base defconfig mentioned in UBOOT_MACHINE. 
>> Refer u-boot-mergeconfig.inc
>>      > +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
>>      > +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
>>      > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index e932928a..00000000
>>      > --- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: AM64xx EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "am64x_sr2"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs-fs"
>>      > -
>>      > -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf 
>> b/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>      > index c6ba2a87..dc21c174 100644
>>      > --- a/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>      > @@ -4,4 +4,9 @@
>>      >
>>      >   require conf/machine/include/am64xx.inc
>>      >
>>      > +SYSFW_SOC = "am64x_sr2"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "hs-fs"
>>      > +
>>      >   UBOOT_MACHINE = "am64x_evm_a53_defconfig"
>>      > +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 8744ac3e..00000000
>>      > --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: AM65xx EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "am65x_sr2"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "gp"
>>      > -
>>      > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf 
>> b/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>      > index f6eb6f0c..9b050b03 100644
>>      > --- a/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>      > @@ -4,6 +4,11 @@
>>      >
>>      >   require conf/machine/include/am65xx.inc
>>      >
>>      > +SYSFW_SOC = "am65x_sr2"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "gp"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>>      >
>>      >   MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 
>> pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 337c8413..00000000
>>      > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: AM65xx HS EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "am65x_sr2"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs"
>>      > -
>>      > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf 
>> b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>      > index f8221f31..4164ae53 100644
>>      > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>      > @@ -4,4 +4,9 @@
>>      >
>>      >   require conf/machine/include/am65xx.inc
>>      >
>>      > +SYSFW_SOC = "am65x_sr2"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "hs"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>      > deleted file mode 100644
>>      > index b893f380..00000000
>>      > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,17 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: BeagleBone AI-64 (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j721e"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "gp"
>>      > -
>>      > -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
>>      > -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>      > -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
>>      > -UBOOT_IMAGE = 
>> "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>      > -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>      > -
>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf 
>> b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>      > index e529f565..bad86a22 100644
>>      > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>      > +++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>      > @@ -4,6 +4,11 @@
>>      >
>>      >   require conf/machine/include/j721e.inc
>>      >
>>      > +SYSFW_SOC = "j721e"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "gp"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "j721e_evm_a72_config"
>>      >
>>      >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org 
>> <http://linux-bb.org>"
>>      > diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>      > deleted file mode 100644
>>      > index c40615c9..00000000
>>      > --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,14 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: BeaglePlay (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F 
>> core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org 
>> <http://u-boot-bb.org>"
>>      > -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org 
>> <http://u-boot-bb.org>"
>>      > -
>>      > -SYSFW_SOC = "am62x"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "gp"
>>      > -
>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf 
>> b/meta-ti-bsp/conf/machine/beagleplay.conf
>>      > index ac4a202a..312fc503 100644
>>      > --- a/meta-ti-bsp/conf/machine/beagleplay.conf
>>      > +++ b/meta-ti-bsp/conf/machine/beagleplay.conf
>>      > @@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1"
>>      >
>>      >   OPTEEMACHINE = "k3-am62x"
>>      >
>>      > +SYSFW_SOC = "am62x"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "gp"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>      >
>>      >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org 
>> <http://linux-bb.org>"
>>      > diff --git a/meta-ti-bsp/conf/machine/include/k3.inc 
>> b/meta-ti-bsp/conf/machine/include/k3.inc
>>      > index 2415f0ba..84feee08 100644
>>      > --- a/meta-ti-bsp/conf/machine/include/k3.inc
>>      > +++ b/meta-ti-bsp/conf/machine/include/k3.inc
>>      > @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>>      >
>>      >   require conf/machine/include/arm/arch-arm64.inc
>>      >
>>      > -BBMULTICONFIG += "k3r5"
>>      > -
>>      >   # Increase this everytime you change something in the kernel
>>      >   MACHINE_KERNEL_PR = "r0"
>>      >
>>      > @@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi"
>>      >   WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", 
>> "sdimage-2part-efi.wks.in <http://sdimage-2part-efi.wks.in>", 
>> "sdimage-2part.wks", d)}"
>>      >
>>      >   do_image_wic[depends] += "virtual/bootloader:do_deploy"
>>      > -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
>>      > +do_image[depends] += "tiboot3-staging:do_deploy"
>>      >
>>      >   SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
>>      >   SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
>>      > diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc 
>> b/meta-ti-bsp/conf/machine/include/k3r5.inc
>>      > deleted file mode 100644
>>      > index 63267a5e..00000000
>>      > --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
>>      > +++ /dev/null
>>      > @@ -1,27 +0,0 @@
>>      > -# TI K3 Armv7 profile for Cortex-R5F cores
>>      > -
>>      > -require conf/machine/include/ti-soc.inc
>>      > -SOC_FAMILY:append = ":k3r5"
>>      > -
>>      > -# The closest of existing tunes for Cortex-R5F
>>      > -DEFAULTTUNE = "armv7athf"
>>      > -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
>>      > -
>>      > -# R5 runs early bootloader and loads SYSFW
>>      > -# 
>> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst>
>>      > -# 
>> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst>
>>      > -# 
>> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst 
>> <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst>
>>      > -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
>>      > -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
>>      > -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
>>      > -
>>      > -SPL_SUFFIX = "bin"
>>      > -SPL_BINARY = 
>> "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
>>      > -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
>>      > -UBOOT_SUFFIX = "bin"
>>      > -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>      > -UBOOT_IMAGE = 
>> "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>      > -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>      > -
>>      > -PACKAGECONFIG:pn-u-boot-ti-staging = ""
>>      > -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 68061883..00000000
>>      > --- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: J7200 EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F 
>> core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j7200"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "gp"
>>      > -
>>      > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf 
>> b/meta-ti-bsp/conf/machine/j7200-evm.conf
>>      > index dff1da69..e733d15a 100644
>>      > --- a/meta-ti-bsp/conf/machine/j7200-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
>>      > @@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-j7200-common-proc-board.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "j7200"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "gp"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "j7200_evm_a72_config"
>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 1922d5c8..00000000
>>      > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: J7200 HS EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j7200_sr2"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs"
>>      > -
>>      > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf 
>> b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>      > index 54fd2b4a..fc33106c 100644
>>      > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>      > @@ -4,4 +4,9 @@
>>      >
>>      >   require conf/machine/j7200-evm.conf
>>      >
>>      > +SYSFW_SOC = "j7200_sr2"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "hs"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "j7200_evm_a72_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 070bf7aa..00000000
>>      > --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: J721e EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F 
>> core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j721e"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "gp"
>>      > -
>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf 
>> b/meta-ti-bsp/conf/machine/j721e-evm.conf
>>      > index 5e1f6dca..ca23e3e3 100644
>>      > --- a/meta-ti-bsp/conf/machine/j721e-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
>>      > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-j721e-sk.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "j721e"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "gp"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "j721e_evm_a72_config"
>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 7904c660..00000000
>>      > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: J721e HS EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j721e_sr1_1"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs"
>>      > -
>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf 
>> b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>      > index 441ca169..3d4bedb6 100644
>>      > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>      > @@ -4,4 +4,5 @@
>>      >
>>      >   require conf/machine/j721e-evm.conf
>>      >
>>      > -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
>>      > +SYSFW_SOC = "j721e_sr1_1"
>>      > +SYSFW_SUFFIX = "hs"
>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 508e96e5..00000000
>>      > --- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: J721S2 EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j721s2"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "gp"
>>      > -
>>      > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf 
>> b/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>      > index ecb1836f..63d86af0 100644
>>      > --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>      > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-j721s2-common-proc-board.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "j721s2"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "gp"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 58cd92c4..00000000
>>      > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: J721S2 HS EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j721s2"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs"
>>      > -
>>      > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf 
>> b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>      > index 4cf32a28..1129a189 100644
>>      > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>      > @@ -3,3 +3,5 @@
>>      >   #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>>      >
>>      >   require conf/machine/j721s2-evm.conf
>>      > +
>>      > +SYSFW_SUFFIX = "hs"
>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 04feebc6..00000000
>>      > --- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: J784S4 EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j784s4"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "gp"
>>      > -
>>      > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf 
>> b/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>      > index 40a63651..a242ef8a 100644
>>      > --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>      > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>>      >       ti/k3-j784s4-evm.dtb \
>>      >   "
>>      >
>>      > +SYSFW_SOC = "j784s4"
>>      > +SYSFW_CONFIG = "evm"
>>      > +SYSFW_SUFFIX = "gp"
>>      > +
>>      > +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
>>      >   UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf 
>> b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>      > deleted file mode 100644
>>      > index 80a228a0..00000000
>>      > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,11 +0,0 @@
>>      > -#@TYPE: Machine
>>      > -#@NAME: J784S4 HS EVM (R5F)
>>      > -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM 
>> (R5F core)
>>      > -
>>      > -require conf/machine/include/k3r5.inc
>>      > -
>>      > -SYSFW_SOC = "j784s4"
>>      > -SYSFW_CONFIG = "evm"
>>      > -SYSFW_SUFFIX = "hs"
>>      > -
>>      > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf 
>> b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>      > index 8fa1c1fd..42468088 100644
>>      > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>      > +++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>      > @@ -3,3 +3,5 @@
>>      >   #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>>      >
>>      >   require conf/machine/j784s4-evm.conf
>>      > +
>>      > +SYSFW_SUFFIX = "hs"
>>      > diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf 
>> b/meta-ti-bsp/conf/multiconfig/k3r5.conf
>>      > deleted file mode 100644
>>      > index 936bce2f..00000000
>>      > --- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
>>      > +++ /dev/null
>>      > @@ -1,10 +0,0 @@
>>      > -MAINMACHINE := "${MACHINE}"
>>      > -
>>      > -DEPLOY_DIR_IMAGE:k3r5 = 
>> "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
>>      > -
>>      > -MACHINE:append = "-k3r5"
>>      > -TCLIBC = "baremetal"
>>      > -TI_TMPDIR_APPEND ?= "-k3r5"
>>      > -TMPDIR:append = "${TI_TMPDIR_APPEND}"
>>      > -
>>      > -SDKPKGSUFFIX = "k3r5-nativesdk"
>>      > diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>> <http://ti-sci-fw_git.bb> 
>> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>> <http://ti-sci-fw_git.bb>
>>      > index 12292c88..0597d9bb 100644
>>      > --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>> <http://ti-sci-fw_git.bb>
>>      > +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>> <http://ti-sci-fw_git.bb>
>>      > @@ -17,9 +17,6 @@ do_install() {
>>      >   }
>>      >
>>      >   do_deploy(){
>>      > -}
>>      > -
>>      > -do_deploy:k3r5() {
>>      >       install -d ${DEPLOYDIR}/ti-sysfw
>>      >       install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* 
>> ${DEPLOYDIR}/ti-sysfw
>>      >       install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* 
>> ${DEPLOYDIR}/ti-sysfw
>>      > diff --git 
>> a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb 
>> <http://tiboot3-staging_2023.5.bb> 
>> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb 
>> <http://tiboot3-staging_2023.5.bb>
>>      > new file mode 100644
>>      > index 00000000..0f1929b5
>>      > --- /dev/null
>>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb 
>> <http://tiboot3-staging_2023.5.bb>
>>      > @@ -0,0 +1,65 @@
>>      > +require u-boot-ti.inc
>>      > +
>>      > +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if 
>> d.getVar('TI_EXTRAS') else ''}
>>      > +
>>      > +PR = "r0"
>>      > +BRANCH = "ti-u-boot-2023.04"
>>      > +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
>>      > +
>>      > +PROVIDES:remove = "virtual/bootloader"
>>      > +PROVIDES:remove = "u-boot"
>>      > +
>>      > +# Using gcc-cross-arm-native here would have been ideal
>>      > +# as the compiler version would match between R5 and
>>      > +# main ARM core builds. arm-oe-linux-gnueabi-
>>      > +DEPENDS += "gcc-arm-none-eabi-native"
>>      > +
>>      > +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- 
>> CC=arm-none-eabi-gcc"
>>      > +
>>      > +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
>>      > +
>>      > +SPL_SUFFIX = "bin"
>>      > +SPL_BINARY = 
>> "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
>>      > +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
>>      > +UBOOT_SUFFIX = "bin"
>>      > +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>      > +UBOOT_IMAGE = 
>> "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>      > +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>      > +
>>      > +do_compile:append () {
>>      > +     if [ -n "${UBOOT_CONFIG}" ];
>>      > +     then
>>      > +             for config in ${UBOOT_MACHINE}; do
>>      > +                     i=$(expr $i + 1);
>>      > +                     for type in ${UBOOT_CONFIG}; do
>>      > +                             j=$(expr $j + 1);
>>      > +                             if [ $j -eq $i ];
>>      > +                             then
>>      > +                                     if ! [ -L 
>> ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f 
>> ${B}/${config}/${UBOOT_BINARY} ]; then
>>      > +                                             ln -s 
>> ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} 
>> ${B}/${config}/${UBOOT_BINARY}
>>      > +                                     fi
>>      > +                             fi
>>      > +                     done
>>      > +                     unset  j
>>      > +             done
>>      > +             unset  i
>>      > +     else
>>      > +             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
>>      > +                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX} 
>> ${B}/${UBOOT_BINARY}
>>      > +             fi
>>      > +     fi
>>      > +}
>>      > +
>>      > +do_deploy:append () {
>>      > +     for f in ${B}/tiboot3-*.bin; do
>>      > +             if [ -f "$f" ]; then
>>      > +                     install -m 644 $f ${DEPLOYDIR}/
>>      > +             fi
>>      > +     done
>>      > +
>>      > +     for f in ${B}/sysfw*.itb; do
>>      > +             if [ -f "$f" ]; then
>>      > +                     install -m 644 $f ${DEPLOYDIR}/
>>      > +             fi
>>      > +     done
>>      > +}
>>      > diff --git 
>> a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>> <http://u-boot-bb.org_git.bb> 
>> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>> <http://u-boot-bb.org_git.bb>
>>      > index 5bb20213..1ec5f9bf 100644
>>      > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>> <http://u-boot-bb.org_git.bb>
>>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>> <http://u-boot-bb.org_git.bb>
>>      > @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
>>      >   SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>>      >
>>      >   BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
>>      > -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
>>      >   SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
>>      > -SRCREV:beagleplay-k3r5 = 
>> "10afea462ea1113701f6f0f8853fdff985aa275d"
>>      > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc 
>> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>      > index 2f15c4fb..b0f88a5a 100644
>>      > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>      > @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native 
>> python3-pyyaml-native python3-jsonschema-n
>>      >
>>      >   # SYSFW/TIFS Firmware
>>      >   DEPENDS:append:k3 = " ti-sci-fw"
>>      > -DEPENDS:append:k3r5 = " ti-sci-fw"
>>      >
>>      >   DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>>      >
>>      > @@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot"
>>      >
>>      >   # SPL (Second Program Loader) to be loaded over UART
>>      >   SPL_UART_BINARY = "u-boot-spl.bin"
>>      > -SPL_UART_BINARY:k3r5 = ""
>>      >
>>      >   SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
>>      >   SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
>>      > @@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
>>      >   UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
>>      >   UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>>      >
>>      > -do_compile:append:k3r5 () {
>>      > -     if [ -n "${UBOOT_CONFIG}" ];
>>      > -     then
>>      > -             for config in ${UBOOT_MACHINE}; do
>>      > -                     i=$(expr $i + 1);
>>      > -                     for type in ${UBOOT_CONFIG}; do
>>      > -                             j=$(expr $j + 1);
>>      > -                             if [ $j -eq $i ];
>>      > -                             then
>>      > -                                     if ! [ -L 
>> ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f 
>> ${B}/${config}/${UBOOT_BINARY} ]; then
>>      > -                                             ln -s 
>> ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} 
>> ${B}/${config}/${UBOOT_BINARY}
>>      > -                                     fi
>>      > -                             fi
>>      > -                     done
>>      > -                     unset  j
>>      > -             done
>>      > -             unset  i
>>      > -     else
>>      > -             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
>>      > -                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX} 
>> ${B}/${UBOOT_BINARY}
>>      > -             fi
>>      > -     fi
>>      > -}
>>      > -
>>      >   do_install:append () {
>>      >       if [ -n "${UBOOT_CONFIG}" ]
>>      >       then
>>      > @@ -204,20 +178,6 @@ do_install:append () {
>>      >       fi
>>      >   }
>>      >
>>      > -do_deploy:append:k3r5 () {
>>      > -     for f in ${B}/tiboot3-*.bin; do
>>      > -             if [ -f "$f" ]; then
>>      > -                     install -m 644 $f ${DEPLOYDIR}/
>>      > -             fi
>>      > -     done
>>      > -
>>      > -     for f in ${B}/sysfw*.itb; do
>>      > -             if [ -f "$f" ]; then
>>      > -                     install -m 644 $f ${DEPLOYDIR}/
>>      > -             fi
>>      > -     done
>>      > -}
>>      > -
>>      >   do_deploy:append () {
>>      >       if [ -n "${UBOOT_CONFIG}" ]
>>      >       then
>>
>>     --     Ryan Eatmon reatmon@ti.com <mailto:reatmon@ti.com>
>>     -----------------------------------------
>>     Texas Instruments, Inc.  -  LCPD  -  MGTS
>>
>>     -=-=-=-=-=-=-=-=-=-=-=-
>>     Links: You receive all messages sent to this group.
>>     View/Reply Online (#17353): 
>> https://lists.yoctoproject.org/g/meta-ti/message/17353 
>> <https://lists.yoctoproject.org/g/meta-ti/message/17353>
>>     Mute This Topic: 
>> https://lists.yoctoproject.org/mt/103283292/5052612 
>> <https://lists.yoctoproject.org/mt/103283292/5052612>
>>     Group Owner: meta-ti+owner@lists.yoctoproject.org 
>> <mailto:meta-ti%2Bowner@lists.yoctoproject.org>
>>     Unsubscribe: 
>> https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy <https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy> [quaresma.jose@gmail.com <mailto:quaresma.jose@gmail.com>]
>>     -=-=-=-=-=-=-=-=-=-=-=-
>>
>>
>>
>> -- 
>> Best regards,
>>
>> José Quaresma

-- 
Ryan Eatmon                reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
Andrew Davis Dec. 20, 2023, 5:44 p.m. UTC | #6
On 12/20/23 11:40 AM, Ryan Eatmon wrote:
> 
> 
> On 12/20/2023 10:54 AM, Andrew Davis wrote:
>> On 12/20/23 10:43 AM, Jose Quaresma wrote:
>>> Hi Andrew,
>>>
>>> I believe this patchset can help fix some of the remaining issues mainly in the kirstone branch.
>>
>> I hope so, I was thinking of the troubles you have been having when
>> puting this together. (plus several others on E2E with multiconf issues)
>>
>>> I will test it but maybe only next year.
>>
>> This is a very early RFC so no guarantee it even boots on all platforms.
>> Denys and Ryan put a lot of work into keeping multiconf working so just
>> wanted to make sure they are okay with dropping it back out before I do
>> too much work on getting all the exact details right.
>>
>> There is also a change needed up in the meta-arago layer so this all
>> will probably end up targeting only master/scarthgap and not kirkstone.
> 
> What's the change in arago?  Will my test builds even work without that change?
> 

In tisdk-core-bundle the arm32 toolchain is pulled in so tiboot3.bin
can be rebuilt in the SDK. Should be a simple fix, but means tisdk-core-bundle
might not build right now, other images should be fine.

Andrew

> 
>> Andrew
>>
>>>
>>> Jose
>>>
>>> Ryan Eatmon via lists.yoctoproject.org <http://lists.yoctoproject.org> <reatmon=ti.com@lists.yoctoproject.org <mailto:ti.com@lists.yoctoproject.org>> escreveu no dia quarta, 20/12/2023 à(s) 16:14:
>>>
>>>
>>>
>>>     On 12/20/2023 10:07 AM, Andrew Davis wrote:
>>>      > The R5 SPL bootloader is the only software we build using the R5 (arm32)
>>>      > multiconfig environment. Using multiconfig pulls in a large number of
>>>      > build dependencies (see the -native environment in baremetal tmp dir)
>>>      > this increases build time and space.
>>>      >
>>>      > Using multiconfig for a deploy target also leads to several oddities in
>>>      > the bitbake build system forcing use of a non-standard deploy directory
>>>      > and careful checks that no recipe built in both configuration deploy
>>>      > the same files.
>>>      >
>>>      > While I believe we will get more use out of multiconfig for future
>>>      > devices, today let's simplify the K3 build infrastructure here by
>>>      > building R5 SPL like a normal firmware using a foreign targeting cross
>>>      > compiler. This is the technique meta-arm uses to build firmware (see
>>>      > scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware
>>>      > recipe here.
>>>      >
>>>      > With that we can also drop all the related k3r5 multiconfig files and
>>>      > definitions. Do that here.
>>>
>>>     On first glance, this looks good.  Let me do some test builds.
>>>
>>>
>>>      > Signed-off-by: Andrew Davis <afd@ti.com <mailto:afd@ti.com>>
>>>      > ---
>>>      >   meta-ti-bsp/classes/ti-secdev.bbclass         |  3 -
>>>      >   .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
>>>      >   meta-ti-bsp/conf/machine/am62axx-evm.conf     |  5 ++
>>>      >   .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
>>>      >   meta-ti-bsp/conf/machine/am62pxx-evm.conf     |  5 ++
>>>      >   meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
>>>      >   meta-ti-bsp/conf/machine/am62xx-evm.conf      |  5 ++
>>>      >   .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
>>>      >   meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   |  5 ++
>>>      >   .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
>>>      >   meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
>>>      >   meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
>>>      >   meta-ti-bsp/conf/machine/am64xx-evm.conf      |  5 ++
>>>      >   meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
>>>      >   meta-ti-bsp/conf/machine/am65xx-evm.conf      |  5 ++
>>>      >   .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
>>>      >   meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   |  5 ++
>>>      >   .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
>>>      >   meta-ti-bsp/conf/machine/beaglebone-ai64.conf |  5 ++
>>>      >   meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
>>>      >   meta-ti-bsp/conf/machine/beagleplay.conf      |  5 ++
>>>      >   meta-ti-bsp/conf/machine/include/k3.inc       |  4 +-
>>>      >   meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
>>>      >   meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
>>>      >   meta-ti-bsp/conf/machine/j7200-evm.conf       |  5 ++
>>>      >   .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
>>>      >   meta-ti-bsp/conf/machine/j7200-hs-evm.conf    |  5 ++
>>>      >   meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
>>>      >   meta-ti-bsp/conf/machine/j721e-evm.conf       |  5 ++
>>>      >   .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
>>>      >   meta-ti-bsp/conf/machine/j721e-hs-evm.conf    |  3 +-
>>>      >   meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
>>>      >   meta-ti-bsp/conf/machine/j721s2-evm.conf      |  5 ++
>>>      >   .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
>>>      >   meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   |  2 +
>>>      >   meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
>>>      >   meta-ti-bsp/conf/machine/j784s4-evm.conf      |  5 ++
>>>      >   .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
>>>      >   meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   |  2 +
>>>      >   meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
>>>      >   .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>    |  3 -
>>>      >   .../u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>          | 65 +++++++++++++++++++
>>>      >   .../recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>   |  2 -
>>>      >   meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 ------------
>>>      >   44 files changed, 152 insertions(+), 303 deletions(-)
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>>      >   delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
>>>      >   create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>>>      >
>>>      > diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
>>>      > index b3d70e5c..18d15269 100644
>>>      > --- a/meta-ti-bsp/classes/ti-secdev.bbclass
>>>      > +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
>>>      > @@ -2,14 +2,11 @@
>>>      >
>>>      >   # K3 SECDEV scripts use OpenSSL
>>>      >   DEPENDS:append:k3 = " openssl-native"
>>>      > -DEPENDS:append:k3r5 = " openssl-native"
>>>      >
>>>      >   # Use package version of TI SECDEV for K3 if one is not provided through the environment
>>>      >   DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>>>      > -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>>>      >   TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
>>>      >   TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>>>      > -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>>>      >
>>>      >   # For non-K3 we require the SECDEV tools be provided through the environment with the following vars
>>>      >   TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 2af3317e..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: AM62A HS-FS EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "am62ax"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>      > -
>>>      > -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf b/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>>      > index 22f61401..59884629 100644
>>>      > --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>>      > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-am62a7-sk.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "am62ax"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 36915381..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,12 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: AM62PX EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -require conf/machine/include/ti-extras.inc
>>>      > -
>>>      > -SYSFW_SOC = "am62px"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>      > -
>>>      > -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>>      > index d7c9f589..116d819b 100644
>>>      > --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>>      > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-am62p5-sk.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "am62px"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "am62px_evm_a53_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 548369ca..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,12 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: AM62XX EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -require conf/machine/include/ti-extras.inc
>>>      > -
>>>      > -SYSFW_SOC = "am62x"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>      > -
>>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf b/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>>      > index fadbc6f4..6f234811 100644
>>>      > --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>>      > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-am625-sk.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "am62x"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index aa9422cd..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: AM62XX LP GP EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "am62x"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>      > -
>>>      > -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>>      > index 229b74bc..e33b60e2 100644
>>>      > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>>      > @@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-am62-lp-sk.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "am62x"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
>>>      >   UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 0daff2b9..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,16 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: AM62XX SIP EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "am62x"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>      > -
>>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>>      > -
>>>      > -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
>>>      > -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
>>>      > -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
>>>      > -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>>      > index b5dd18f1..2e077f75 100644
>>>      > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>>      > @@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-am625-sk.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "am62x"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>>      > +
>>>      > +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
>>>      > +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
>>>      > +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
>>>      > +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index e932928a..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: AM64xx EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "am64x_sr2"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>      > -
>>>      > -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf b/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>>      > index c6ba2a87..dc21c174 100644
>>>      > --- a/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>>      > @@ -4,4 +4,9 @@
>>>      >
>>>      >   require conf/machine/include/am64xx.inc
>>>      >
>>>      > +SYSFW_SOC = "am64x_sr2"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>      > +
>>>      >   UBOOT_MACHINE = "am64x_evm_a53_defconfig"
>>>      > +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 8744ac3e..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: AM65xx EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "am65x_sr2"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "gp"
>>>      > -
>>>      > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf b/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>>      > index f6eb6f0c..9b050b03 100644
>>>      > --- a/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>>      > @@ -4,6 +4,11 @@
>>>      >
>>>      >   require conf/machine/include/am65xx.inc
>>>      >
>>>      > +SYSFW_SOC = "am65x_sr2"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "gp"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>>>      >
>>>      >   MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 337c8413..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: AM65xx HS EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "am65x_sr2"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs"
>>>      > -
>>>      > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>>      > index f8221f31..4164ae53 100644
>>>      > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>>      > @@ -4,4 +4,9 @@
>>>      >
>>>      >   require conf/machine/include/am65xx.inc
>>>      >
>>>      > +SYSFW_SOC = "am65x_sr2"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "hs"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index b893f380..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,17 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: BeagleBone AI-64 (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j721e"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "gp"
>>>      > -
>>>      > -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
>>>      > -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>>      > -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
>>>      > -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>>      > -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>>      > -
>>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>>      > index e529f565..bad86a22 100644
>>>      > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>>      > @@ -4,6 +4,11 @@
>>>      >
>>>      >   require conf/machine/include/j721e.inc
>>>      >
>>>      > +SYSFW_SOC = "j721e"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "gp"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "j721e_evm_a72_config"
>>>      >
>>>      >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
>>>      > diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index c40615c9..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,14 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: BeaglePlay (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org <http://u-boot-bb.org>"
>>>      > -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org <http://u-boot-bb.org>"
>>>      > -
>>>      > -SYSFW_SOC = "am62x"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "gp"
>>>      > -
>>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf b/meta-ti-bsp/conf/machine/beagleplay.conf
>>>      > index ac4a202a..312fc503 100644
>>>      > --- a/meta-ti-bsp/conf/machine/beagleplay.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/beagleplay.conf
>>>      > @@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1"
>>>      >
>>>      >   OPTEEMACHINE = "k3-am62x"
>>>      >
>>>      > +SYSFW_SOC = "am62x"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "gp"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>>      >
>>>      >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org <http://linux-bb.org>"
>>>      > diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
>>>      > index 2415f0ba..84feee08 100644
>>>      > --- a/meta-ti-bsp/conf/machine/include/k3.inc
>>>      > +++ b/meta-ti-bsp/conf/machine/include/k3.inc
>>>      > @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>>>      >
>>>      >   require conf/machine/include/arm/arch-arm64.inc
>>>      >
>>>      > -BBMULTICONFIG += "k3r5"
>>>      > -
>>>      >   # Increase this everytime you change something in the kernel
>>>      >   MACHINE_KERNEL_PR = "r0"
>>>      >
>>>      > @@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi"
>>>      >   WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in <http://sdimage-2part-efi.wks.in>", "sdimage-2part.wks", d)}"
>>>      >
>>>      >   do_image_wic[depends] += "virtual/bootloader:do_deploy"
>>>      > -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
>>>      > +do_image[depends] += "tiboot3-staging:do_deploy"
>>>      >
>>>      >   SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
>>>      >   SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
>>>      > diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
>>>      > deleted file mode 100644
>>>      > index 63267a5e..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
>>>      > +++ /dev/null
>>>      > @@ -1,27 +0,0 @@
>>>      > -# TI K3 Armv7 profile for Cortex-R5F cores
>>>      > -
>>>      > -require conf/machine/include/ti-soc.inc
>>>      > -SOC_FAMILY:append = ":k3r5"
>>>      > -
>>>      > -# The closest of existing tunes for Cortex-R5F
>>>      > -DEFAULTTUNE = "armv7athf"
>>>      > -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
>>>      > -
>>>      > -# R5 runs early bootloader and loads SYSFW
>>>      > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst>
>>>      > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst>
>>>      > -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst>
>>>      > -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
>>>      > -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
>>>      > -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
>>>      > -
>>>      > -SPL_SUFFIX = "bin"
>>>      > -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
>>>      > -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
>>>      > -UBOOT_SUFFIX = "bin"
>>>      > -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>>      > -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>>      > -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>>      > -
>>>      > -PACKAGECONFIG:pn-u-boot-ti-staging = ""
>>>      > -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
>>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 68061883..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: J7200 EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j7200"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "gp"
>>>      > -
>>>      > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf
>>>      > index dff1da69..e733d15a 100644
>>>      > --- a/meta-ti-bsp/conf/machine/j7200-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
>>>      > @@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-j7200-common-proc-board.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "j7200"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "gp"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "j7200_evm_a72_config"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 1922d5c8..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: J7200 HS EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j7200_sr2"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs"
>>>      > -
>>>      > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>>      > index 54fd2b4a..fc33106c 100644
>>>      > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>>      > @@ -4,4 +4,9 @@
>>>      >
>>>      >   require conf/machine/j7200-evm.conf
>>>      >
>>>      > +SYSFW_SOC = "j7200_sr2"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "hs"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "j7200_evm_a72_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 070bf7aa..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: J721e EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j721e"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "gp"
>>>      > -
>>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf b/meta-ti-bsp/conf/machine/j721e-evm.conf
>>>      > index 5e1f6dca..ca23e3e3 100644
>>>      > --- a/meta-ti-bsp/conf/machine/j721e-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
>>>      > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-j721e-sk.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "j721e"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "gp"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "j721e_evm_a72_config"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 7904c660..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: J721e HS EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j721e_sr1_1"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs"
>>>      > -
>>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>>      > index 441ca169..3d4bedb6 100644
>>>      > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>>      > @@ -4,4 +4,5 @@
>>>      >
>>>      >   require conf/machine/j721e-evm.conf
>>>      >
>>>      > -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
>>>      > +SYSFW_SOC = "j721e_sr1_1"
>>>      > +SYSFW_SUFFIX = "hs"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 508e96e5..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: J721S2 EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j721s2"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "gp"
>>>      > -
>>>      > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf b/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>>      > index ecb1836f..63d86af0 100644
>>>      > --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>>      > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-j721s2-common-proc-board.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "j721s2"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "gp"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 58cd92c4..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: J721S2 HS EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j721s2"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs"
>>>      > -
>>>      > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>>      > index 4cf32a28..1129a189 100644
>>>      > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>>      > @@ -3,3 +3,5 @@
>>>      >   #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>>>      >
>>>      >   require conf/machine/j721s2-evm.conf
>>>      > +
>>>      > +SYSFW_SUFFIX = "hs"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 04feebc6..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: J784S4 EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j784s4"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "gp"
>>>      > -
>>>      > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf b/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>>      > index 40a63651..a242ef8a 100644
>>>      > --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>>      > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>>>      >       ti/k3-j784s4-evm.dtb \
>>>      >   "
>>>      >
>>>      > +SYSFW_SOC = "j784s4"
>>>      > +SYSFW_CONFIG = "evm"
>>>      > +SYSFW_SUFFIX = "gp"
>>>      > +
>>>      > +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
>>>      >   UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 80a228a0..00000000
>>>      > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,11 +0,0 @@
>>>      > -#@TYPE: Machine
>>>      > -#@NAME: J784S4 HS EVM (R5F)
>>>      > -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
>>>      > -
>>>      > -require conf/machine/include/k3r5.inc
>>>      > -
>>>      > -SYSFW_SOC = "j784s4"
>>>      > -SYSFW_CONFIG = "evm"
>>>      > -SYSFW_SUFFIX = "hs"
>>>      > -
>>>      > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
>>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>>      > index 8fa1c1fd..42468088 100644
>>>      > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>>      > +++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>>      > @@ -3,3 +3,5 @@
>>>      >   #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>>>      >
>>>      >   require conf/machine/j784s4-evm.conf
>>>      > +
>>>      > +SYSFW_SUFFIX = "hs"
>>>      > diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf b/meta-ti-bsp/conf/multiconfig/k3r5.conf
>>>      > deleted file mode 100644
>>>      > index 936bce2f..00000000
>>>      > --- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
>>>      > +++ /dev/null
>>>      > @@ -1,10 +0,0 @@
>>>      > -MAINMACHINE := "${MACHINE}"
>>>      > -
>>>      > -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
>>>      > -
>>>      > -MACHINE:append = "-k3r5"
>>>      > -TCLIBC = "baremetal"
>>>      > -TI_TMPDIR_APPEND ?= "-k3r5"
>>>      > -TMPDIR:append = "${TI_TMPDIR_APPEND}"
>>>      > -
>>>      > -SDKPKGSUFFIX = "k3r5-nativesdk"
>>>      > diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
>>>      > index 12292c88..0597d9bb 100644
>>>      > --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
>>>      > +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb <http://ti-sci-fw_git.bb>
>>>      > @@ -17,9 +17,6 @@ do_install() {
>>>      >   }
>>>      >
>>>      >   do_deploy(){
>>>      > -}
>>>      > -
>>>      > -do_deploy:k3r5() {
>>>      >       install -d ${DEPLOYDIR}/ti-sysfw
>>>      >       install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
>>>      >       install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
>>>      > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>>>      > new file mode 100644
>>>      > index 00000000..0f1929b5
>>>      > --- /dev/null
>>>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb <http://tiboot3-staging_2023.5.bb>
>>>      > @@ -0,0 +1,65 @@
>>>      > +require u-boot-ti.inc
>>>      > +
>>>      > +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
>>>      > +
>>>      > +PR = "r0"
>>>      > +BRANCH = "ti-u-boot-2023.04"
>>>      > +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
>>>      > +
>>>      > +PROVIDES:remove = "virtual/bootloader"
>>>      > +PROVIDES:remove = "u-boot"
>>>      > +
>>>      > +# Using gcc-cross-arm-native here would have been ideal
>>>      > +# as the compiler version would match between R5 and
>>>      > +# main ARM core builds. arm-oe-linux-gnueabi-
>>>      > +DEPENDS += "gcc-arm-none-eabi-native"
>>>      > +
>>>      > +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
>>>      > +
>>>      > +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
>>>      > +
>>>      > +SPL_SUFFIX = "bin"
>>>      > +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
>>>      > +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
>>>      > +UBOOT_SUFFIX = "bin"
>>>      > +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>>      > +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>>      > +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>>      > +
>>>      > +do_compile:append () {
>>>      > +     if [ -n "${UBOOT_CONFIG}" ];
>>>      > +     then
>>>      > +             for config in ${UBOOT_MACHINE}; do
>>>      > +                     i=$(expr $i + 1);
>>>      > +                     for type in ${UBOOT_CONFIG}; do
>>>      > +                             j=$(expr $j + 1);
>>>      > +                             if [ $j -eq $i ];
>>>      > +                             then
>>>      > +                                     if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
>>>      > +                                             ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
>>>      > +                                     fi
>>>      > +                             fi
>>>      > +                     done
>>>      > +                     unset  j
>>>      > +             done
>>>      > +             unset  i
>>>      > +     else
>>>      > +             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
>>>      > +                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
>>>      > +             fi
>>>      > +     fi
>>>      > +}
>>>      > +
>>>      > +do_deploy:append () {
>>>      > +     for f in ${B}/tiboot3-*.bin; do
>>>      > +             if [ -f "$f" ]; then
>>>      > +                     install -m 644 $f ${DEPLOYDIR}/
>>>      > +             fi
>>>      > +     done
>>>      > +
>>>      > +     for f in ${B}/sysfw*.itb; do
>>>      > +             if [ -f "$f" ]; then
>>>      > +                     install -m 644 $f ${DEPLOYDIR}/
>>>      > +             fi
>>>      > +     done
>>>      > +}
>>>      > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
>>>      > index 5bb20213..1ec5f9bf 100644
>>>      > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
>>>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb <http://u-boot-bb.org_git.bb>
>>>      > @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
>>>      >   SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>>>      >
>>>      >   BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
>>>      > -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
>>>      >   SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
>>>      > -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
>>>      > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>>      > index 2f15c4fb..b0f88a5a 100644
>>>      > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>>      > @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n
>>>      >
>>>      >   # SYSFW/TIFS Firmware
>>>      >   DEPENDS:append:k3 = " ti-sci-fw"
>>>      > -DEPENDS:append:k3r5 = " ti-sci-fw"
>>>      >
>>>      >   DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>>>      >
>>>      > @@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot"
>>>      >
>>>      >   # SPL (Second Program Loader) to be loaded over UART
>>>      >   SPL_UART_BINARY = "u-boot-spl.bin"
>>>      > -SPL_UART_BINARY:k3r5 = ""
>>>      >
>>>      >   SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
>>>      >   SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
>>>      > @@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
>>>      >   UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
>>>      >   UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>>>      >
>>>      > -do_compile:append:k3r5 () {
>>>      > -     if [ -n "${UBOOT_CONFIG}" ];
>>>      > -     then
>>>      > -             for config in ${UBOOT_MACHINE}; do
>>>      > -                     i=$(expr $i + 1);
>>>      > -                     for type in ${UBOOT_CONFIG}; do
>>>      > -                             j=$(expr $j + 1);
>>>      > -                             if [ $j -eq $i ];
>>>      > -                             then
>>>      > -                                     if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
>>>      > -                                             ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
>>>      > -                                     fi
>>>      > -                             fi
>>>      > -                     done
>>>      > -                     unset  j
>>>      > -             done
>>>      > -             unset  i
>>>      > -     else
>>>      > -             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
>>>      > -                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
>>>      > -             fi
>>>      > -     fi
>>>      > -}
>>>      > -
>>>      >   do_install:append () {
>>>      >       if [ -n "${UBOOT_CONFIG}" ]
>>>      >       then
>>>      > @@ -204,20 +178,6 @@ do_install:append () {
>>>      >       fi
>>>      >   }
>>>      >
>>>      > -do_deploy:append:k3r5 () {
>>>      > -     for f in ${B}/tiboot3-*.bin; do
>>>      > -             if [ -f "$f" ]; then
>>>      > -                     install -m 644 $f ${DEPLOYDIR}/
>>>      > -             fi
>>>      > -     done
>>>      > -
>>>      > -     for f in ${B}/sysfw*.itb; do
>>>      > -             if [ -f "$f" ]; then
>>>      > -                     install -m 644 $f ${DEPLOYDIR}/
>>>      > -             fi
>>>      > -     done
>>>      > -}
>>>      > -
>>>      >   do_deploy:append () {
>>>      >       if [ -n "${UBOOT_CONFIG}" ]
>>>      >       then
>>>
>>>     --     Ryan Eatmon reatmon@ti.com <mailto:reatmon@ti.com>
>>>     -----------------------------------------
>>>     Texas Instruments, Inc.  -  LCPD  -  MGTS
>>>
>>>     -=-=-=-=-=-=-=-=-=-=-=-
>>>     Links: You receive all messages sent to this group.
>>>     View/Reply Online (#17353): https://lists.yoctoproject.org/g/meta-ti/message/17353 <https://lists.yoctoproject.org/g/meta-ti/message/17353>
>>>     Mute This Topic: https://lists.yoctoproject.org/mt/103283292/5052612 <https://lists.yoctoproject.org/mt/103283292/5052612>
>>>     Group Owner: meta-ti+owner@lists.yoctoproject.org <mailto:meta-ti%2Bowner@lists.yoctoproject.org>
>>>     Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy <https://lists.yoctoproject.org/g/meta-ti/leave/11369865/5052612/926574700/xyzzy> [quaresma.jose@gmail.com <mailto:quaresma.jose@gmail.com>]
>>>     -=-=-=-=-=-=-=-=-=-=-=-
>>>
>>>
>>>
>>> -- 
>>> Best regards,
>>>
>>> José Quaresma
>
Max Krummenacher Dec. 20, 2023, 6:56 p.m. UTC | #7
On Wed, Dec 20, 2023 at 10:07:37AM -0600, Andrew Davis wrote:
> The R5 SPL bootloader is the only software we build using the R5 (arm32)
> multiconfig environment. Using multiconfig pulls in a large number of
> build dependencies (see the -native environment in baremetal tmp dir)
> this increases build time and space.
> 
> Using multiconfig for a deploy target also leads to several oddities in
> the bitbake build system forcing use of a non-standard deploy directory
> and careful checks that no recipe built in both configuration deploy
> the same files.
> 
> While I believe we will get more use out of multiconfig for future
> devices, today let's simplify the K3 build infrastructure here by
> building R5 SPL like a normal firmware using a foreign targeting cross
> compiler. This is the technique meta-arm uses to build firmware (see
> scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware
> recipe here.
> 
> With that we can also drop all the related k3r5 multiconfig files and
> definitions. Do that here.
>
Looks like this would have avoided some of the pain to get our master CI
build again. ;-)
Looking forward to it.

Nitpick: The new recipe has a fancy version:
tiboot3-staging_2023.5.bb

Thanks
Max
 
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>  meta-ti-bsp/classes/ti-secdev.bbclass         |  3 -
>  .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
>  meta-ti-bsp/conf/machine/am62axx-evm.conf     |  5 ++
>  .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
>  meta-ti-bsp/conf/machine/am62pxx-evm.conf     |  5 ++
>  meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
>  meta-ti-bsp/conf/machine/am62xx-evm.conf      |  5 ++
>  .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
>  meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   |  5 ++
>  .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
>  meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
>  meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
>  meta-ti-bsp/conf/machine/am64xx-evm.conf      |  5 ++
>  meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
>  meta-ti-bsp/conf/machine/am65xx-evm.conf      |  5 ++
>  .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
>  meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   |  5 ++
>  .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
>  meta-ti-bsp/conf/machine/beaglebone-ai64.conf |  5 ++
>  meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
>  meta-ti-bsp/conf/machine/beagleplay.conf      |  5 ++
>  meta-ti-bsp/conf/machine/include/k3.inc       |  4 +-
>  meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
>  meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
>  meta-ti-bsp/conf/machine/j7200-evm.conf       |  5 ++
>  .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
>  meta-ti-bsp/conf/machine/j7200-hs-evm.conf    |  5 ++
>  meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
>  meta-ti-bsp/conf/machine/j721e-evm.conf       |  5 ++
>  .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
>  meta-ti-bsp/conf/machine/j721e-hs-evm.conf    |  3 +-
>  meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
>  meta-ti-bsp/conf/machine/j721s2-evm.conf      |  5 ++
>  .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
>  meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   |  2 +
>  meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
>  meta-ti-bsp/conf/machine/j784s4-evm.conf      |  5 ++
>  .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
>  meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   |  2 +
>  meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
>  .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb    |  3 -
>  .../u-boot/tiboot3-staging_2023.5.bb          | 65 +++++++++++++++++++
>  .../recipes-bsp/u-boot/u-boot-bb.org_git.bb   |  2 -
>  meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 ------------
>  44 files changed, 152 insertions(+), 303 deletions(-)
>  delete mode 100644 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
>  delete mode 100644 meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>  delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
>  create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> 
> diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
> index b3d70e5c..18d15269 100644
> --- a/meta-ti-bsp/classes/ti-secdev.bbclass
> +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
> @@ -2,14 +2,11 @@
>  
>  # K3 SECDEV scripts use OpenSSL
>  DEPENDS:append:k3 = " openssl-native"
> -DEPENDS:append:k3r5 = " openssl-native"
>  
>  # Use package version of TI SECDEV for K3 if one is not provided through the environment
>  DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
> -DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>  TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
>  TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
> -TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>  
>  # For non-K3 we require the SECDEV tools be provided through the environment with the following vars
>  TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
> diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> deleted file mode 100644
> index 2af3317e..00000000
> --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62A HS-FS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62ax"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> index 22f61401..59884629 100644
> --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
> @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>      ti/k3-am62a7-sk.dtb \
>  "
>  
> +SYSFW_SOC = "am62ax"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
>  UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> deleted file mode 100644
> index 36915381..00000000
> --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62PX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62px"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> index d7c9f589..116d819b 100644
> --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
> @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>      ti/k3-am62p5-sk.dtb \
>  "
>  
> +SYSFW_SOC = "am62px"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
>  UBOOT_MACHINE = "am62px_evm_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> deleted file mode 100644
> index 548369ca..00000000
> --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -require conf/machine/include/ti-extras.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> index fadbc6f4..6f234811 100644
> --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
> @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>      ti/k3-am625-sk.dtb \
>  "
>  
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>  UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> deleted file mode 100644
> index aa9422cd..00000000
> --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX LP GP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> index 229b74bc..e33b60e2 100644
> --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
> @@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \
>      ti/k3-am62-lp-sk.dtb \
>  "
>  
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
>  UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> deleted file mode 100644
> index 0daff2b9..00000000
> --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
> +++ /dev/null
> @@ -1,16 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM62XX SIP EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> -
> -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
> -# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
> diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> index b5dd18f1..2e077f75 100644
> --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
> @@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \
>      ti/k3-am625-sk.dtb \
>  "
>  
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>  UBOOT_MACHINE = "am62x_evm_a53_defconfig"
> +
> +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
> +# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
> +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
> +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
> diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> deleted file mode 100644
> index e932928a..00000000
> --- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM64xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am64x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs-fs"
> -
> -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> index c6ba2a87..dc21c174 100644
> --- a/meta-ti-bsp/conf/machine/am64xx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
> @@ -4,4 +4,9 @@
>  
>  require conf/machine/include/am64xx.inc
>  
> +SYSFW_SOC = "am64x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs-fs"
> +
>  UBOOT_MACHINE = "am64x_evm_a53_defconfig"
> +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> deleted file mode 100644
> index 8744ac3e..00000000
> --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> index f6eb6f0c..9b050b03 100644
> --- a/meta-ti-bsp/conf/machine/am65xx-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
> @@ -4,6 +4,11 @@
>  
>  require conf/machine/include/am65xx.inc
>  
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>  UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>  
>  MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
> diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> deleted file mode 100644
> index 337c8413..00000000
> --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: AM65xx HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "am65x_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> index f8221f31..4164ae53 100644
> --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
> @@ -4,4 +4,9 @@
>  
>  require conf/machine/include/am65xx.inc
>  
> +SYSFW_SOC = "am65x_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>  UBOOT_MACHINE = "am65x_evm_a53_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> deleted file mode 100644
> index b893f380..00000000
> --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
> +++ /dev/null
> @@ -1,17 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeagleBone AI-64 (R5F)
> -#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
> -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> index e529f565..bad86a22 100644
> --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> +++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
> @@ -4,6 +4,11 @@
>  
>  require conf/machine/include/j721e.inc
>  
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>  UBOOT_MACHINE = "j721e_evm_a72_config"
>  
>  PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
> diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> deleted file mode 100644
> index c40615c9..00000000
> --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: BeaglePlay (R5F)
> -#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
> -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
> -
> -SYSFW_SOC = "am62x"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf b/meta-ti-bsp/conf/machine/beagleplay.conf
> index ac4a202a..312fc503 100644
> --- a/meta-ti-bsp/conf/machine/beagleplay.conf
> +++ b/meta-ti-bsp/conf/machine/beagleplay.conf
> @@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1"
>  
>  OPTEEMACHINE = "k3-am62x"
>  
> +SYSFW_SOC = "am62x"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>  UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>  
>  PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
> diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
> index 2415f0ba..84feee08 100644
> --- a/meta-ti-bsp/conf/machine/include/k3.inc
> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>  
>  require conf/machine/include/arm/arch-arm64.inc
>  
> -BBMULTICONFIG += "k3r5"
> -
>  # Increase this everytime you change something in the kernel
>  MACHINE_KERNEL_PR = "r0"
>  
> @@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi"
>  WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}"
>  
>  do_image_wic[depends] += "virtual/bootloader:do_deploy"
> -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
> +do_image[depends] += "tiboot3-staging:do_deploy"
>  
>  SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
>  SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
> diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
> deleted file mode 100644
> index 63267a5e..00000000
> --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
> +++ /dev/null
> @@ -1,27 +0,0 @@
> -# TI K3 Armv7 profile for Cortex-R5F cores
> -
> -require conf/machine/include/ti-soc.inc
> -SOC_FAMILY:append = ":k3r5"
> -
> -# The closest of existing tunes for Cortex-R5F
> -DEFAULTTUNE = "armv7athf"
> -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
> -
> -# R5 runs early bootloader and loads SYSFW
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst
> -# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst
> -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
> -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
> -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
> -
> -SPL_SUFFIX = "bin"
> -SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> -UBOOT_SUFFIX = "bin"
> -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> -UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> -
> -PACKAGECONFIG:pn-u-boot-ti-staging = ""
> -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
> diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> deleted file mode 100644
> index 68061883..00000000
> --- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf
> index dff1da69..e733d15a 100644
> --- a/meta-ti-bsp/conf/machine/j7200-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
> @@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \
>      ti/k3-j7200-common-proc-board.dtb \
>  "
>  
> +SYSFW_SOC = "j7200"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>  UBOOT_MACHINE = "j7200_evm_a72_config"
> diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> deleted file mode 100644
> index 1922d5c8..00000000
> --- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J7200 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j7200_sr2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> index 54fd2b4a..fc33106c 100644
> --- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
> @@ -4,4 +4,9 @@
>  
>  require conf/machine/j7200-evm.conf
>  
> +SYSFW_SOC = "j7200_sr2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "hs"
> +
> +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>  UBOOT_MACHINE = "j7200_evm_a72_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> deleted file mode 100644
> index 070bf7aa..00000000
> --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf b/meta-ti-bsp/conf/machine/j721e-evm.conf
> index 5e1f6dca..ca23e3e3 100644
> --- a/meta-ti-bsp/conf/machine/j721e-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
> @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>      ti/k3-j721e-sk.dtb \
>  "
>  
> +SYSFW_SOC = "j721e"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>  UBOOT_MACHINE = "j721e_evm_a72_config"
> diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> deleted file mode 100644
> index 7904c660..00000000
> --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721e HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721e_sr1_1"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> index 441ca169..3d4bedb6 100644
> --- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
> @@ -4,4 +4,5 @@
>  
>  require conf/machine/j721e-evm.conf
>  
> -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
> +SYSFW_SOC = "j721e_sr1_1"
> +SYSFW_SUFFIX = "hs"
> diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> deleted file mode 100644
> index 508e96e5..00000000
> --- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> index ecb1836f..63d86af0 100644
> --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
> @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>      ti/k3-j721s2-common-proc-board.dtb \
>  "
>  
> +SYSFW_SOC = "j721s2"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
>  UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> deleted file mode 100644
> index 58cd92c4..00000000
> --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J721S2 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j721s2"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> index 4cf32a28..1129a189 100644
> --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
> @@ -3,3 +3,5 @@
>  #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>  
>  require conf/machine/j721s2-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> deleted file mode 100644
> index 04feebc6..00000000
> --- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "gp"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> index 40a63651..a242ef8a 100644
> --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf
> @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>      ti/k3-j784s4-evm.dtb \
>  "
>  
> +SYSFW_SOC = "j784s4"
> +SYSFW_CONFIG = "evm"
> +SYSFW_SUFFIX = "gp"
> +
> +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
>  UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> deleted file mode 100644
> index 80a228a0..00000000
> --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
> +++ /dev/null
> @@ -1,11 +0,0 @@
> -#@TYPE: Machine
> -#@NAME: J784S4 HS EVM (R5F)
> -#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
> -
> -require conf/machine/include/k3r5.inc
> -
> -SYSFW_SOC = "j784s4"
> -SYSFW_CONFIG = "evm"
> -SYSFW_SUFFIX = "hs"
> -
> -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
> diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> index 8fa1c1fd..42468088 100644
> --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> +++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
> @@ -3,3 +3,5 @@
>  #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>  
>  require conf/machine/j784s4-evm.conf
> +
> +SYSFW_SUFFIX = "hs"
> diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf b/meta-ti-bsp/conf/multiconfig/k3r5.conf
> deleted file mode 100644
> index 936bce2f..00000000
> --- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -MAINMACHINE := "${MACHINE}"
> -
> -DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
> -
> -MACHINE:append = "-k3r5"
> -TCLIBC = "baremetal"
> -TI_TMPDIR_APPEND ?= "-k3r5"
> -TMPDIR:append = "${TI_TMPDIR_APPEND}"
> -
> -SDKPKGSUFFIX = "k3r5-nativesdk"
> diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> index 12292c88..0597d9bb 100644
> --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
> @@ -17,9 +17,6 @@ do_install() {
>  }
>  
>  do_deploy(){
> -}
> -
> -do_deploy:k3r5() {
>  	install -d ${DEPLOYDIR}/ti-sysfw
>  	install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
>  	install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> new file mode 100644
> index 00000000..0f1929b5
> --- /dev/null
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
> @@ -0,0 +1,65 @@
> +require u-boot-ti.inc
> +
> +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
> +
> +PR = "r0"
> +BRANCH = "ti-u-boot-2023.04"
> +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
> +
> +PROVIDES:remove = "virtual/bootloader"
> +PROVIDES:remove = "u-boot"
> +
> +# Using gcc-cross-arm-native here would have been ideal
> +# as the compiler version would match between R5 and
> +# main ARM core builds. arm-oe-linux-gnueabi-
> +DEPENDS += "gcc-arm-none-eabi-native"
> +
> +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
> +
> +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
> +
> +SPL_SUFFIX = "bin"
> +SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
> +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
> +UBOOT_SUFFIX = "bin"
> +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
> +UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
> +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
> +
> +do_compile:append () {
> +	if [ -n "${UBOOT_CONFIG}" ];
> +	then
> +		for config in ${UBOOT_MACHINE}; do
> +			i=$(expr $i + 1);
> +			for type in ${UBOOT_CONFIG}; do
> +				j=$(expr $j + 1);
> +				if [ $j -eq $i ];
> +				then
> +					if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> +						ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> +					fi
> +				fi
> +			done
> +			unset  j
> +		done
> +		unset  i
> +	else
> +		if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> +			ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> +		fi
> +	fi
> +}
> +
> +do_deploy:append () {
> +	for f in ${B}/tiboot3-*.bin; do
> +		if [ -f "$f" ]; then
> +			install -m 644 $f ${DEPLOYDIR}/
> +		fi
> +	done
> +
> +	for f in ${B}/sysfw*.itb; do
> +		if [ -f "$f" ]; then
> +			install -m 644 $f ${DEPLOYDIR}/
> +		fi
> +	done
> +}
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> index 5bb20213..1ec5f9bf 100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
> @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
>  SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>  
>  BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
> -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
>  SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
> -SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
> diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> index 2f15c4fb..b0f88a5a 100644
> --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
> @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n
>  
>  # SYSFW/TIFS Firmware
>  DEPENDS:append:k3 = " ti-sci-fw"
> -DEPENDS:append:k3r5 = " ti-sci-fw"
>  
>  DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>  
> @@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot"
>  
>  # SPL (Second Program Loader) to be loaded over UART
>  SPL_UART_BINARY = "u-boot-spl.bin"
> -SPL_UART_BINARY:k3r5 = ""
>  
>  SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
>  SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
> @@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
>  UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
>  UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>  
> -do_compile:append:k3r5 () {
> -	if [ -n "${UBOOT_CONFIG}" ];
> -	then
> -		for config in ${UBOOT_MACHINE}; do
> -			i=$(expr $i + 1);
> -			for type in ${UBOOT_CONFIG}; do
> -				j=$(expr $j + 1);
> -				if [ $j -eq $i ];
> -				then
> -					if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
> -						ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
> -					fi
> -				fi
> -			done
> -			unset  j
> -		done
> -		unset  i
> -	else
> -		if ! [ -f ${B}/${UBOOT_BINARY} ]; then
> -			ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
> -		fi
> -	fi
> -}
> -
>  do_install:append () {
>  	if [ -n "${UBOOT_CONFIG}" ]
>  	then
> @@ -204,20 +178,6 @@ do_install:append () {
>  	fi
>  }
>  
> -do_deploy:append:k3r5 () {
> -	for f in ${B}/tiboot3-*.bin; do
> -		if [ -f "$f" ]; then
> -			install -m 644 $f ${DEPLOYDIR}/
> -		fi
> -	done
> -
> -	for f in ${B}/sysfw*.itb; do
> -		if [ -f "$f" ]; then
> -			install -m 644 $f ${DEPLOYDIR}/
> -		fi
> -	done
> -}
> -
>  do_deploy:append () {
>  	if [ -n "${UBOOT_CONFIG}" ]
>  	then
> -- 
> 2.39.2
> 
>
Chirag Shilwant Dec. 21, 2023, 2:28 p.m. UTC | #8
Hi Andrew,

On 20/12/23 23:14, Andrew Davis via lists.yoctoproject.org wrote:
> On 12/20/23 11:40 AM, Ryan Eatmon wrote:
>>
>>
>> On 12/20/2023 10:54 AM, Andrew Davis wrote:
>>> On 12/20/23 10:43 AM, Jose Quaresma wrote:
>>>> Hi Andrew,
>>>>
>>>> I believe this patchset can help fix some of the remaining issues 
>>>> mainly in the kirstone branch.
>>>
>>> I hope so, I was thinking of the troubles you have been having when
>>> puting this together. (plus several others on E2E with multiconf 
>>> issues)
>>>
>>>> I will test it but maybe only next year.
>>>
>>> This is a very early RFC so no guarantee it even boots on all 
>>> platforms.
>>> Denys and Ryan put a lot of work into keeping multiconf working so just
>>> wanted to make sure they are okay with dropping it back out before I do
>>> too much work on getting all the exact details right.
>>>
>>> There is also a change needed up in the meta-arago layer so this all
>>> will probably end up targeting only master/scarthgap and not kirkstone.
>>
>> What's the change in arago?  Will my test builds even work without 
>> that change?
>>
>
> In tisdk-core-bundle the arm32 toolchain is pulled in so tiboot3.bin
> can be rebuilt in the SDK. Should be a simple fix, but means 
> tisdk-core-bundle
> might not build right now, other images should be fine.
>
> Andrew
>
>>
>>> Andrew
>>>
>>>>
>>>> Jose
>>>>
>>>> Ryan Eatmon via lists.yoctoproject.org 
>>>> <http://lists.yoctoproject.org> 
>>>> <reatmon=ti.com@lists.yoctoproject.org 
>>>> <mailto:ti.com@lists.yoctoproject.org>> escreveu no dia quarta, 
>>>> 20/12/2023 à(s) 16:14:
>>>>
>>>>
>>>>
>>>>     On 12/20/2023 10:07 AM, Andrew Davis wrote:
>>>>      > The R5 SPL bootloader is the only software we build using 
>>>> the R5 (arm32)
>>>>      > multiconfig environment. Using multiconfig pulls in a large 
>>>> number of
>>>>      > build dependencies (see the -native environment in baremetal 
>>>> tmp dir)
>>>>      > this increases build time and space.
>>>>      >
>>>>      > Using multiconfig for a deploy target also leads to several 
>>>> oddities in
>>>>      > the bitbake build system forcing use of a non-standard 
>>>> deploy directory
>>>>      > and careful checks that no recipe built in both 
>>>> configuration deploy
>>>>      > the same files.
>>>>      >
>>>>      > While I believe we will get more use out of multiconfig for 
>>>> future
>>>>      > devices, today let's simplify the K3 build infrastructure 
>>>> here by
>>>>      > building R5 SPL like a normal firmware using a foreign 
>>>> targeting cross
>>>>      > compiler. This is the technique meta-arm uses to build 
>>>> firmware (see
>>>>      > scp-firmware and trusted-firmware-m recipes). Add a new 
>>>> tiboot3 firmware
>>>>      > recipe here.
>>>>      >
>>>>      > With that we can also drop all the related k3r5 multiconfig 
>>>> files and
>>>>      > definitions. Do that here.
>>>>
>>>>     On first glance, this looks good.  Let me do some test builds.
>>>>
>>>>
>>>>      > Signed-off-by: Andrew Davis <afd@ti.com <mailto:afd@ti.com>>
>>>>      > ---
>>>>      >   meta-ti-bsp/classes/ti-secdev.bbclass         | 3 -
>>>>      >   .../conf/machine/am62axx-evm-k3r5.conf        | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/am62axx-evm.conf     | 5 ++
>>>>      >   .../conf/machine/am62pxx-evm-k3r5.conf        | 12 ----
>>>>      >   meta-ti-bsp/conf/machine/am62pxx-evm.conf     | 5 ++
>>>>      >   meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf | 12 ----
>>>>      >   meta-ti-bsp/conf/machine/am62xx-evm.conf      | 5 ++
>>>>      >   .../conf/machine/am62xx-lp-evm-k3r5.conf      | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/am62xx-lp-evm.conf   | 5 ++
>>>>      >   .../conf/machine/am62xxsip-evm-k3r5.conf      | 16 -----
>>>>      >   meta-ti-bsp/conf/machine/am62xxsip-evm.conf   | 10 +++
>>>>      >   meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/am64xx-evm.conf      | 5 ++
>>>>      >   meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/am65xx-evm.conf      | 5 ++
>>>>      >   .../conf/machine/am65xx-hs-evm-k3r5.conf      | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/am65xx-hs-evm.conf   | 5 ++
>>>>      >   .../conf/machine/beaglebone-ai64-k3r5.conf    | 17 -----
>>>>      >   meta-ti-bsp/conf/machine/beaglebone-ai64.conf | 5 ++
>>>>      >   meta-ti-bsp/conf/machine/beagleplay-k3r5.conf | 14 ----
>>>>      >   meta-ti-bsp/conf/machine/beagleplay.conf      | 5 ++
>>>>      >   meta-ti-bsp/conf/machine/include/k3.inc       | 4 +-
>>>>      >   meta-ti-bsp/conf/machine/include/k3r5.inc     | 27 --------
>>>>      >   meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf  | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/j7200-evm.conf       | 5 ++
>>>>      >   .../conf/machine/j7200-hs-evm-k3r5.conf       | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/j7200-hs-evm.conf    | 5 ++
>>>>      >   meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf  | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/j721e-evm.conf       | 5 ++
>>>>      >   .../conf/machine/j721e-hs-evm-k3r5.conf       | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/j721e-hs-evm.conf    | 3 +-
>>>>      >   meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/j721s2-evm.conf      | 5 ++
>>>>      >   .../conf/machine/j721s2-hs-evm-k3r5.conf      | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/j721s2-hs-evm.conf   | 2 +
>>>>      >   meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/j784s4-evm.conf      | 5 ++
>>>>      >   .../conf/machine/j784s4-hs-evm-k3r5.conf      | 11 ----
>>>>      >   meta-ti-bsp/conf/machine/j784s4-hs-evm.conf   | 2 +
>>>>      >   meta-ti-bsp/conf/multiconfig/k3r5.conf        | 10 ---
>>>>      >   .../recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>>>> <http://ti-sci-fw_git.bb>    |  3 -
>>>>      >   .../u-boot/tiboot3-staging_2023.5.bb 
>>>> <http://tiboot3-staging_2023.5.bb>          | 65 +++++++++++++++++++
>>>>      >   .../recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>>>> <http://u-boot-bb.org_git.bb>   |  2 -
>>>>      >   meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc  | 40 
>>>> ------------
>>>>      >   44 files changed, 152 insertions(+), 303 deletions(-)
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>>>      >   delete mode 100644 meta-ti-bsp/conf/machine/include/k3r5.inc
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>>>      >   delete mode 100644 
>>>> meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>>>      >   delete mode 100644 meta-ti-bsp/conf/multiconfig/k3r5.conf
>>>>      >   create mode 100644 
>>>> meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb 
>>>> <http://tiboot3-staging_2023.5.bb>
>>>>      >
>>>>      > diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass 
>>>> b/meta-ti-bsp/classes/ti-secdev.bbclass
>>>>      > index b3d70e5c..18d15269 100644
>>>>      > --- a/meta-ti-bsp/classes/ti-secdev.bbclass
>>>>      > +++ b/meta-ti-bsp/classes/ti-secdev.bbclass
>>>>      > @@ -2,14 +2,11 @@
>>>>      >
>>>>      >   # K3 SECDEV scripts use OpenSSL
>>>>      >   DEPENDS:append:k3 = " openssl-native"
>>>>      > -DEPENDS:append:k3r5 = " openssl-native"
>>>>      >
>>>>      >   # Use package version of TI SECDEV for K3 if one is not 
>>>> provided through the environment
>>>>      >   DEPENDS:append:k3 = "${@ '' if 
>>>> d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>>>>      > -DEPENDS:append:k3r5 = "${@ '' if 
>>>> d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
>>>>      >   TI_K3_SECDEV_INSTALL_DIR = 
>>>> "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
>>>>      >   TI_SECURE_DEV_PKG:k3 = "${@ 
>>>> d.getVar('TI_SECURE_DEV_PKG_K3') or 
>>>> d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>>>>      > -TI_SECURE_DEV_PKG:k3r5 = "${@ 
>>>> d.getVar('TI_SECURE_DEV_PKG_K3') or 
>>>> d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
>>>>      >
>>>>      >   # For non-K3 we require the SECDEV tools be provided 
>>>> through the environment with the following vars
>>>>      >   TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 2af3317e..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: AM62A HS-FS EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62A EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "am62ax"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>>>      > index 22f61401..59884629 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
>>>>      > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-am62a7-sk.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "am62ax"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 36915381..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,12 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: AM62PX EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62Px EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -require conf/machine/include/ti-extras.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "am62px"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am62px_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>>>      > index d7c9f589..116d819b 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
>>>>      > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-am62p5-sk.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "am62px"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "am62px_evm_a53_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 548369ca..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,12 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: AM62XX EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -require conf/machine/include/ti-extras.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "am62x"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>>>      > index fadbc6f4..6f234811 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
>>>>      > @@ -14,4 +14,9 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-am625-sk.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "am62x"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>>>      > diff --git 
>>>> a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index aa9422cd..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: AM62XX LP GP EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx LP 
>>>> GP EVM (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "am62x"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>>>      > index 229b74bc..e33b60e2 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
>>>>      > @@ -16,4 +16,9 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-am62-lp-sk.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "am62x"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
>>>>      > diff --git 
>>>> a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 0daff2b9..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,16 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: AM62XX SIP EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI AM62xx SIP 
>>>> EVM (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "am62x"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>>>      > -
>>>>      > -# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config 
>>>> fragments which has to be build
>>>>      > -# along with the base defconfig mentioned in UBOOT_MACHINE. 
>>>> Refer u-boot-mergeconfig.inc
>>>>      > -# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
>>>>      > -UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"

Handling u-boot fragments configs was developed considering we have 
separate machine configs.
So different machine config for A53 & R5 was the differentiator to have a
single variable named UBOOT_CONFIG_FRAGMENTS for handling u-boot fragments
in u-boot-mergeconfig.inc- 
https://git.ti.com/cgit/arago-project/meta-ti/tree/meta-ti-bsp/recipes-bsp/u-boot/u-boot-mergeconfig.inc?h=kirkstone
<https://git.ti.com/cgit/arago-project/meta-ti/tree/meta-ti-bsp/recipes-bsp/u-boot/u-boot-mergeconfig.inc?h=kirkstone>With 
single config, a fixed is needed in u-boot-mergeconfig.inc as well.
One way to quickly fix this is maintaining 2 variables.
So something like UBOOT_CONFIG_FRAGMENTS & UBOOT_CONFIG_FRAGMENTS_R5
and updating the u-boot-mergeconfig.inc to handle both the variables.
Not sure if this is the ideal way to do it though.
Currently this logic is used by AM62SIP only but we might have more 
platforms
in future with fragment defconfigs in u-boot.

>>>>      > diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>>>      > index b5dd18f1..2e077f75 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
>>>>      > @@ -13,4 +13,14 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-am625-sk.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "am62x"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>>>      > +
>>>>      > +# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config 
>>>> fragments which has to be build
>>>>      > +# along with the base defconfig mentioned in UBOOT_MACHINE. 
>>>> Refer u-boot-mergeconfig.inc
>>>>      > +# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
>>>>      > +UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index e932928a..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: AM64xx EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI AM64xx EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "am64x_sr2"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs-fs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am64x_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>>>      > index c6ba2a87..dc21c174 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
>>>>      > @@ -4,4 +4,9 @@
>>>>      >
>>>>      >   require conf/machine/include/am64xx.inc
>>>>      >
>>>>      > +SYSFW_SOC = "am64x_sr2"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "hs-fs"
>>>>      > +
>>>>      >   UBOOT_MACHINE = "am64x_evm_a53_defconfig"
>>>>      > +UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 8744ac3e..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: AM65xx EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI AM65xx EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "am65x_sr2"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "gp"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>>>      > index f6eb6f0c..9b050b03 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
>>>>      > @@ -4,6 +4,11 @@
>>>>      >
>>>>      >   require conf/machine/include/am65xx.inc
>>>>      >
>>>>      > +SYSFW_SOC = "am65x_sr2"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "gp"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>>>>      >
>>>>      >   MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += 
>>>> "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
>>>>      > diff --git 
>>>> a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 337c8413..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: AM65xx HS EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI AM65xx HS 
>>>> EVM (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "am65x_sr2"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am65x_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>>>      > index f8221f31..4164ae53 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
>>>>      > @@ -4,4 +4,9 @@
>>>>      >
>>>>      >   require conf/machine/include/am65xx.inc
>>>>      >
>>>>      > +SYSFW_SOC = "am65x_sr2"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "hs"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "am65x_evm_a53_defconfig"
>>>>      > diff --git 
>>>> a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index b893f380..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,17 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: BeagleBone AI-64 (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the BeagleBone 
>>>> AI-64 (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j721e"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "gp"
>>>>      > -
>>>>      > -SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
>>>>      > -SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>>>      > -UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
>>>>      > -UBOOT_IMAGE = 
>>>> "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>>>      > -UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf 
>>>> b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>>>      > index e529f565..bad86a22 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
>>>>      > @@ -4,6 +4,11 @@
>>>>      >
>>>>      >   require conf/machine/include/j721e.inc
>>>>      >
>>>>      > +SYSFW_SOC = "j721e"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "gp"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "j721e_evm_a72_config"
>>>>      >
>>>>      >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org 
>>>> <http://linux-bb.org>"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index c40615c9..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,14 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: BeaglePlay (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the BeaglePlay 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org 
>>>> <http://u-boot-bb.org>"
>>>>      > -PREFERRED_PROVIDER_u-boot = "u-boot-bb.org 
>>>> <http://u-boot-bb.org>"
>>>>      > -
>>>>      > -SYSFW_SOC = "am62x"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "gp"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "am62x_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf 
>>>> b/meta-ti-bsp/conf/machine/beagleplay.conf
>>>>      > index ac4a202a..312fc503 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/beagleplay.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/beagleplay.conf
>>>>      > @@ -18,6 +18,11 @@ TFA_K3_SYSTEM_SUSPEND = "1"
>>>>      >
>>>>      >   OPTEEMACHINE = "k3-am62x"
>>>>      >
>>>>      > +SYSFW_SOC = "am62x"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "gp"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "am62x_evm_a53_defconfig"
>>>>      >
>>>>      >   PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org 
>>>> <http://linux-bb.org>"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/include/k3.inc 
>>>> b/meta-ti-bsp/conf/machine/include/k3.inc
>>>>      > index 2415f0ba..84feee08 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/include/k3.inc
>>>>      > +++ b/meta-ti-bsp/conf/machine/include/k3.inc
>>>>      > @@ -5,8 +5,6 @@ SOC_FAMILY:append = ":k3"
>>>>      >
>>>>      >   require conf/machine/include/arm/arch-arm64.inc
>>>>      >
>>>>      > -BBMULTICONFIG += "k3r5"
>>>>      > -
>>>>      >   # Increase this everytime you change something in the kernel
>>>>      >   MACHINE_KERNEL_PR = "r0"
>>>>      >
>>>>      > @@ -62,7 +60,7 @@ MACHINE_FEATURES += "efi"
>>>>      >   WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", 
>>>> "efi", "sdimage-2part-efi.wks.in 
>>>> <http://sdimage-2part-efi.wks.in>", "sdimage-2part.wks", d)}"
>>>>      >
>>>>      >   do_image_wic[depends] += "virtual/bootloader:do_deploy"
>>>>      > -do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
>>>>      > +do_image[depends] += "tiboot3-staging:do_deploy"
>>>>      >
>>>>      >   SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
>>>>      >   SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc 
>>>> b/meta-ti-bsp/conf/machine/include/k3r5.inc
>>>>      > deleted file mode 100644
>>>>      > index 63267a5e..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/include/k3r5.inc
>>>>      > +++ /dev/null
>>>>      > @@ -1,27 +0,0 @@
>>>>      > -# TI K3 Armv7 profile for Cortex-R5F cores
>>>>      > -
>>>>      > -require conf/machine/include/ti-soc.inc
>>>>      > -SOC_FAMILY:append = ":k3r5"
>>>>      > -
>>>>      > -# The closest of existing tunes for Cortex-R5F
>>>>      > -DEFAULTTUNE = "armv7athf"
>>>>      > -require conf/machine/include/arm/armv7a/tune-cortexa8.inc
>>>>      > -
>>>>      > -# R5 runs early bootloader and loads SYSFW
>>>>      > -# 
>>>> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst 
>>>> <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst> 
>>>>
>>>>      > -# 
>>>> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst 
>>>> <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst> 
>>>>
>>>>      > -# 
>>>> https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst 
>>>> <https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst>
>>>>      > -PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
>>>>      > -PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
>>>>      > -PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
>>>>      > -
>>>>      > -SPL_SUFFIX = "bin"
>>>>      > -SPL_BINARY = 
>>>> "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
>>>>      > -SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
>>>>      > -UBOOT_SUFFIX = "bin"
>>>>      > -UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>>>      > -UBOOT_IMAGE = 
>>>> "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>>>      > -UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>>>      > -
>>>>      > -PACKAGECONFIG:pn-u-boot-ti-staging = ""
>>>>      > -PACKAGECONFIG:pn-u-boot-ti-mainline = ""
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 68061883..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: J7200 EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI J7200 EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j7200"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "gp"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/j7200-evm.conf
>>>>      > index dff1da69..e733d15a 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/j7200-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
>>>>      > @@ -10,4 +10,9 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-j7200-common-proc-board.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "j7200"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "gp"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "j7200_evm_a72_config"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>> ��    > index 1922d5c8..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: J7200 HS EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI J7200 HS 
>>>> EVM (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j7200_sr2"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j7200_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>>>      > index 54fd2b4a..fc33106c 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
>>>>      > @@ -4,4 +4,9 @@
>>>>      >
>>>>      >   require conf/machine/j7200-evm.conf
>>>>      >
>>>>      > +SYSFW_SOC = "j7200_sr2"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "hs"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "j7200_evm_a72_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 070bf7aa..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: J721e EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI J721e EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j721e"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "gp"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/j721e-evm.conf
>>>>      > index 5e1f6dca..ca23e3e3 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/j721e-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
>>>>      > @@ -15,4 +15,9 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-j721e-sk.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "j721e"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "gp"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "j721e_evm_a72_config"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 7904c660..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: J721e HS EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI J721e HS 
>>>> EVM (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j721e_sr1_1"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j721e_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>>>      > index 441ca169..3d4bedb6 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
>>>>      > @@ -4,4 +4,5 @@
>>>>      >
>>>>      >   require conf/machine/j721e-evm.conf
>>>>      >
>>>>      > -UBOOT_MACHINE = "j721e_evm_a72_defconfig"
>>>>      > +SYSFW_SOC = "j721e_sr1_1"
>>>>      > +SYSFW_SUFFIX = "hs"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 508e96e5..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: J721S2 EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI J721S2 EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j721s2"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "gp"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>>>      > index ecb1836f..63d86af0 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
>>>>      > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-j721s2-common-proc-board.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "j721s2"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "gp"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
>>>>      > diff --git 
>>>> a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 58cd92c4..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: J721S2 HS EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI J721S2 HS 
>>>> EVM (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j721s2"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>>>      > index 4cf32a28..1129a189 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
>>>>      > @@ -3,3 +3,5 @@
>>>>      >   #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
>>>>      >
>>>>      >   require conf/machine/j721s2-evm.conf
>>>>      > +
>>>>      > +SYSFW_SUFFIX = "hs"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 04feebc6..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: J784S4 EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI J784S4 EVM 
>>>> (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j784s4"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "gp"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>>>      > index 40a63651..a242ef8a 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf
>>>>      > @@ -18,4 +18,9 @@ KERNEL_DEVICETREE = " \
>>>>      >       ti/k3-j784s4-evm.dtb \
>>>>      >   "
>>>>      >
>>>>      > +SYSFW_SOC = "j784s4"
>>>>      > +SYSFW_CONFIG = "evm"
>>>>      > +SYSFW_SUFFIX = "gp"
>>>>      > +
>>>>      > +UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
>>>>      >   UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
>>>>      > diff --git 
>>>> a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf 
>>>> b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 80a228a0..00000000
>>>>      > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,11 +0,0 @@
>>>>      > -#@TYPE: Machine
>>>>      > -#@NAME: J784S4 HS EVM (R5F)
>>>>      > -#@DESCRIPTION: Machine configuration for the TI J784S4 HS 
>>>> EVM (R5F core)
>>>>      > -
>>>>      > -require conf/machine/include/k3r5.inc
>>>>      > -
>>>>      > -SYSFW_SOC = "j784s4"
>>>>      > -SYSFW_CONFIG = "evm"
>>>>      > -SYSFW_SUFFIX = "hs"
>>>>      > -
>>>>      > -UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
>>>>      > diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf 
>>>> b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>>>      > index 8fa1c1fd..42468088 100644
>>>>      > --- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>>>      > +++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
>>>>      > @@ -3,3 +3,5 @@
>>>>      >   #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
>>>>      >
>>>>      >   require conf/machine/j784s4-evm.conf
>>>>      > +
>>>>      > +SYSFW_SUFFIX = "hs"
>>>>      > diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf 
>>>> b/meta-ti-bsp/conf/multiconfig/k3r5.conf
>>>>      > deleted file mode 100644
>>>>      > index 936bce2f..00000000
>>>>      > --- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
>>>>      > +++ /dev/null
>>>>      > @@ -1,10 +0,0 @@
>>>>      > -MAINMACHINE := "${MACHINE}"
>>>>      > -
>>>>      > -DEPLOY_DIR_IMAGE:k3r5 = 
>>>> "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
>>>>      > -
>>>>      > -MACHINE:append = "-k3r5"
>>>>      > -TCLIBC = "baremetal"
>>>>      > -TI_TMPDIR_APPEND ?= "-k3r5"
>>>>      > -TMPDIR:append = "${TI_TMPDIR_APPEND}"
>>>>      > -
>>>>      > -SDKPKGSUFFIX = "k3r5-nativesdk"
>>>>      > diff --git 
>>>> a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>>>> <http://ti-sci-fw_git.bb> 
>>>> b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>>>> <http://ti-sci-fw_git.bb>
>>>>      > index 12292c88..0597d9bb 100644
>>>>      > --- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>>>> <http://ti-sci-fw_git.bb>
>>>>      > +++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb 
>>>> <http://ti-sci-fw_git.bb>
>>>>      > @@ -17,9 +17,6 @@ do_install() {
>>>>      >   }
>>>>      >
>>>>      >   do_deploy(){
>>>>      > -}
>>>>      > -
>>>>      > -do_deploy:k3r5() {
>>>>      >       install -d ${DEPLOYDIR}/ti-sysfw
>>>>      >       install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* 
>>>> ${DEPLOYDIR}/ti-sysfw
>>>>      >       install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* 
>>>> ${DEPLOYDIR}/ti-sysfw
>>>>      > diff --git 
>>>> a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb 
>>>> <http://tiboot3-staging_2023.5.bb> 
>>>> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb 
>>>> <http://tiboot3-staging_2023.5.bb>
>>>>      > new file mode 100644
>>>>      > index 00000000..0f1929b5
>>>>      > --- /dev/null
>>>>      > +++ 
>>>> b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb 
>>>> <http://tiboot3-staging_2023.5.bb>
>>>>      > @@ -0,0 +1,65 @@
>>>>      > +require u-boot-ti.inc
>>>>      > +
>>>>      > +include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if 
>>>> d.getVar('TI_EXTRAS') else ''}
>>>>      > +
>>>>      > +PR = "r0"
>>>>      > +BRANCH = "ti-u-boot-2023.04"
>>>>      > +SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
>>>>      > +
>>>>      > +PROVIDES:remove = "virtual/bootloader"
>>>>      > +PROVIDES:remove = "u-boot"
>>>>      > +
>>>>      > +# Using gcc-cross-arm-native here would have been ideal
>>>>      > +# as the compiler version would match between R5 and
>>>>      > +# main ARM core builds. arm-oe-linux-gnueabi-
>>>>      > +DEPENDS += "gcc-arm-none-eabi-native"
>>>>      > +
>>>>      > +EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- 
>>>> CC=arm-none-eabi-gcc"
>>>>      > +
>>>>      > +UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
>>>>      > +
>>>>      > +SPL_SUFFIX = "bin"
>>>>      > +SPL_BINARY = 
>>>> "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
>>>>      > +SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
>>>>      > +UBOOT_SUFFIX = "bin"
>>>>      > +UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
>>>>      > +UBOOT_IMAGE = 
>>>> "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
>>>>      > +UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
>>>>      > +
>>>>      > +do_compile:append () {
>>>>      > +     if [ -n "${UBOOT_CONFIG}" ];
>>>>      > +     then
>>>>      > +             for config in ${UBOOT_MACHINE}; do
>>>>      > +                     i=$(expr $i + 1);
>>>>      > +                     for type in ${UBOOT_CONFIG}; do
>>>>      > +                             j=$(expr $j + 1);
>>>>      > +                             if [ $j -eq $i ];
>>>>      > +                             then
>>>>      > +                                     if ! [ -L 
>>>> ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f 
>>>> ${B}/${config}/${UBOOT_BINARY} ]; then
>>>>      > +                                             ln -s 
>>>> ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} 
>>>> ${B}/${config}/${UBOOT_BINARY}
>>>>      > +                                     fi
>>>>      > +                             fi
>>>>      > +                     done
>>>>      > +                     unset  j
>>>>      > +             done
>>>>      > +             unset  i
>>>>      > +     else
>>>>      > +             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
>>>>      > +                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX} 
>>>> ${B}/${UBOOT_BINARY}
>>>>      > +             fi
>>>>      > +     fi
>>>>      > +}
>>>>      > +
>>>>      > +do_deploy:append () {
>>>>      > +     for f in ${B}/tiboot3-*.bin; do
>>>>      > +             if [ -f "$f" ]; then
>>>>      > +                     install -m 644 $f ${DEPLOYDIR}/
>>>>      > +             fi
>>>>      > +     done
>>>>      > +
>>>>      > +     for f in ${B}/sysfw*.itb; do
>>>>      > +             if [ -f "$f" ]; then
>>>>      > +                     install -m 644 $f ${DEPLOYDIR}/
>>>>      > +             fi
>>>>      > +     done
>>>>      > +}
>>>>      > diff --git 
>>>> a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>>>> <http://u-boot-bb.org_git.bb> 
>>>> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>>>> <http://u-boot-bb.org_git.bb>
>>>>      > index 5bb20213..1ec5f9bf 100644
>>>>      > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>>>> <http://u-boot-bb.org_git.bb>
>>>>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb 
>>>> <http://u-boot-bb.org_git.bb>
>>>>      > @@ -12,6 +12,4 @@ BRANCH = "v2023.04-ti-09.00.00.011"
>>>>      >   SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
>>>>      >
>>>>      >   BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
>>>>      > -BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
>>>>      >   SRCREV:beagleplay = 
>>>> "10afea462ea1113701f6f0f8853fdff985aa275d"
>>>>      > -SRCREV:beagleplay-k3r5 = 
>>>> "10afea462ea1113701f6f0f8853fdff985aa275d"
>>>>      > diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc 
>>>> b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>>>      > index 2f15c4fb..b0f88a5a 100644
>>>>      > --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>>>      > +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
>>>>      > @@ -31,7 +31,6 @@ DEPENDS += "python3-pyelftools-native 
>>>> python3-pyyaml-native python3-jsonschema-n
>>>>      >
>>>>      >   # SYSFW/TIFS Firmware
>>>>      >   DEPENDS:append:k3 = " ti-sci-fw"
>>>>      > -DEPENDS:append:k3r5 = " ti-sci-fw"
>>>>      >
>>>>      >   DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
>>>>      >
>>>>      > @@ -79,7 +78,6 @@ SYSROOT_DIRS += "/boot"
>>>>      >
>>>>      >   # SPL (Second Program Loader) to be loaded over UART
>>>>      >   SPL_UART_BINARY = "u-boot-spl.bin"
>>>>      > -SPL_UART_BINARY:k3r5 = ""
>>>>      >
>>>>      >   SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
>>>>      >   SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
>>>>      > @@ -108,30 +106,6 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
>>>>      >   UBOOT_HS_2ND_IMAGE = 
>>>> "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
>>>>      >   UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
>>>>      >
>>>>      > -do_compile:append:k3r5 () {
>>>>      > -     if [ -n "${UBOOT_CONFIG}" ];
>>>>      > -     then
>>>>      > -             for config in ${UBOOT_MACHINE}; do
>>>>      > -                     i=$(expr $i + 1);
>>>>      > -                     for type in ${UBOOT_CONFIG}; do
>>>>      > -                             j=$(expr $j + 1);
>>>>      > -                             if [ $j -eq $i ];
>>>>      > -                             then
>>>>      > -                                     if ! [ -L 
>>>> ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f 
>>>> ${B}/${config}/${UBOOT_BINARY} ]; then
>>>>      > -                                             ln -s 
>>>> ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} 
>>>> ${B}/${config}/${UBOOT_BINARY}
>>>>      > -                                     fi
>>>>      > -                             fi
>>>>      > -                     done
>>>>      > -                     unset  j
>>>>      > -             done
>>>>      > -             unset  i
>>>>      > -     else
>>>>      > -             if ! [ -f ${B}/${UBOOT_BINARY} ]; then
>>>>      > -                     ln -s spl/u-boot-spl.${UBOOT_SUFFIX} 
>>>> ${B}/${UBOOT_BINARY}
>>>>      > -             fi
>>>>      > -     fi
>>>>      > -}
>>>>      > -
>>>>      >   do_install:append () {
>>>>      >       if [ -n "${UBOOT_CONFIG}" ]
>>>>      >       then
>>>>      > @@ -204,20 +178,6 @@ do_install:append () {
>>>>      >       fi
>>>>      >   }
>>>>      >
>>>>      > -do_deploy:append:k3r5 () {
>>>>      > -     for f in ${B}/tiboot3-*.bin; do
>>>>      > -             if [ -f "$f" ]; then
>>>>      > -                     install -m 644 $f ${DEPLOYDIR}/
>>>>      > -             fi
>>>>      > -     done
>>>>      > -
>>>>      > -     for f in ${B}/sysfw*.itb; do
>>>>      > -             if [ -f "$f" ]; then
>>>>      > -                     install -m 644 $f ${DEPLOYDIR}/
>>>>      > -             fi
>>>>      > -     done
>>>>      > -}
>>>>      > -
>>>>      >   do_deploy:append () {
>>>>      >       if [ -n "${UBOOT_CONFIG}" ]
>>>>      >       then
>>>>
>>>>     --     Ryan Eatmon reatmon@ti.com <mailto:reatmon@ti.com>
>>>>     -----------------------------------------
>>>>     Texas Instruments, Inc.  -  LCPD  -  MGTS
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Best regards,
>>>>
>>>> José Quaresma
>>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#17357): https://lists.yoctoproject.org/g/meta-ti/message/17357
> Mute This Topic: https://lists.yoctoproject.org/mt/103283292/7030289
> Group Owner: meta-ti+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [c-shilwant@ti.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Denys Dmytriyenko Dec. 21, 2023, 11:24 p.m. UTC | #9
This feels like a step backwards... I like the simplification side of this 
change. I also realize the complexities that multiconfig brings. But the 
alternative is rather a hack and has other issues - let me explain.

We used this approach of using binary compilers masquerading as -native tools 
(instead of proper -cross ones) to build different firmware images quite often 
in the past. Initial K3 support also used it, before I converted that to 
multiconfig.


> The R5 SPL bootloader is the only software we build using the R5 (arm32)
> multiconfig environment.

Yeah, times are changing. With a recent switch to U-boot binman handling 
building and managing R5 firmwares behing the scenes, R5 SPL tiboot3.bin 
became the only arm32 component. But we used to also build k3-image-gen and 
package it with SYSFW into an .itb FIT image for the first 2 K3 platforms.

Back then we used prebuilt external toolchains and a binary compiler 
masquerading as -native tool is just a simplified version of such external 
toolchain. But we always wanted to get rid of external toolchains due to 
maintenance overhead.

Along with another requirement at that time to compile everything from 
sources, including FW for R5 cores, it was an obvious choice to build a 
proper secondary arm32 cross toolchain for R5 cores using multiconfig.

I know building FW images from sources is no longer a requirement, but the 
long-term plan then was to eventually cover other cores and HW accelerators 
too, building corresponding cross-compilers for them from the same set of 
sources. As external toolchains tend to fall behind with updates - e.g. 
binary gcc in kirkstone is 10.3, while the one built from sources is 11.4


> Using multiconfig pulls in a large number of
> build dependencies (see the -native environment in baremetal tmp dir)
> this increases build time and space.

Yes, building a toolchain from sources pulls some amount of dependencies. 
Of course, gcc-cross and binutils-cross are the main two, but they pull 
compiler libs like gmp, mpc, pcre, autotools, build tools, compression 
and crypto libs, utils and even some python modules...


> Using multiconfig for a deploy target also leads to several oddities in
> the bitbake build system forcing use of a non-standard deploy directory
> and careful checks that no recipe built in both configuration deploy
> the same files.

Sigh, this was a rocky journey! At least it seems to be now mostly resolved 
in master to avoid internal file conflicts. Yes, can't deploy the same file 
to a common deploy from different multiconfigs. As of non-standard deploy 
location - it was quite a surprise that everyone just hardcodes the location 
to alway be in the main tmp/ dir - but we can move it back there now as that 
part got fixed.


> While I believe we will get more use out of multiconfig for future
> devices, today let's simplify the K3 build infrastructure here by
> building R5 SPL like a normal firmware using a foreign targeting cross
> compiler. This is the technique meta-arm uses to build firmware (see
> scp-firmware and trusted-firmware-m recipes). Add a new tiboot3 firmware
> recipe here.

Yes, meta-arm uses non-standard binary compilers for couple firmware recipes. 
Other BSPs might use them here and there as well. And meta-ti used to do that 
a lot in the past, as I mentioned. But it is rather a hack. I've discussed 
this with Ross in the past and he was interested in possibly adopting 
multiconfig approach in meta-arm for proper cross-compiler use to build 
firmware images.

On the other hand, to promote and ease the initial adoption of SystemReady 
support for generic arm64 in the next LTS, we at the Yocto TSC agreed to 
completely skip building any boot firmware in OE-Core and simply consume 
corresponding prebuilt binaries - a simplified reference approach with the 
assumption that those FW binaries will be properly built from sources in 
their corresponding BSPs.

As I mentioned above, these hacky native binary compilers are just stripped 
down external toolchains, but they lack proper packaging and aren't suited 
for all the use cases and work flows, namely the SDK side of things. While 
those recipes extend to nativesdk, they don't integrate fully with the SDK 
and its sysroots, as far as I recall.


> With that we can also drop all the related k3r5 multiconfig files and
> definitions. Do that here.

And one more point - there's currently work in progress to add support for 
building and packaging multiple variants of the same platform, e.g. am62x, 
where we produce multiple configurations of the bootloader, FW images and 
rootfs, which can then be mix-and-matched into a final set of images. It's 
still very early in prototyping, but there are chances it could use and build 
on top of the current k3r5 multiconfig functionality...
diff mbox series

Patch

diff --git a/meta-ti-bsp/classes/ti-secdev.bbclass b/meta-ti-bsp/classes/ti-secdev.bbclass
index b3d70e5c..18d15269 100644
--- a/meta-ti-bsp/classes/ti-secdev.bbclass
+++ b/meta-ti-bsp/classes/ti-secdev.bbclass
@@ -2,14 +2,11 @@ 
 
 # K3 SECDEV scripts use OpenSSL
 DEPENDS:append:k3 = " openssl-native"
-DEPENDS:append:k3r5 = " openssl-native"
 
 # Use package version of TI SECDEV for K3 if one is not provided through the environment
 DEPENDS:append:k3 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
-DEPENDS:append:k3r5 = "${@ '' if d.getVar('TI_SECURE_DEV_PKG_K3') else ' ti-k3-secdev-native' }"
 TI_K3_SECDEV_INSTALL_DIR = "${STAGING_DIR_NATIVE}${datadir}/ti/ti-k3-secdev"
 TI_SECURE_DEV_PKG:k3 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
-TI_SECURE_DEV_PKG:k3r5 = "${@ d.getVar('TI_SECURE_DEV_PKG_K3') or d.getVar('TI_K3_SECDEV_INSTALL_DIR') }"
 
 # For non-K3 we require the SECDEV tools be provided through the environment with the following vars
 TI_SECURE_DEV_PKG:ti33x = "${TI_SECURE_DEV_PKG_CAT}/am3x"
diff --git a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
deleted file mode 100644
index 2af3317e..00000000
--- a/meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: AM62A HS-FS EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI AM62A EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "am62ax"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs-fs"
-
-UBOOT_MACHINE = "am62ax_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62axx-evm.conf b/meta-ti-bsp/conf/machine/am62axx-evm.conf
index 22f61401..59884629 100644
--- a/meta-ti-bsp/conf/machine/am62axx-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62axx-evm.conf
@@ -14,4 +14,9 @@  KERNEL_DEVICETREE = " \
     ti/k3-am62a7-sk.dtb \
 "
 
+SYSFW_SOC = "am62ax"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+
+UBOOT_MACHINE_R5 = "am62ax_evm_r5_defconfig"
 UBOOT_MACHINE = "am62ax_evm_a53_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
deleted file mode 100644
index 36915381..00000000
--- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf
+++ /dev/null
@@ -1,12 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: AM62PX EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI AM62Px EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-require conf/machine/include/ti-extras.inc
-
-SYSFW_SOC = "am62px"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs-fs"
-
-UBOOT_MACHINE = "am62px_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
index d7c9f589..116d819b 100644
--- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf
@@ -15,4 +15,9 @@  KERNEL_DEVICETREE = " \
     ti/k3-am62p5-sk.dtb \
 "
 
+SYSFW_SOC = "am62px"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+
+UBOOT_MACHINE_R5 = "am62px_evm_r5_defconfig"
 UBOOT_MACHINE = "am62px_evm_a53_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
deleted file mode 100644
index 548369ca..00000000
--- a/meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf
+++ /dev/null
@@ -1,12 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: AM62XX EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI AM62xx EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-require conf/machine/include/ti-extras.inc
-
-SYSFW_SOC = "am62x"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs-fs"
-
-UBOOT_MACHINE = "am62x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62xx-evm.conf b/meta-ti-bsp/conf/machine/am62xx-evm.conf
index fadbc6f4..6f234811 100644
--- a/meta-ti-bsp/conf/machine/am62xx-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62xx-evm.conf
@@ -14,4 +14,9 @@  KERNEL_DEVICETREE = " \
     ti/k3-am625-sk.dtb \
 "
 
+SYSFW_SOC = "am62x"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+
+UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
 UBOOT_MACHINE = "am62x_evm_a53_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
deleted file mode 100644
index aa9422cd..00000000
--- a/meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: AM62XX LP GP EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI AM62xx LP GP EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "am62x"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs-fs"
-
-UBOOT_MACHINE = "am62x_lpsk_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
index 229b74bc..e33b60e2 100644
--- a/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62xx-lp-evm.conf
@@ -16,4 +16,9 @@  KERNEL_DEVICETREE = " \
     ti/k3-am62-lp-sk.dtb \
 "
 
+SYSFW_SOC = "am62x"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+
+UBOOT_MACHINE_R5 = "am62x_lpsk_r5_defconfig"
 UBOOT_MACHINE = "am62x_lpsk_a53_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
deleted file mode 100644
index 0daff2b9..00000000
--- a/meta-ti-bsp/conf/machine/am62xxsip-evm-k3r5.conf
+++ /dev/null
@@ -1,16 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: AM62XX SIP EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI AM62xx SIP EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "am62x"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs-fs"
-
-UBOOT_MACHINE = "am62x_evm_r5_defconfig"
-
-# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
-# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
-# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
-UBOOT_CONFIG_FRAGMENTS = "am62xsip_sk_r5.config"
diff --git a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
index b5dd18f1..2e077f75 100644
--- a/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
+++ b/meta-ti-bsp/conf/machine/am62xxsip-evm.conf
@@ -13,4 +13,14 @@  KERNEL_DEVICETREE = " \
     ti/k3-am625-sk.dtb \
 "
 
+SYSFW_SOC = "am62x"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+
+UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
 UBOOT_MACHINE = "am62x_evm_a53_defconfig"
+
+# UBOOT_CONFIG_FRAGMENTS holds the list of u-boot config fragments which has to be build
+# along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
+# under meta-ti-bsp/recipes-bsp/u-boot/ for more details.
+UBOOT_CONFIG_FRAGMENTS_R5 = "am62xsip_sk_r5.config"
diff --git a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
deleted file mode 100644
index e932928a..00000000
--- a/meta-ti-bsp/conf/machine/am64xx-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: AM64xx EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI AM64xx EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "am64x_sr2"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs-fs"
-
-UBOOT_MACHINE = "am64x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am64xx-evm.conf b/meta-ti-bsp/conf/machine/am64xx-evm.conf
index c6ba2a87..dc21c174 100644
--- a/meta-ti-bsp/conf/machine/am64xx-evm.conf
+++ b/meta-ti-bsp/conf/machine/am64xx-evm.conf
@@ -4,4 +4,9 @@ 
 
 require conf/machine/include/am64xx.inc
 
+SYSFW_SOC = "am64x_sr2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs-fs"
+
 UBOOT_MACHINE = "am64x_evm_a53_defconfig"
+UBOOT_MACHINE_R5 = "am64x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
deleted file mode 100644
index 8744ac3e..00000000
--- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: AM65xx EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI AM65xx EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "am65x_sr2"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "gp"
-
-UBOOT_MACHINE = "am65x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am65xx-evm.conf b/meta-ti-bsp/conf/machine/am65xx-evm.conf
index f6eb6f0c..9b050b03 100644
--- a/meta-ti-bsp/conf/machine/am65xx-evm.conf
+++ b/meta-ti-bsp/conf/machine/am65xx-evm.conf
@@ -4,6 +4,11 @@ 
 
 require conf/machine/include/am65xx.inc
 
+SYSFW_SOC = "am65x_sr2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+
+UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
 UBOOT_MACHINE = "am65x_evm_a53_defconfig"
 
 MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "prueth-fw-am65x-sr2 pruhsr-fw-am65x-sr2 prusw-fw-am65x-sr2"
diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
deleted file mode 100644
index 337c8413..00000000
--- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: AM65xx HS EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI AM65xx HS EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "am65x_sr2"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs"
-
-UBOOT_MACHINE = "am65x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
index f8221f31..4164ae53 100644
--- a/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm.conf
@@ -4,4 +4,9 @@ 
 
 require conf/machine/include/am65xx.inc
 
+SYSFW_SOC = "am65x_sr2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs"
+
+UBOOT_MACHINE_R5 = "am65x_evm_r5_defconfig"
 UBOOT_MACHINE = "am65x_evm_a53_defconfig"
diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
deleted file mode 100644
index b893f380..00000000
--- a/meta-ti-bsp/conf/machine/beaglebone-ai64-k3r5.conf
+++ /dev/null
@@ -1,17 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: BeagleBone AI-64 (R5F)
-#@DESCRIPTION: Machine configuration for the BeagleBone AI-64 (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j721e"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "gp"
-
-SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
-SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
-UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
-UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
-UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
-
-UBOOT_MACHINE = "j721e_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
index e529f565..bad86a22 100644
--- a/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
+++ b/meta-ti-bsp/conf/machine/beaglebone-ai64.conf
@@ -4,6 +4,11 @@ 
 
 require conf/machine/include/j721e.inc
 
+SYSFW_SOC = "j721e"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+
+UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
 UBOOT_MACHINE = "j721e_evm_a72_config"
 
 PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
diff --git a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf b/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
deleted file mode 100644
index c40615c9..00000000
--- a/meta-ti-bsp/conf/machine/beagleplay-k3r5.conf
+++ /dev/null
@@ -1,14 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: BeaglePlay (R5F)
-#@DESCRIPTION: Machine configuration for the BeaglePlay (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-PREFERRED_PROVIDER_virtual/bootloader = "u-boot-bb.org"
-PREFERRED_PROVIDER_u-boot = "u-boot-bb.org"
-
-SYSFW_SOC = "am62x"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "gp"
-
-UBOOT_MACHINE = "am62x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/beagleplay.conf b/meta-ti-bsp/conf/machine/beagleplay.conf
index ac4a202a..312fc503 100644
--- a/meta-ti-bsp/conf/machine/beagleplay.conf
+++ b/meta-ti-bsp/conf/machine/beagleplay.conf
@@ -18,6 +18,11 @@  TFA_K3_SYSTEM_SUSPEND = "1"
 
 OPTEEMACHINE = "k3-am62x"
 
+SYSFW_SOC = "am62x"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+
+UBOOT_MACHINE_R5 = "am62x_evm_r5_defconfig"
 UBOOT_MACHINE = "am62x_evm_a53_defconfig"
 
 PREFERRED_PROVIDER_virtual/kernel = "linux-bb.org"
diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
index 2415f0ba..84feee08 100644
--- a/meta-ti-bsp/conf/machine/include/k3.inc
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -5,8 +5,6 @@  SOC_FAMILY:append = ":k3"
 
 require conf/machine/include/arm/arch-arm64.inc
 
-BBMULTICONFIG += "k3r5"
-
 # Increase this everytime you change something in the kernel
 MACHINE_KERNEL_PR = "r0"
 
@@ -62,7 +60,7 @@  MACHINE_FEATURES += "efi"
 WKS_FILE ?= "${@bb.utils.contains("MACHINE_FEATURES", "efi", "sdimage-2part-efi.wks.in", "sdimage-2part.wks", d)}"
 
 do_image_wic[depends] += "virtual/bootloader:do_deploy"
-do_image[mcdepends] += "mc::k3r5:virtual/bootloader:do_deploy"
+do_image[depends] += "tiboot3-staging:do_deploy"
 
 SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS2"
 SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
deleted file mode 100644
index 63267a5e..00000000
--- a/meta-ti-bsp/conf/machine/include/k3r5.inc
+++ /dev/null
@@ -1,27 +0,0 @@ 
-# TI K3 Armv7 profile for Cortex-R5F cores
-
-require conf/machine/include/ti-soc.inc
-SOC_FAMILY:append = ":k3r5"
-
-# The closest of existing tunes for Cortex-R5F
-DEFAULTTUNE = "armv7athf"
-require conf/machine/include/arm/armv7a/tune-cortexa8.inc
-
-# R5 runs early bootloader and loads SYSFW
-# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/j721e_evm.rst
-# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/am62x_sk.rst
-# https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/doc/board/ti/k3.rst
-PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
-PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-ti-staging"
-PREFERRED_PROVIDER_u-boot ?= "u-boot-ti-staging"
-
-SPL_SUFFIX = "bin"
-SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
-SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
-UBOOT_SUFFIX = "bin"
-UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
-UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
-UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
-
-PACKAGECONFIG:pn-u-boot-ti-staging = ""
-PACKAGECONFIG:pn-u-boot-ti-mainline = ""
diff --git a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
deleted file mode 100644
index 68061883..00000000
--- a/meta-ti-bsp/conf/machine/j7200-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: J7200 EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI J7200 EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j7200"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "gp"
-
-UBOOT_MACHINE = "j7200_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j7200-evm.conf b/meta-ti-bsp/conf/machine/j7200-evm.conf
index dff1da69..e733d15a 100644
--- a/meta-ti-bsp/conf/machine/j7200-evm.conf
+++ b/meta-ti-bsp/conf/machine/j7200-evm.conf
@@ -10,4 +10,9 @@  KERNEL_DEVICETREE = " \
     ti/k3-j7200-common-proc-board.dtb \
 "
 
+SYSFW_SOC = "j7200"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+
+UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
 UBOOT_MACHINE = "j7200_evm_a72_config"
diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
deleted file mode 100644
index 1922d5c8..00000000
--- a/meta-ti-bsp/conf/machine/j7200-hs-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: J7200 HS EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI J7200 HS EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j7200_sr2"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs"
-
-UBOOT_MACHINE = "j7200_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
index 54fd2b4a..fc33106c 100644
--- a/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/j7200-hs-evm.conf
@@ -4,4 +4,9 @@ 
 
 require conf/machine/j7200-evm.conf
 
+SYSFW_SOC = "j7200_sr2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "hs"
+
+UBOOT_MACHINE_R5 = "j7200_evm_r5_defconfig"
 UBOOT_MACHINE = "j7200_evm_a72_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
deleted file mode 100644
index 070bf7aa..00000000
--- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: J721e EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI J721e EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j721e"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "gp"
-
-UBOOT_MACHINE = "j721e_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j721e-evm.conf b/meta-ti-bsp/conf/machine/j721e-evm.conf
index 5e1f6dca..ca23e3e3 100644
--- a/meta-ti-bsp/conf/machine/j721e-evm.conf
+++ b/meta-ti-bsp/conf/machine/j721e-evm.conf
@@ -15,4 +15,9 @@  KERNEL_DEVICETREE = " \
     ti/k3-j721e-sk.dtb \
 "
 
+SYSFW_SOC = "j721e"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+
+UBOOT_MACHINE_R5 = "j721e_evm_r5_defconfig"
 UBOOT_MACHINE = "j721e_evm_a72_config"
diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
deleted file mode 100644
index 7904c660..00000000
--- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: J721e HS EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI J721e HS EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j721e_sr1_1"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs"
-
-UBOOT_MACHINE = "j721e_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
index 441ca169..3d4bedb6 100644
--- a/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/j721e-hs-evm.conf
@@ -4,4 +4,5 @@ 
 
 require conf/machine/j721e-evm.conf
 
-UBOOT_MACHINE = "j721e_evm_a72_defconfig"
+SYSFW_SOC = "j721e_sr1_1"
+SYSFW_SUFFIX = "hs"
diff --git a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
deleted file mode 100644
index 508e96e5..00000000
--- a/meta-ti-bsp/conf/machine/j721s2-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: J721S2 EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI J721S2 EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j721s2"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "gp"
-
-UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j721s2-evm.conf b/meta-ti-bsp/conf/machine/j721s2-evm.conf
index ecb1836f..63d86af0 100644
--- a/meta-ti-bsp/conf/machine/j721s2-evm.conf
+++ b/meta-ti-bsp/conf/machine/j721s2-evm.conf
@@ -18,4 +18,9 @@  KERNEL_DEVICETREE = " \
     ti/k3-j721s2-common-proc-board.dtb \
 "
 
+SYSFW_SOC = "j721s2"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+
+UBOOT_MACHINE_R5 = "j721s2_evm_r5_defconfig"
 UBOOT_MACHINE = "j721s2_evm_a72_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
deleted file mode 100644
index 58cd92c4..00000000
--- a/meta-ti-bsp/conf/machine/j721s2-hs-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: J721S2 HS EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j721s2"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs"
-
-UBOOT_MACHINE = "j721s2_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
index 4cf32a28..1129a189 100644
--- a/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/j721s2-hs-evm.conf
@@ -3,3 +3,5 @@ 
 #@DESCRIPTION: Machine configuration for the TI J721S2 HS EVM
 
 require conf/machine/j721s2-evm.conf
+
+SYSFW_SUFFIX = "hs"
diff --git a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
deleted file mode 100644
index 04feebc6..00000000
--- a/meta-ti-bsp/conf/machine/j784s4-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: J784S4 EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI J784S4 EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j784s4"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "gp"
-
-UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j784s4-evm.conf b/meta-ti-bsp/conf/machine/j784s4-evm.conf
index 40a63651..a242ef8a 100644
--- a/meta-ti-bsp/conf/machine/j784s4-evm.conf
+++ b/meta-ti-bsp/conf/machine/j784s4-evm.conf
@@ -18,4 +18,9 @@  KERNEL_DEVICETREE = " \
     ti/k3-j784s4-evm.dtb \
 "
 
+SYSFW_SOC = "j784s4"
+SYSFW_CONFIG = "evm"
+SYSFW_SUFFIX = "gp"
+
+UBOOT_MACHINE_R5 = "j784s4_evm_r5_defconfig"
 UBOOT_MACHINE = "j784s4_evm_a72_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
deleted file mode 100644
index 80a228a0..00000000
--- a/meta-ti-bsp/conf/machine/j784s4-hs-evm-k3r5.conf
+++ /dev/null
@@ -1,11 +0,0 @@ 
-#@TYPE: Machine
-#@NAME: J784S4 HS EVM (R5F)
-#@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM (R5F core)
-
-require conf/machine/include/k3r5.inc
-
-SYSFW_SOC = "j784s4"
-SYSFW_CONFIG = "evm"
-SYSFW_SUFFIX = "hs"
-
-UBOOT_MACHINE = "j784s4_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
index 8fa1c1fd..42468088 100644
--- a/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
+++ b/meta-ti-bsp/conf/machine/j784s4-hs-evm.conf
@@ -3,3 +3,5 @@ 
 #@DESCRIPTION: Machine configuration for the TI J784S4 HS EVM
 
 require conf/machine/j784s4-evm.conf
+
+SYSFW_SUFFIX = "hs"
diff --git a/meta-ti-bsp/conf/multiconfig/k3r5.conf b/meta-ti-bsp/conf/multiconfig/k3r5.conf
deleted file mode 100644
index 936bce2f..00000000
--- a/meta-ti-bsp/conf/multiconfig/k3r5.conf
+++ /dev/null
@@ -1,10 +0,0 @@ 
-MAINMACHINE := "${MACHINE}"
-
-DEPLOY_DIR_IMAGE:k3r5 = "${TI_COMMON_DEPLOY}/images/${MAINMACHINE}"
-
-MACHINE:append = "-k3r5"
-TCLIBC = "baremetal"
-TI_TMPDIR_APPEND ?= "-k3r5"
-TMPDIR:append = "${TI_TMPDIR_APPEND}"
-
-SDKPKGSUFFIX = "k3r5-nativesdk"
diff --git a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
index 12292c88..0597d9bb 100644
--- a/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
+++ b/meta-ti-bsp/recipes-bsp/ti-sci-fw/ti-sci-fw_git.bb
@@ -17,9 +17,6 @@  do_install() {
 }
 
 do_deploy(){
-}
-
-do_deploy:k3r5() {
 	install -d ${DEPLOYDIR}/ti-sysfw
 	install -m 644 ${S}/ti-sysfw/ti-sci-firmware-* ${DEPLOYDIR}/ti-sysfw
 	install -m 644 ${S}/ti-sysfw/ti-fs-firmware-* ${DEPLOYDIR}/ti-sysfw
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
new file mode 100644
index 00000000..0f1929b5
--- /dev/null
+++ b/meta-ti-bsp/recipes-bsp/u-boot/tiboot3-staging_2023.5.bb
@@ -0,0 +1,65 @@ 
+require u-boot-ti.inc
+
+include ${@ 'recipes-bsp/u-boot/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''}
+
+PR = "r0"
+BRANCH = "ti-u-boot-2023.04"
+SRCREV = "b0d717b732ee28e446baf94522b3491e590f7fbb"
+
+PROVIDES:remove = "virtual/bootloader"
+PROVIDES:remove = "u-boot"
+
+# Using gcc-cross-arm-native here would have been ideal
+# as the compiler version would match between R5 and
+# main ARM core builds. arm-oe-linux-gnueabi-
+DEPENDS += "gcc-arm-none-eabi-native"
+
+EXTRA_OEMAKE += "CROSS_COMPILE=arm-none-eabi- CC=arm-none-eabi-gcc"
+
+UBOOT_MACHINE = "${UBOOT_MACHINE_R5}"
+
+SPL_SUFFIX = "bin"
+SPL_BINARY = "tiboot3-${SYSFW_SOC}-${SYSFW_SUFFIX}-${SYSFW_CONFIG}.${SPL_SUFFIX}"
+SPL_SYMLINK = "tiboot3.${SPL_SUFFIX}"
+UBOOT_SUFFIX = "bin"
+UBOOT_BINARY = "u-boot-r5spl.${UBOOT_SUFFIX}"
+UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
+UBOOT_SYMLINK = "u-boot-r5spl-${MAINMACHINE}.${UBOOT_SUFFIX}"
+
+do_compile:append () {
+	if [ -n "${UBOOT_CONFIG}" ];
+	then
+		for config in ${UBOOT_MACHINE}; do
+			i=$(expr $i + 1);
+			for type in ${UBOOT_CONFIG}; do
+				j=$(expr $j + 1);
+				if [ $j -eq $i ];
+				then
+					if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
+						ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
+					fi
+				fi
+			done
+			unset  j
+		done
+		unset  i
+	else
+		if ! [ -f ${B}/${UBOOT_BINARY} ]; then
+			ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
+		fi
+	fi
+}
+
+do_deploy:append () {
+	for f in ${B}/tiboot3-*.bin; do
+		if [ -f "$f" ]; then
+			install -m 644 $f ${DEPLOYDIR}/
+		fi
+	done
+
+	for f in ${B}/sysfw*.itb; do
+		if [ -f "$f" ]; then
+			install -m 644 $f ${DEPLOYDIR}/
+		fi
+	done
+}
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
index 5bb20213..1ec5f9bf 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-bb.org_git.bb
@@ -12,6 +12,4 @@  BRANCH = "v2023.04-ti-09.00.00.011"
 SRCREV = "4b8f8be8870f03d92a2b01d0d30ab912118adc82"
 
 BRANCH:beagleplay = "v2023.04-ti-09.00.00.011-BeaglePlay"
-BRANCH:beagleplay-k3r5 = "v2023.04-ti-09.00.00.011-BeaglePlay"
 SRCREV:beagleplay = "10afea462ea1113701f6f0f8853fdff985aa275d"
-SRCREV:beagleplay-k3r5 = "10afea462ea1113701f6f0f8853fdff985aa275d"
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
index 2f15c4fb..b0f88a5a 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc
@@ -31,7 +31,6 @@  DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-n
 
 # SYSFW/TIFS Firmware
 DEPENDS:append:k3 = " ti-sci-fw"
-DEPENDS:append:k3r5 = " ti-sci-fw"
 
 DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
 
@@ -79,7 +78,6 @@  SYSROOT_DIRS += "/boot"
 
 # SPL (Second Program Loader) to be loaded over UART
 SPL_UART_BINARY = "u-boot-spl.bin"
-SPL_UART_BINARY:k3r5 = ""
 
 SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
 SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
@@ -108,30 +106,6 @@  UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
 UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
 UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
 
-do_compile:append:k3r5 () {
-	if [ -n "${UBOOT_CONFIG}" ];
-	then
-		for config in ${UBOOT_MACHINE}; do
-			i=$(expr $i + 1);
-			for type in ${UBOOT_CONFIG}; do
-				j=$(expr $j + 1);
-				if [ $j -eq $i ];
-				then
-					if ! [ -L ${B}/${config}/${UBOOT_BINARY} ] && ! [ -f ${B}/${config}/${UBOOT_BINARY} ]; then
-						ln -s ${B}/${config}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${config}/${UBOOT_BINARY}
-					fi
-				fi
-			done
-			unset  j
-		done
-		unset  i
-	else
-		if ! [ -f ${B}/${UBOOT_BINARY} ]; then
-			ln -s spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${UBOOT_BINARY}
-		fi
-	fi
-}
-
 do_install:append () {
 	if [ -n "${UBOOT_CONFIG}" ]
 	then
@@ -204,20 +178,6 @@  do_install:append () {
 	fi
 }
 
-do_deploy:append:k3r5 () {
-	for f in ${B}/tiboot3-*.bin; do
-		if [ -f "$f" ]; then
-			install -m 644 $f ${DEPLOYDIR}/
-		fi
-	done
-
-	for f in ${B}/sysfw*.itb; do
-		if [ -f "$f" ]; then
-			install -m 644 $f ${DEPLOYDIR}/
-		fi
-	done
-}
-
 do_deploy:append () {
 	if [ -n "${UBOOT_CONFIG}" ]
 	then