Skip to content

Commit de8c77b

Browse files
rpardiniigorpecovnik
authored andcommitted
cm3588-nas: use Rockchip BL31 blob for BRANCH==vendor; still mainline u-boot
1 parent bff105f commit de8c77b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

config/boards/cm3588-nas.csc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,18 @@ function post_family_tweaks__cm3588_nas_udev_naming_network_interfaces() {
4343

4444
# Mainline U-Boot
4545
function post_family_config__cm3588_nas_use_mainline_uboot() {
46-
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
46+
display_alert "${BOARD}/${BRANCH}" "Using mainline U-Boot for ${BOARD}/${BRANCH}" "info"
47+
48+
# If BRANCH==vendor, use rkbin BL31 ${RKBIN_DIR}/${BL31_BLOB}, otherwise, bl31.elf from mainline ATF/TF-A
49+
declare bl31_blob="undetermined"
50+
if [[ "${BRANCH}" == "vendor" ]]; then
51+
display_alert "${BOARD}/${BRANCH}" "Using Rockchip rkbin BL31 blob : ${RKBIN_DIR}/${BL31_BLOB}" "info"
52+
bl31_blob="${RKBIN_DIR}/${BL31_BLOB}"
53+
declare -g ATF_COMPILE="no" # no need to build mainline it either
54+
else
55+
display_alert "${BOARD}/${BRANCH}" "Using mainline BL31: bl31.elf from mainline ATF/TF-A" "info"
56+
bl31_blob="bl31.elf"
57+
fi
4758

4859
declare -g BOOTDELAY=1
4960
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git"

0 commit comments

Comments
 (0)