How to build an out-of-tree module?

I'd like to build an out-of-tree module for my x86/64 image. I didn't see that dkms was an option. Is there a Makefile someone can point me to that I can adapt?

It will have to be packaged as an OpenWrt package/ kernel module, see https://git.openwrt.org/?p=openwrt/openwrt.git;a=tree;f=package/kernel;hb=HEAD for examples (there are are a handful additional kernel modules in the packages and telephony feeds).

1 Like

Thank you @slh! I created a Makefile for zenpower3 that successfully built modeling it off button-hotplug and ath10k-ct.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.