diff mbox series

udev-extraconf: Split automount and autonet into seperate packages

Message ID 20251121061252.2644203-1-vpuar@qti.qualcomm.com
State Accepted, archived
Commit 08662d71cd357c29c47dc42ead1d9106c584a1b8
Headers show
Series udev-extraconf: Split automount and autonet into seperate packages | expand

Commit Message

Vivek Puar Nov. 21, 2025, 6:12 a.m. UTC
Created two subpackages (${PN}-automount and ${PN}-autonet) to separate
udev rules and scripts for automount and autonet functionality. This allows 
selective installation, and reduces unnecessary dependencies for systems 
that only need one feature.

Signed-off-by: Vivek Puar <vpuar@qti.qualcomm.com>
---
 meta/recipes-core/udev/udev-extraconf_1.1.bb | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Jose Quaresma Nov. 21, 2025, 4:19 p.m. UTC | #1
Hi Vivek

Vivek Puar via lists.openembedded.org <vpuar=
qti.qualcomm.com@lists.openembedded.org> escreveu (sexta, 21/11/2025 à(s)
06:13):

> Created two subpackages (${PN}-automount and ${PN}-autonet) to separate
> udev rules and scripts for automount and autonet functionality. This
> allows
> selective installation, and reduces unnecessary dependencies for systems
> that only need one feature.
>
> Signed-off-by: Vivek Puar <vpuar@qti.qualcomm.com>
> ---
>  meta/recipes-core/udev/udev-extraconf_1.1.bb | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/meta/recipes-core/udev/udev-extraconf_1.1.bb
> b/meta/recipes-core/udev/udev-extraconf_1.1.bb
> index 2ba6606c05..7a63773d69 100644
> --- a/meta/recipes-core/udev/udev-extraconf_1.1.bb
> +++ b/meta/recipes-core/udev/udev-extraconf_1.1.bb
> @@ -59,3 +59,16 @@ 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 \
> +"
>

Can you also all these new packages in the runtime depends so the
behaviour is like before?

RDEPENDS:${PN} = "${PN}-automount ${PN}-autonet"

Thanks for the patch.

Jose
Vivek Puar Nov. 22, 2025, 4:01 p.m. UTC | #2
On Fri, Nov 21, 2025 at 09:49 PM, Jose Quaresma wrote:

> 
> 
> Can you also all these new packages in the runtime depends so the
> behaviour is like before?
> 
> RDEPENDS:${PN} = "${PN}-automount ${PN}-autonet"
> 
> Thanks for the patch.
> 
> Jose
> 
> 

Sure will update.

Regards,
Vivek
diff mbox series

Patch

diff --git a/meta/recipes-core/udev/udev-extraconf_1.1.bb b/meta/recipes-core/udev/udev-extraconf_1.1.bb
index 2ba6606c05..7a63773d69 100644
--- a/meta/recipes-core/udev/udev-extraconf_1.1.bb
+++ b/meta/recipes-core/udev/udev-extraconf_1.1.bb
@@ -59,3 +59,16 @@  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 \
+"