我正在尝试自己构建自定义 ROM。我掌握了内核源代码、android 代码 (LineageOS)、设备树和供应商文件。我做了一个mka bacon -j8
并且收到了这个错误:
In file included from /home/fury/android/lineage/kernel/xiaomi/platina/arch/arm64/kernel/perf_trace_counters.c:16:0:
/home/fury/android/lineage/kernel/xiaomi/platina/include/trace/events/sched.h:875:2: error: #error "Unsupported NR_CPUS for lb tracepoint."
#error "Unsupported NR_CPUS for lb tracepoint."
我可以看到内核参数 NR_CPUS 在某处被设置为不受支持的值。这可以设置在哪里?
KConfig NR_CPUS 部分:
config NR_CPUS
int "Maximum number of CPUs (2-4096)"
range 2 4096
# These have to remain sorted largest to smallest
default "64"