1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

Discussion in 'Android Development' started by noob404, Jun 3, 2020.

  1. noob404

    noob404 Lurker
    Thread Starter

    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 (Text):
    1. sound/soc/codecs/es8316.c:766:1: note: in expansion of macro ‘module_i2c_driver’
    2.     766 | module_i2c_driver(es8316_i2c_driver);
    3.     | ^~~~~~~~~~~~~~~~~
    4.     cc1: some warnings being treated as errors
    5.     make[3]: *** [scripts/Makefile.build:304: sound/soc/codecs/es8316.o] Error 1
    6.     make[2]: *** [scripts/Makefile.build:544: sound/soc/codecs] Error 2
    7.     make[1]: *** [scripts/Makefile.build:544: sound/soc] Error 2
    8.     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?
     


Loading...

Share This Page

Loading...