NanoPC-T4 RK3399:(三)Kernel编译框架

一:获取Kernel Source

build_main() {
    build_task_is_enabled "kernel" && build_get_kernel_sources
}

build_get_kernel_sources() {
    fetch_from_repo "$KERNELSOURCE" "$KERNELDIR" "$KERNELBRANCH" "yes"
}

$KERNELSOURCE : https://mirrors.tuna.tsinghua.edu.cn/git/linux-stable.git
$KERNELDIR    : linux-mainline
$KERNELBRANCH : commit:d60c95efffe84428e3611431bf688f50bfc13f4e

位置:cache/sources/linux-mainline/d60c95efffe84428e3611431bf688f50bfc13f4e

二:准备第三方固件驱动

(1)Returning headers needed for some wireless drivers

if linux-version compare "${version}" ge 5.4 && [ $EXTRAWIFI == yes ]; then
	display_alert "Adding" "Missing headers" "info"
	process_patch_file "${SRC}/patch/misc/wireless-bring-back-headers.patch" "

你可能感兴趣的:(Rockchip,NanoPC-T4,linux)