NanoPC-T4 RK3399:(二)U-boot编译框架

一:获取Uboot Source

build_main() {
    build_task_is_enabled "u-boot" && build_get_boot_sources
}

build_get_boot_sources() {
	if [[ -n $BOOTSOURCE ]]; then
		fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"
	fi
}

$BOOTSOURCE:
main-config.sh: MAINLINE_UBOOT_SOURCE='https://gitee.com/mirrors/u-boot.git'
common.conf   : [[ -z $BOOTSOURCE ]] && export BOOTSOURCE="$MAINLINE_UBOOT_SOURCE"

$BOOTDIR:
main-config.sh: MAINLINE_UBOOT_DIR='u-boot'
common.conf   : [[ -z $BOOTDIR ]] && export BOOTDIR="$MAINLINE_UBOOT_DIR"

$BOOTBRANCH:
media.conf    : BOOTBRANCH="tag:v2022.04"

位置:cache/sources/u-boot/v2022.04

二:获取rkbin-tools

function fetch_sources_tools__rkbin_tools() {
	fetch_from_repo "htt

你可能感兴趣的:(Rockchip,NanoPC-T4,linux)