[修改] 删除config.sh,在build.sh脚本中新增uboot_config选项
This commit is contained in:
@ -568,6 +568,30 @@ function build_uefi(){
|
|||||||
finish_build
|
finish_build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function config_uboot(){
|
||||||
|
check_config RK_UBOOT_DEFCONFIG || return 0
|
||||||
|
build_check_cross_compile
|
||||||
|
prebuild_uboot
|
||||||
|
prebuild_security_uboot $@
|
||||||
|
|
||||||
|
echo "============Start building uboot============"
|
||||||
|
echo "TARGET_UBOOT_CONFIG=$RK_UBOOT_DEFCONFIG"
|
||||||
|
echo "========================================="
|
||||||
|
|
||||||
|
cd u-boot
|
||||||
|
rm -f *_loader_*.bin
|
||||||
|
if [ "$RK_LOADER_UPDATE_SPL" = "true" ]; then
|
||||||
|
rm -f *spl.bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
make ${RK_UBOOT_DEFCONFIG}_defconfig
|
||||||
|
make menuconfig ARCH=${RK_ARCH} CROSS_COMPILE=${CROSS_COMPILE}
|
||||||
|
make savedefconfig ARCH=${RK_ARCH} CROSS_COMPILE=${CROSS_COMPILE}
|
||||||
|
cp -arf defconfig configs/${RK_UBOOT_DEFCONFIG}_defconfig
|
||||||
|
|
||||||
|
finish_build
|
||||||
|
}
|
||||||
|
|
||||||
function build_uboot(){
|
function build_uboot(){
|
||||||
check_config RK_UBOOT_DEFCONFIG || return 0
|
check_config RK_UBOOT_DEFCONFIG || return 0
|
||||||
build_check_cross_compile
|
build_check_cross_compile
|
||||||
@ -1469,6 +1493,7 @@ for option in ${OPTIONS}; do
|
|||||||
toolchain) build_toolchain ;;
|
toolchain) build_toolchain ;;
|
||||||
spl) build_spl ;;
|
spl) build_spl ;;
|
||||||
uboot) build_uboot ;;
|
uboot) build_uboot ;;
|
||||||
|
uboot_config) config_uboot ;;
|
||||||
uefi) build_uefi ;;
|
uefi) build_uefi ;;
|
||||||
loader) build_loader ;;
|
loader) build_loader ;;
|
||||||
kernel) build_kernel ;;
|
kernel) build_kernel ;;
|
||||||
|
|||||||
1526
common/config.sh
1526
common/config.sh
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user