@@ -59,3 +59,18 @@ CONFFILES:${PN} = "${sysconfdir}/udev/mount.ignorelist"
RPROVIDES:${PN} = "udev-extra-rules"
RREPLACES:${PN} = "udev-extra-rules"
RCONFLICTS:${PN} = "udev-extra-rules"
+
+PACKAGES =+ "${PN}-automount ${PN}-autonet"
+
+FILES:${PN}-automount = " \
+ ${sysconfdir}/udev/rules.d/automount.rules \
+ ${sysconfdir}/udev/scripts/mount.sh \
+ ${sysconfdir}/udev/mount.ignorelist \
+"
+
+FILES:${PN}-autonet = " \
+ ${sysconfdir}/udev/rules.d/autonet.rules \
+ ${sysconfdir}/udev/scripts/network.sh \
+"
+
+RDEPENDS:${PN} = "${PN}-automount ${PN}-autonet"
Created two subpackages (${PN}-automount and ${PN}-autonet) to separate udev rules and scripts for automount and autonet functionality. If the image only needs storage devices to be auto-mounted or just needs network hotplug handling, splitting the packages let us choose automount or autonet package without having to care about other rules. This change does not save much space but helps avoid installing unnecessary scripts and rules. Signed-off-by: Vivek Puar <vpuar@qti.qualcomm.com> --- meta/recipes-core/udev/udev-extraconf_1.1.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+)