1 Commits

Author SHA1 Message Date
ad3871694e [Add] 新增内核配置命令:kernel_config 2024-04-15 23:35:22 +08:00

View File

@ -668,6 +668,28 @@ function build_loader(){
finish_build
}
function config_kernel(){
check_config RK_KERNEL_DTS RK_KERNEL_DEFCONFIG || return 0
echo "============Start building kernel============"
echo "TARGET_RK_JOBS =$RK_JOBS"
echo "TARGET_ARCH =$RK_ARCH"
echo "TARGET_KERNEL_CONFIG =$RK_KERNEL_DEFCONFIG"
echo "TARGET_KERNEL_DTS =$RK_KERNEL_DTS"
echo "TARGET_KERNEL_CONFIG_FRAGMENT =$RK_KERNEL_DEFCONFIG_FRAGMENT"
echo "=========================================="
build_check_cross_compile
cd kernel
make ARCH=$RK_ARCH $RK_KERNEL_DEFCONFIG $RK_KERNEL_DEFCONFIG_FRAGMENT
make ARCH=$RK_ARCH menuconfig -j$RK_JOBS
# build_check_power_domain
finish_build
}
function build_kernel(){
check_config RK_KERNEL_DTS RK_KERNEL_DEFCONFIG || return 0
@ -1497,6 +1519,7 @@ for option in ${OPTIONS}; do
uefi) build_uefi ;;
loader) build_loader ;;
kernel) build_kernel ;;
kernel_config) config_kernel ;;
kerneldeb) build_kerneldeb ;;
extboot) build_extboot ;;
modules) build_modules ;;