Missing LEDTRIG modules on 21.02 and 22.03

Hello, I have a couple packages that are currently dependent on the kmod-ledtrig-netdev package that's available in version 19.07 and 18.06. This package is removed in 21.02 here (https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=583e39e3d5149357c8070eb7cdd942e42ea44906) due to removing empty kmod-ledtrig-* packages.

While the generic target config does specify these in the common configs for 5.4 (https://github.com/openwrt/openwrt/blob/366dfa4c5b89cd2efe091c5d06a21bd5ad17d585/target/linux/generic/config-5.4#L2736)

The resulting kernel modules are not available in the final image. Here you see the ledtrig-gpio module in the staging area, as a proof of toggling the dependency for the still existing 'kmod-ledtrig-gpio' package.

❯ ls -alh staging_dir/target-x86_64_musl/root-x86/lib/modules/5.4.194/ledtrig*                                           
-rw-r--r-- 1 root root 86K Jul 21 10:49 staging_dir/target-x86_64_musl/root-x86/lib/modules/5.4.194/ledtrig-gpio.ko

Am I missing something obvious here? I could create another kernel package with the dependency restored, but it seems that this was done with some intention. The documentation still references several of these packages on the LED Configuration page (https://openwrt.org/docs/guide-user/base-system/led_configuration)

To my understanding, your packages should not declare dependency for the kmod any more, as the functionality is always enabled in kernel.

@hnyman thanks!

You are correct, the actual cause of my issue is due to incompatible sysfs attribute configuration for the led netdev trigger between the old kernel module, and the now mainline attributes.

Thanks!