Third party modules? #270
-
Whats the best way to submit a couple of extra plugins I wrote? Do you think it's worth keeping a separate repo for third party modules? (and bringing it in as a subrepo?). Specifically I've created a mdevd & qmi-proxy plugin. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
The mdevd plugin is a bit tricky, I wanted to make sure that it runs first, like dbus. But I had to modify the modprobe & hotplug plugin because I want to add the mdevd plugin as a dependency. Perhaps there's a way to set a "soft" dependency here so if it exists it runs first, otherwise it falls back to bootmisc dependency.
|
Beta Was this translation helpful? Give feedback.
-
Nah, let's bring 'em in to finit main :) We can just make sure to have them disabled by default. I've already scheduled mdevd #195 for the next release, so that one's a no-brainer. Didn't know about QMI until today, but since it's an open source thing I wouldn't mind have that one also in Finit main. I've considered a 3rd party plugin repo before, but submodules is a mess to manage release-wise, so we'll take that bridge when we get to it. Regarding the mdevd dep. in hotplug and modprobe, you can just add it to the list, no need to #ifdef, if iẗ́s not available (not built) Finit will just skip the dependency. (Very much how I got the idea for condition soft deps we discussed the other day :) So, like this:
|
Beta Was this translation helpful? Give feedback.
-
Oh excellent that should make it much easier! Here's the modules: FYR qmi-proxy plugin is for libqmi, or specifically the qmicli cli tool for qmi_wwan.ko module so you can run multiple commands using the same lte device at once without worrying about allocating/releasing ids. For the hotplug.c plugin, I have to used this to decide what to run:
but I was thinking, we probably shouldn't even need the compile time define's if we are able to detect if mdevd plugin has been loaded or not, this would account for the dynamic plugins which are not there at compile time. Is there a way to check a module is loaded at run time? If the mdevd plugin has been loaded then use mdevd-coldplug, otherwise use normal mdev |
Beta Was this translation helpful? Give feedback.
-
Concluding this with the resulting repo -> https://github.com/troglobit/finit-plugins :-) |
Beta Was this translation helpful? Give feedback.
Concluding this with the resulting repo -> https://github.com/troglobit/finit-plugins :-)