summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf6
-rw-r--r--meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf6
-rw-r--r--meta-ti-bsp/conf/machine/include/k3r5.inc6
-rw-r--r--meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf6
-rw-r--r--meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf6
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc51
6 files changed, 33 insertions, 48 deletions
diff --git a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
index bd17474e..a484e444 100644
--- a/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
+++ b/meta-ti-bsp/conf/machine/am65xx-evm-k3r5.conf
@@ -9,4 +9,10 @@ SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp" 9SYSFW_SUFFIX = "gp"
10SYSFW_SYMLINK = "" 10SYSFW_SYMLINK = ""
11 11
12SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
13SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
14UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
15UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
16UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
17
12UBOOT_MACHINE = "am65x_evm_r5_defconfig" 18UBOOT_MACHINE = "am65x_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
index d6d4b1e3..81b8c75f 100644
--- a/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
+++ b/meta-ti-bsp/conf/machine/am65xx-hs-evm-k3r5.conf
@@ -9,6 +9,12 @@ SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "hs" 9SYSFW_SUFFIX = "hs"
10SYSFW_SYMLINK = "" 10SYSFW_SYMLINK = ""
11 11
12SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
13SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
14UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
15UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
16UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
17
12UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig" 18UBOOT_MACHINE = "am65x_hs_evm_r5_defconfig"
13 19
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}" 20TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
diff --git a/meta-ti-bsp/conf/machine/include/k3r5.inc b/meta-ti-bsp/conf/machine/include/k3r5.inc
index 3cc79061..d000404e 100644
--- a/meta-ti-bsp/conf/machine/include/k3r5.inc
+++ b/meta-ti-bsp/conf/machine/include/k3r5.inc
@@ -16,9 +16,9 @@ PREFERRED_PROVIDER_u-boot = "u-boot-ti-staging"
16 16
17SPL_BINARY = "" 17SPL_BINARY = ""
18UBOOT_SUFFIX = "bin" 18UBOOT_SUFFIX = "bin"
19UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}" 19UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
20UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" 20UBOOT_IMAGE = "u-boot-r5spl-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
21UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}" 21UBOOT_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
22 22
23PACKAGECONFIG:pn-u-boot-ti-staging = "" 23PACKAGECONFIG:pn-u-boot-ti-staging = ""
24PACKAGECONFIG:pn-u-boot-ti-mainline = "" 24PACKAGECONFIG:pn-u-boot-ti-mainline = ""
diff --git a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
index 070bf7aa..9544cdb6 100644
--- a/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
+++ b/meta-ti-bsp/conf/machine/j721e-evm-k3r5.conf
@@ -8,4 +8,10 @@ SYSFW_SOC = "j721e"
8SYSFW_CONFIG = "evm" 8SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "gp" 9SYSFW_SUFFIX = "gp"
10 10
11SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
12SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
13UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
14UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
15UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
16
11UBOOT_MACHINE = "j721e_evm_r5_defconfig" 17UBOOT_MACHINE = "j721e_evm_r5_defconfig"
diff --git a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
index 9c285bae..8e53a5cb 100644
--- a/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
+++ b/meta-ti-bsp/conf/machine/j721e-hs-evm-k3r5.conf
@@ -9,6 +9,12 @@ SYSFW_CONFIG = "evm"
9SYSFW_SUFFIX = "hs" 9SYSFW_SUFFIX = "hs"
10SYSFW_SYMLINK = "" 10SYSFW_SYMLINK = ""
11 11
12SPL_BINARY = "spl/u-boot-spl.${UBOOT_SUFFIX}"
13SPL_SYMLINK = "u-boot-r5spl.${UBOOT_SUFFIX}"
14UBOOT_BINARY = "tiboot3.${UBOOT_SUFFIX}"
15UBOOT_IMAGE = "tiboot3-${MAINMACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
16UBOOT_SYMLINK = "tiboot3-${MAINMACHINE}.${UBOOT_SUFFIX}"
17
12UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig" 18UBOOT_MACHINE = "j721e_hs_evm_r5_defconfig"
13 19
14TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}" 20TI_SECURE_DEV_PKG = "${TI_SECURE_DEV_PKG_K3}"
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 d29c80cf..571fa4e3 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
@@ -56,13 +56,6 @@ SYSROOT_DIRS += "/boot"
56SPL_UART_BINARY = "u-boot-spl.bin" 56SPL_UART_BINARY = "u-boot-spl.bin"
57SPL_UART_BINARY:k3r5 = "" 57SPL_UART_BINARY:k3r5 = ""
58SPL_UART_BINARY:lego-ev3 = "" 58SPL_UART_BINARY:lego-ev3 = ""
59SPL_UART_BINARY:j7200-evm-k3r5 = "u-boot-spl.bin"
60SPL_UART_BINARY:j7200-hs-evm-k3r5 = "u-boot-spl.bin"
61SPL_UART_BINARY:j721s2-evm-k3r5 = "u-boot-spl.bin"
62SPL_UART_BINARY:j721s2-hs-evm-k3r5 = "u-boot-spl.bin"
63SPL_UART_BINARY:am64xx-evm-k3r5 = "u-boot-spl.bin"
64SPL_UART_BINARY:am64xx-hs-evm-k3r5 = "u-boot-spl.bin"
65SPL_UART_BINARY:am62xx-evm-k3r5 = "u-boot-spl.bin"
66 59
67SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}" 60SPL_UART_IMAGE ?= "${SPL_UART_BINARY}-${MACHINE}-${PV}-${PR}"
68SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}" 61SPL_UART_SYMLINK ?= "${SPL_UART_BINARY}-${MACHINE}"
@@ -100,6 +93,12 @@ UBOOT_HS_2ND_BINARY = "u-boot-spl_HS_2ND"
100UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}" 93UBOOT_HS_2ND_IMAGE = "u-boot-spl_HS_2ND-${MACHINE}-${PV}-${PR}"
101UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}" 94UBOOT_HS_2ND_SYMLINK = "u-boot-spl_HS_2ND-${MACHINE}"
102 95
96do_compile:append:k3r5 () {
97 if ! [ -f ${B}/${UBOOT_BINARY} ]; then
98 ln -s spl/${UBOOT_BINARY} ${B}/${UBOOT_BINARY}
99 fi
100}
101
103do_install:append () { 102do_install:append () {
104 if [ -n "${UBOOT_CONFIG}" ] 103 if [ -n "${UBOOT_CONFIG}" ]
105 then 104 then
@@ -260,42 +259,4 @@ do_deploy:append () {
260 rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR} || true 259 rm ${DEPLOYDIR}/${PN}-initial-env-${MACHINE}-${PV}-${PR} || true
261} 260}
262 261
263# j7200 uses combined image for tiboot3.bin that includes u-boot-spl.bin and sysfw
264# along with board PM/RM configs generated by k3-image-gen and comes from ti-sci-fw
265# hence move the legacy u-boot's tiboot3.bin and u-boot-spl.bin out of the way
266do_deploy:append:j7200-evm-k3r5 () {
267 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
268 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
269}
270
271do_deploy:append:j7200-hs-evm-k3r5 () {
272 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
273 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
274}
275
276do_deploy:append:j721s2-evm-k3r5 () {
277 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
278 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
279}
280
281do_deploy:append:j721s2-hs-evm-k3r5 () {
282 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
283 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
284}
285
286do_deploy:append:am64xx-evm-k3r5 () {
287 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
288 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
289}
290
291do_deploy:append:am64xx-hs-evm-k3r5 () {
292 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
293 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
294}
295
296do_deploy:append:am62xx-evm-k3r5 () {
297 mv ${DEPLOYDIR}/tiboot3.bin ${DEPLOYDIR}/tiboot3-r5spl.bin || true
298 mv ${DEPLOYDIR}/u-boot-spl.bin ${DEPLOYDIR}/u-boot-spl-r5spl.bin || true
299}
300
301TOOLCHAIN = "gcc" 262TOOLCHAIN = "gcc"