[Add] 新增内核配置命令:kernel_config
This commit is contained in:
@ -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 ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user