[Add] 新增内核配置命令:kernel_config

This commit is contained in:
gaoyang3513
2024-04-15 23:35:22 +08:00
parent 7db203b487
commit ad3871694e

View File

@ -668,6 +668,28 @@ function build_loader(){
finish_build 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(){ function build_kernel(){
check_config RK_KERNEL_DTS RK_KERNEL_DEFCONFIG || return 0 check_config RK_KERNEL_DTS RK_KERNEL_DEFCONFIG || return 0
@ -1497,6 +1519,7 @@ for option in ${OPTIONS}; do
uefi) build_uefi ;; uefi) build_uefi ;;
loader) build_loader ;; loader) build_loader ;;
kernel) build_kernel ;; kernel) build_kernel ;;
kernel_config) config_kernel ;;
kerneldeb) build_kerneldeb ;; kerneldeb) build_kerneldeb ;;
extboot) build_extboot ;; extboot) build_extboot ;;
modules) build_modules ;; modules) build_modules ;;