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.

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    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.

    • cuenca@lemm.eeOP
      link
      fedilink
      arrow-up
      1
      ·
      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?