• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

AndroidX86: Kernel compilation error: [Makefile:1050: sound] Error 2

noob404

Lurker
I have been trying to recompile PrimeOS' kernel from https://github.com/primebook/android_kernel_common. I just have to replace a .c file within drivers/platform/x86. Here's what I did:-
  1. Replaced .c
  2. make clean && make mrproper
  3. Copied arch//configs/android-x86_deconfig to linux source root folder as .config
  4. make bzImage modules
This stops with the following error:-

Code:
sound/soc/codecs/es8316.c:766:1: note: in expansion of macro ‘module_i2c_driver’
    766 | module_i2c_driver(es8316_i2c_driver);
    | ^~~~~~~~~~~~~~~~~
    cc1: some warnings being treated as errors
    make[3]: *** [scripts/Makefile.build:304: sound/soc/codecs/es8316.o] Error 1
    make[2]: *** [scripts/Makefile.build:544: sound/soc/codecs] Error 2
    make[1]: *** [scripts/Makefile.build:544: sound/soc] Error 2
    make: *** [Makefile:1050: sound] Error 2

But, when I try to do make bzImage, it works and outputs a bzImage. How do I compile with the updated .c file? Another question I have is with the bzImage is it OK if I just rename it to kernel and move it to my Android x86 boot?
 
Back
Top Bottom