Cross-compiling kernel modules for BeagleY-AI

I wish to be cross-compiling kernel modules for BeagleY-AI board. Even with the 4 cores, native compilation is a tad bit slow.

I am running the latest official debian image with kernel - 6.1.83-ti-arm64-r64

I cloned the source tree from ti-linux-kernel git repo

Tried checking out v6.1.83 and ti-linux-6.1.y branches. Got the config file from /proc/config.gz (of course I extracted it). However I could not find any references to beagley-ai or j722s in either of the branches.

It’s available in mainline 6.12 kernel, but I don’t wish to deal with creating my custom distro image right now or mess with the unstable rc. How could I cross-compile for the current 6.1 kernel?

All tag’s can be found in this tree:

shipping defconfig is available as bb.org_defconfig

Regards,

Thanks