summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-bsp/u-boot
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2023-05-25 13:11:30 -0500
committerRyan Eatmon <reatmon@ti.com>2023-06-06 08:24:37 -0500
commitdf7c7e627de8e5b92ef5fa8d97e023ad4d15d9c6 (patch)
treec6f82f22b5d174d3850a891b85ec3e85128fa920 /meta-ti-bsp/recipes-bsp/u-boot
parent7b797da2ef43f4f450a546816b43b28f9379305a (diff)
downloadmeta-ti-df7c7e627de8e5b92ef5fa8d97e023ad4d15d9c6.tar.gz
u-boot-ti-staging: Use binman to package our firmware
Signed-off-by: Andrew Davis <afd@ti.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/recipes-bsp/u-boot')
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc27
1 files changed, 25 insertions, 2 deletions
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 38ce5a58..f29b089e 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
@@ -25,6 +25,13 @@ PV:append = "+git${SRCPV}"
25# u-boot needs devtree compiler to parse dts files 25# u-boot needs devtree compiler to parse dts files
26DEPENDS += "dtc-native bc-native lzop-native flex-native bison-native python3-setuptools-native" 26DEPENDS += "dtc-native bc-native lzop-native flex-native bison-native python3-setuptools-native"
27 27
28# u-boot needs these for binman
29DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-native"
30
31# SYSFW/TIFS Firmware
32DEPENDS:append:k3 = " ti-sci-fw"
33DEPENDS:append:k3r5 = " ti-sci-fw"
34
28DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" 35DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
29 36
30PLAT_SFX = "" 37PLAT_SFX = ""
@@ -37,7 +44,7 @@ PLAT_SFX:am64xx = "am64xx"
37PLAT_SFX:am62xx = "am62xx" 44PLAT_SFX:am62xx = "am62xx"
38PLAT_SFX:am62axx = "am62axx" 45PLAT_SFX:am62axx = "am62axx"
39 46
40PACKAGECONFIG[atf] = "ATF=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a" 47PACKAGECONFIG[atf] = "BL31=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a"
41PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os" 48PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os"
42PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-dm/${PLAT_SFX}/${DM_FIRMWARE},,ti-dm-fw" 49PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-dm/${PLAT_SFX}/${DM_FIRMWARE},,ti-dm-fw"
43 50
@@ -51,7 +58,9 @@ PACKAGECONFIG:append:am62axx = " dm"
51 58
52COMPATIBLE_MACHINE = "(ti-soc)" 59COMPATIBLE_MACHINE = "(ti-soc)"
53 60
54EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" 61BINMAN_INDIRS="${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware"
62
63EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS} BINMAN_INDIRS=${BINMAN_INDIRS}"
55 64
56PROVIDES += "u-boot" 65PROVIDES += "u-boot"
57PKG:${PN} = "u-boot" 66PKG:${PN} = "u-boot"
@@ -174,6 +183,20 @@ do_install:append () {
174 fi 183 fi
175} 184}
176 185
186do_deploy:append:k3r5 () {
187 for f in ${B}/tiboot3-*.bin; do
188 if [ -f "$f" ]; then
189 install -m 644 $f ${DEPLOYDIR}/
190 fi
191 done
192
193 for f in ${B}/sysfw*.itb; do
194 if [ -f "$f" ]; then
195 install -m 644 $f ${DEPLOYDIR}/
196 fi
197 done
198}
199
177do_deploy:append () { 200do_deploy:append () {
178 if [ -n "${UBOOT_CONFIG}" ] 201 if [ -n "${UBOOT_CONFIG}" ]
179 then 202 then