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:-
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?
- Replaced .c
- make clean && make mrproper
- Copied arch//configs/android-x86_deconfig to linux source root folder as .config
- make bzImage modules
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?