Install a udev rules file in the unicens-config recipe to set the
group and SMACK label on the inic character devices so they are
accessible by services with the new audio permission.
Bug-AGL: SPEC-2591
Change-Id: I52135cf62ca8bfab0badd8850d49639d86ed73c1
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
--- /dev/null
+# 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}="*"
SRC_URI = "\
file://unicens-config.service \
file://unicens-config.sh \
+ file://55-inic.rules \
"
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}"