我正在尝试编译android内核,但是在运行make -j4之后不久,它会吐出一个错误。
drivers/built-in.o: In function `cs_check_cpu':
/home/jack/Downloads/NethunterKernel/drivers/cpufreq/cpufreq_relaxed.c:67: undefined reference to `state_suspended'
/home/jack/Downloads/GCCToolchain/bin/aarch64-linux-android-ld: drivers/built-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `state_suspended' can not be used when making a shared object; recompile with -fPIC
/home/jack/Downloads/NethunterKernel/drivers/cpufreq/cpufreq_relaxed.c:67: undefined reference to `state_suspended'
block/built-in.o: In function `maple_add_request':
/home/jack/Downloads/NethunterKernel/block/maple-iosched.c:81: undefined reference to `state_suspended'
/home/jack/Downloads/GCCToolchain/bin/aarch64-linux-android-ld: block/built-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `state_suspended' can not be used when making a shared object; recompile with -fPIC
/home/jack/Downloads/NethunterKernel/block/maple-iosched.c:81: undefined reference to `state_suspended'
block/built-in.o: In function `maple_dispatch_requests':
/home/jack/Downloads/NethunterKernel/block/maple-iosched.c:209: undefined reference to `state_suspended'
/home/jack/Downloads/GCCToolchain/bin/aarch64-linux-android-ld: block/built-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `state_suspended' can not be used when making a shared object; recompile with -fPIC
block/built-in.o:/home/jack/Downloads/NethunterKernel/block/maple-iosched.c:209: more undefined references to `state_suspended' follow
make: *** [Makefile:995: vmlinux] Error 1
我很确定state_suspended是在
包含在include / linux / state_notifier.h中声明的虽然external bool state_suspended;
state_notifier.h包含在它抱怨的所有文件中。有人可以帮忙吗?
这是我正在尝试编译的内核:https://github.com/Svirusx/Nethunter-s7-kernel-WirusMOD-AiO