summaryrefslogtreecommitdiff
path: root/recipes-core/udev/eudev_3.1.5.bbappend
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/udev/eudev_3.1.5.bbappend')
-rw-r--r--recipes-core/udev/eudev_3.1.5.bbappend20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-core/udev/eudev_3.1.5.bbappend b/recipes-core/udev/eudev_3.1.5.bbappend
new file mode 100644
index 0000000..e793d1d
--- /dev/null
+++ b/recipes-core/udev/eudev_3.1.5.bbappend
@@ -0,0 +1,20 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
+
+PR .= ".mlinux2"
+
+# add custom rules for persistent modem device names
+SRC_URI += " file://cellular_radios.rules \
+ file://${MACHINE}.rules \
+ "
+
+SRC_URI_append_mtcdt = " file://accessory_ethernet.rules \
+ "
+
+do_install_append() {
+ install -m 644 ${WORKDIR}/cellular_radios.rules ${D}${sysconfdir}/udev/rules.d/
+ install -m 644 ${WORKDIR}/${MACHINE}.rules ${D}${sysconfdir}/udev/rules.d/
+}
+
+do_install_append_mtcdt() {
+ install -m 644 ${WORKDIR}/accessory_ethernet.rules ${D}${sysconfdir}/udev/rules.d/
+}