New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] kernel: drop kmod-ledtrig-{default-on,heartbeat,netdev,timer} packages #3754
Conversation
The heartbeat trigger is used by luci-mod-system, which is installed as a part of the standard luci package set. It seems the LED trigger will be required quite often, so let's enable it by default. This increses uncompressed kernel size by about 100 bytes on ath79/generic. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Those targets have already enabled some other LED triggers, so enabling a few more won't be a big problem. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
The following four led triggers are enabled in generic config. * kmod-ledtrig-default-on * kmod-ledtrig-heartbeat * kmod-ledtrig-netdev * kmod-ledtrig-timer Drop the packages and remove them from DEVICE_PACKAGES. There's no other package depending on them in this repo. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This looks like a good idea to me. The targets that disabled triggers before are only a few (and mostly legacy), and the size requirement for heartbeat is obviously negligible. The only remaining possible reason to disable the symbols on certain targets would be if the functionality is broken there. If we can exclude that to a fair level, I think we should merge this. However, I'm no kernel expert, so better wait for an additional opinion before you go on with additional work :-) |
And I'm not really sure whether the third patch should be a "kernel:" or a "treewide:". But that's really the least of our problems ... |
I had a run-test on oxnas with built-in netdev trigger and it worked well. And I don't think default-on or timer trigger would ever break on any platform. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK from the LuCI side.
I decided to merge this, it's well-justified and I don't see any obvious issue with it. |
Thank you for review and merge, as always. :) |
The goal of this PR is to remove kmod dependency of the luci collection package.
When we run
opkg install luci
on self-built snapshot image, the installation failesdue to unmet kernel version dependency:
Of course, it can be easily resolved by adding luci or kmod-ledtrig-* packages at build time, but I admit it becomes a bit cumbersome sometimes.
Fortunately, the three of the four kernel modules are already built-in on most targets, and the last one, heartbeat, does not increase kernel size that much, so we can make all of them built-in and remove the kmod packages.
I also made a patch for the luci part. I'll open another PR for it, if this gets positive feedbacks.
EDIT: openwrt/luci#4719