[修改] 删除config.sh,在build.sh脚本中新增uboot_config选项
This commit is contained in:
@ -568,6 +568,30 @@ function build_uefi(){
|
||||
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(){
|
||||
check_config RK_UBOOT_DEFCONFIG || return 0
|
||||
build_check_cross_compile
|
||||
@ -720,7 +744,7 @@ function build_extboot(){
|
||||
make ARCH=$RK_ARCH $RK_KERNEL_DEFCONFIG $RK_KERNEL_DEFCONFIG_FRAGMENT
|
||||
make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
|
||||
make ARCH=$RK_ARCH dtbs -j$RK_JOBS
|
||||
|
||||
|
||||
echo -e "\e[36m Generate extLinuxBoot image start\e[0m"
|
||||
|
||||
KERNEL_VERSION=$(cat $TOP_DIR/kernel/include/config/kernel.release)
|
||||
@ -1469,6 +1493,7 @@ for option in ${OPTIONS}; do
|
||||
toolchain) build_toolchain ;;
|
||||
spl) build_spl ;;
|
||||
uboot) build_uboot ;;
|
||||
uboot_config) config_uboot ;;
|
||||
uefi) build_uefi ;;
|
||||
loader) build_loader ;;
|
||||
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