aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-config/unicens-config/files/55-inic.rules4
-rw-r--r--recipes-config/unicens-config/unicens-config.bb9
2 files changed, 8 insertions, 5 deletions
diff --git a/recipes-config/unicens-config/files/55-inic.rules b/recipes-config/unicens-config/files/55-inic.rules
new file mode 100644
index 000000000..2da65cb80
--- /dev/null
+++ b/recipes-config/unicens-config/files/55-inic.rules
@@ -0,0 +1,4 @@
+# OS81118 devices for Microchip UNICENS
+KERNEL=="inic-usb-crx", SUBSYSTEM=="most_cdev_aim", GROUP="audio", SECLABEL{smack}="*"
+KERNEL=="inic-usb-ctx", SUBSYSTEM=="most_cdev_aim", GROUP="audio", SECLABEL{smack}="*"
+KERNEL=="inic-usb-itx1", SUBSYSTEM=="most_cdev_aim", GROUP="audio", SECLABEL{smack}="*"
diff --git a/recipes-config/unicens-config/unicens-config.bb b/recipes-config/unicens-config/unicens-config.bb
index f33ffb295..4dd20748f 100644
--- a/recipes-config/unicens-config/unicens-config.bb
+++ b/recipes-config/unicens-config/unicens-config.bb
@@ -7,6 +7,7 @@ RDEPENDS_${PN} = "bash"
SRC_URI = "\
file://unicens-config.service \
file://unicens-config.sh \
+ file://55-inic.rules \
"
@@ -16,17 +17,15 @@ SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "unicens-config.service"
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
-do_configure () {
-}
-
-do_compile() {
-}
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
do_install() {
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/unicens-config.service ${D}${systemd_system_unitdir}
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/unicens-config.sh ${D}${bindir}
+ install -D -m 0644 ${WORKDIR}/55-inic.rules ${D}${sysconfdir}/udev/rules.d/55-inic.rules
}
FILES_${PN} += "${systemd_system_unitdir}"