rock-3a: fix u-boot.itb building

This commit is contained in:
EvilOlaf 2025-03-31 10:07:18 +02:00 committed by Igor
parent d4b1021b45
commit 736537517f

View File

@ -15,7 +15,12 @@ BOOT_SPI_RKSPI_LOADER="yes"
IMAGE_PARTITION_TABLE="gpt"
BOOTFS_TYPE="fat"
function post_family_config__rock-3a_use_mainline_uboot_except_vendor() {
function post_family_config__rock-3a_use_mainline_uboot_except_vendor_and_add_sata_target() {
display_alert "$BOARD" "Configuring ($BOARD) standard and sata uboot target map" "info"
UBOOT_TARGET_MAP="
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG spl/u-boot-spl.bin u-boot.dtb u-boot.itb;;idbloader.img u-boot.itb rkspi_loader.img
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG_SATA spl/u-boot-spl.bin u-boot.dtb u-boot.itb;; rkspi_loader_sata.img"
# use mainline uboot for _current_ and _edge_
if [[ "$BRANCH" != "current" && "$BRANCH" != "edge" ]]; then
return 0
@ -42,14 +47,6 @@ function post_family_config__rock-3a_use_mainline_uboot_except_vendor() {
}
}
function post_family_config__rock3a_uboot_add_sata_target() {
display_alert "$BOARD" "Configuring ($BOARD) standard and sata uboot target map" "info"
UBOOT_TARGET_MAP="
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG spl/u-boot-spl.bin u-boot.dtb u-boot.itb;;idbloader.img u-boot.itb rkspi_loader.img
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG_SATA spl/u-boot-spl.bin u-boot.dtb u-boot.itb;; rkspi_loader_sata.img"
}
function post_uboot_custom_postprocess__create_sata_spi_image() {
display_alert "$BOARD" "Create rkspi_loader_sata.img" "info"