Add RTL8152 driver -- building kernel modules for Seeed OpenWrt distribution

I’m trying to use the Seeed OpenWrt distribution on the Seeed Mini Router (Raspberry Pi CM4 based) with a 2.5Gb USB network adapter that has the Realtek 8152 chipset, however this distribution doesn’t include that driver. If I try to install it via opkg, it tells me that it cannot do that because the distribution has a custom kernel.

root@OpenWrt:~# opkg install kmod-usb-net-rtl8152
Unknown package 'kmod-usb-net-rtl8152'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.154-1-deb453573a04e7a02726b2659a2a3363) for kmod-mii
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.154-1-deb453573a04e7a02726b2659a2a3363) for kmod-nls-base
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.154-1-deb453573a04e7a02726b2659a2a3363) for kmod-usb-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.154-1-deb453573a04e7a02726b2659a2a3363) for kmod-usb-net
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.154-1-deb453573a04e7a02726b2659a2a3363) for kmod-usb-net-rtl8152
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb-net-rtl8152 found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-usb-net-rtl8152.

What would be the right procedure for adding rtl8152 drivers to this kernel?

@kees I’m also trying to add a Realtek 8152 chipset usb adapter. What I have found so far is GitHub - Seeed-Studio/seeed-linux-openwrt which are the build tools that seeed uses to create the images. No luck in how to use the build tools as it is a multi-step process that isn’t documented.