From a77ced658e0f1efff726be737aa565218d6c79a5 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Thu, 29 Feb 2024 16:31:37 +0100 Subject: [PATCH] nwl-distro: Add udev-rules to test tools These udev rules are used to "standardized" the names of the different interfaces (mainly GNSS and WWAN). id:502637 --- .../packagegroup-nwl-test-tools.bb | 2 ++ .../recipes-core/udev/udev-rules-nmhw_git.bb | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 layers/meta-nwl-distro/recipes-core/udev/udev-rules-nmhw_git.bb diff --git a/layers/meta-nwl-distro/recipes-core/packagegroups/packagegroup-nwl-test-tools.bb b/layers/meta-nwl-distro/recipes-core/packagegroups/packagegroup-nwl-test-tools.bb index ae05658..c659b6a 100644 --- a/layers/meta-nwl-distro/recipes-core/packagegroups/packagegroup-nwl-test-tools.bb +++ b/layers/meta-nwl-distro/recipes-core/packagegroups/packagegroup-nwl-test-tools.bb @@ -14,4 +14,6 @@ RDEPENDS:${PN} = " \ \ chrony \ minicom \ + \ + udev-rules-nmhw \ " diff --git a/layers/meta-nwl-distro/recipes-core/udev/udev-rules-nmhw_git.bb b/layers/meta-nwl-distro/recipes-core/udev/udev-rules-nmhw_git.bb new file mode 100644 index 0000000..0be072c --- /dev/null +++ b/layers/meta-nwl-distro/recipes-core/udev/udev-rules-nmhw_git.bb @@ -0,0 +1,25 @@ +# Copyright (C) 2019 Ramon Moesching +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "udev rules for netmodule router and oem hardware" +HOMEPAGE = "netmodule.com" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +SECTION = "base" + +S = "${WORKDIR}/git" + +SRC_URI = "git://gitlab.com/netmodule/tools/udev-rules-nmhw;protocol=ssh;user=git;branch=master;" +SRCREV = "e2fe34ea2d0c1ebd08d26bf90197b5625765e242" + +do_install () { + install -d ${D}${libdir}/udev/rules.d + + if ls ${S}/machines/${MACHINE}/*.rules 1> /dev/null 2>&1 ; then + install -m 0644 ${S}/machines/${MACHINE}/*.rules ${D}${libdir}/udev/rules.d/ + if [ -f ${S}/machines/${MACHINE}/*.sh ]; then + install -m 0755 ${S}/machines/${MACHINE}/*.sh ${D}${libdir}/udev/rules.d/ + fi + fi +}