K3: Add support for boards with SYSFW files
Some K3 boards use a split initial boot stage requiring an extra file called "sysfw.itb". If defined in the board configuration deploy this file if available.
This commit is contained in:
parent
84af8cf4cb
commit
f217d11d3a
@ -35,7 +35,7 @@ esac
|
||||
ATF_PLAT="k3"
|
||||
ATF_TARGET_MAP="PLAT=$ATF_PLAT TARGET_BOARD=$ATF_BOARD DEBUG=1 bl31;;build/$ATF_PLAT/$ATF_BOARD/debug/bl31.bin:bl31.bin"
|
||||
|
||||
UBOOT_TARGET_MAP="BL31=bl31.bin TEE=bl31.bin BINMAN_INDIRS=${SRC}/cache/sources/ti-linux-firmware all;;tiboot3.bin tispl.bin u-boot.img"
|
||||
UBOOT_TARGET_MAP="BL31=bl31.bin TEE=bl31.bin BINMAN_INDIRS=${SRC}/cache/sources/ti-linux-firmware all;;tiboot3.bin ${SYSFW_FILE:+sysfw.itb} tispl.bin u-boot.img"
|
||||
|
||||
# To match what our current SDK produces
|
||||
BOOT_FS_LABEL="boot"
|
||||
@ -64,6 +64,7 @@ function pre_config_uboot_target__build_first_stage() {
|
||||
compile_k3_bootgen
|
||||
|
||||
cp ${SRC}/cache/sources/ti-u-boot/${TIBOOT3_FILE} tiboot3.bin
|
||||
cp ${SRC}/cache/sources/ti-u-boot/${SYSFW_FILE} sysfw.itb || true
|
||||
}
|
||||
|
||||
function pre_prepare_partitions() {
|
||||
@ -86,6 +87,7 @@ function format_partitions() {
|
||||
|
||||
function write_uboot_platform() {
|
||||
cp $1/tiboot3.bin ${MOUNT}/boot
|
||||
cp $1/sysfw.itb ${MOUNT}/boot || true
|
||||
cp $1/tispl.bin ${MOUNT}/boot
|
||||
cp $1/u-boot.img ${MOUNT}/boot
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user