this post was submitted on 12 Dec 2023
5 points (100.0% liked)

Android Development

542 readers
1 users here now

Welcome to the programming.dev Android development community!

The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License

founded 1 year ago
MODERATORS
 

How to do it on a high level? Given that I know what to modify in the code.

Also, I won't want to rebuild the parts of the kernel that aren't necessary. The Wifi driver should be rebuild in isolation, that is.

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 11 months ago (1 children)

You should start by getting the kernel compiled, because ultimately the modules need to be built with the exact same GCC version as the kernel was built with, and within the same build environment. So you'll need that for sure.

After that, essentially you just configure it to build it as a module if it's not already a module, and you can run make only on the module to speed up builds.

You may also need to build and flash your own kernel if the default one is CONFIG_MODULES=N, because if the kernel doesn't support modules, then you have no way of unloading or reloading your driver in the first place.

[–] [email protected] 1 points 11 months ago

After that, essentially you just configure it to build it as a module if it’s not already a module, and you can run make only on the module to speed up builds.

How to "just" configure it?