diff options
author | Andrew Davis <afd@ti.com> | 2023-05-25 13:11:30 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2023-06-07 10:06:40 -0500 |
commit | e74b9a1746d4d04757c87c1920a0f743e55ff096 (patch) | |
tree | 7f02c8c6c33f8e87ee3a232ae5908c6038276f4c /meta-ti-bsp/recipes-bsp | |
parent | 835811cf8586926cf78a961d090f4e6150432235 (diff) | |
download | meta-ti-e74b9a1746d4d04757c87c1920a0f743e55ff096.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')
-rw-r--r-- | meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 27 |
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 15c903d5..9a2c3181 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 |
26 | DEPENDS += "dtc-native bc-native flex-native bison-native python3-setuptools-native" | 26 | DEPENDS += "dtc-native bc-native flex-native bison-native python3-setuptools-native" |
27 | 27 | ||
28 | # u-boot needs these for binman | ||
29 | DEPENDS += "python3-pyelftools-native python3-pyyaml-native python3-jsonschema-native" | ||
30 | |||
31 | # SYSFW/TIFS Firmware | ||
32 | DEPENDS:append:k3 = " ti-sci-fw" | ||
33 | DEPENDS:append:k3r5 = " ti-sci-fw" | ||
34 | |||
28 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" | 35 | DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f" |
29 | 36 | ||
30 | PLAT_SFX = "" | 37 | PLAT_SFX = "" |
@@ -37,7 +44,7 @@ PLAT_SFX:am64xx = "am64xx" | |||
37 | PLAT_SFX:am62xx = "am62xx" | 44 | PLAT_SFX:am62xx = "am62xx" |
38 | PLAT_SFX:am62axx = "am62axx" | 45 | PLAT_SFX:am62axx = "am62axx" |
39 | 46 | ||
40 | PACKAGECONFIG[atf] = "ATF=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a" | 47 | PACKAGECONFIG[atf] = "BL31=${STAGING_DIR_HOST}/firmware/bl31.bin,,trusted-firmware-a" |
41 | PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os" | 48 | PACKAGECONFIG[optee] = "TEE=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/bl32.bin,,optee-os" |
42 | PACKAGECONFIG[dm] = "DM=${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/ti-dm/${PLAT_SFX}/${DM_FIRMWARE},,ti-dm-fw" | 49 | PACKAGECONFIG[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 | ||
52 | COMPATIBLE_MACHINE = "(ti-soc)" | 59 | COMPATIBLE_MACHINE = "(ti-soc)" |
53 | 60 | ||
54 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" | 61 | BINMAN_INDIRS="${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware" |
62 | |||
63 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS} BINMAN_INDIRS=${BINMAN_INDIRS}" | ||
55 | 64 | ||
56 | PROVIDES += "u-boot" | 65 | PROVIDES += "u-boot" |
57 | PKG:${PN} = "u-boot" | 66 | PKG:${PN} = "u-boot" |
@@ -174,6 +183,20 @@ do_install:append () { | |||
174 | fi | 183 | fi |
175 | } | 184 | } |
176 | 185 | ||
186 | do_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 | |||
177 | do_deploy:append () { | 200 | do_deploy:append () { |
178 | if [ -n "${UBOOT_CONFIG}" ] | 201 | if [ -n "${UBOOT_CONFIG}" ] |
179 | then | 202 | then |