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?
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - AndroidX86 Kernel compilation
  1. oneytlam
    Replies:
    3
    Views:
    875
  2. nnnn1221347
    Replies:
    11
    Views:
    1,504
  3. Alexenferman
    Replies:
    0
    Views:
    3,520
  4. rootboy0110
    Replies:
    0
    Views:
    840
  5. Alexenferman
    Replies:
    0
    Views:
    3,912
  6. KayBec
    Replies:
    0
    Views:
    1,654
  7. skfl
    Replies:
    0
    Views:
    552
  8. Android News
    Replies:
    0
    Views:
    1,395
  9. Android News
    Replies:
    0
    Views:
    695
  10. riveraadrian
    Replies:
    4
    Views:
    550

Share This Page

Loading...