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
This commit is contained in:
parent
580b4be2ca
commit
a77ced658e
|
|
@ -14,4 +14,6 @@ RDEPENDS:${PN} = " \
|
|||
\
|
||||
chrony \
|
||||
minicom \
|
||||
\
|
||||
udev-rules-nmhw \
|
||||
"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
# Copyright (C) 2019 Ramon Moesching <ramon.moesching@netmodule.com>
|
||||
# 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
|
||||
}
|
||||
Loading…
Reference in New Issue