You have recently added a convenient method to compile external / out-of-tree kernel modules for Torizon 5.2 (Building External Kernel Modules With Torizon | Toradex Developer Center). This process is very simple and fairly straight forward.
Meanwhile, I cannot find any documentation on how to build a in-tree kernel module that is not already included with the Torizon kernel, without rebuilding the whole kernel and going through the additional steps needed to setup the environment for that. What we have ended up doing is actually copying the wanted driver code from the kernel source tree and compiling it as an external module using the torizoncore builder tool, which seems a bit backwards.
Am I missing some simpler way to do this? If not, do you have any plans to simplify this process? Or perhaps include more compiled modules with the distribution?
p.s. The module we were missing was “i2c-mux-pca954x”.