编译 Android 内核时出错

编译 Android 内核时出错

我有一部小米 Redmi Note 5,我想安装这个内核

问题是这是我的第一个内核编译,由于一些错误我无法编译它:

   CC      drivers/bluetooth/btfm_slim.o
drivers/bluetooth/btfm_slim.c:26:23: fatal error: btfm_slim.h: No such file or directory
 #include <btfm_slim.h>
                       ^
compilation terminated.
scripts/Makefile.build:282: recipe for target 'drivers/bluetooth/btfm_slim.o' failed
make[2]: *** [drivers/bluetooth/btfm_slim.o] Error 1
scripts/Makefile.build:489: recipe for target 'drivers/bluetooth' failed
make[1]: *** [drivers/bluetooth] Error 2
Makefile:998: recipe for target 'drivers' failed
make: *** [drivers] Error 2
root@arnau-VirtualBox:/home/arnau/Escritorio/android/kernel# make headers_check
  CHK     include/generated/uapi/linux/version.h

还有这个错误:

 scripts/Makefile.build:489: recipe for target 'sound/soc/msm' failed
make[2]: *** [sound/soc/msm] Error 2
scripts/Makefile.build:489: recipe for target 'sound/soc' failed
make[1]: *** [sound/soc] Error 2
Makefile:998: recipe for target 'sound' failed
make: *** [sound] Error 2

我该如何解决?我在 Virtualbox 中使用 Ubuntu 18.04。

相关内容