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.

You are viewing a single thread.
View all comments
3 points

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.

permalink
report
reply
1 point

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?

permalink
report
parent
reply

Android Development

!android_dev@programming.dev

Create post

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

Community stats

  • 40

    Monthly active users

  • 92

    Posts

  • 70

    Comments