meta-digi/meta-digi-arm/recipes-core/udev/udev-extraconf_1.1.bbappend

25 lines
725 B
Plaintext

# Copyright (C) 2013 Digi International.
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
SRC_URI += " \
file://mount_bootparts.sh \
file://mount_partition.sh \
"
do_install_append() {
install -m 0755 ${WORKDIR}/mount_bootparts.sh ${D}${sysconfdir}/udev/scripts/
install -m 0755 ${WORKDIR}/mount_partition.sh ${D}${sysconfdir}/udev/scripts/
# Bluetooth tty symlink
if [ -n "${BT_TTY}" ]; then
printf "%s\n%s\n" \
"# Symlink to the bluetooth tty" \
"KERNEL==\"${BT_TTY}\", MODE=\"0660\", GROUP=\"dialout\", SYMLINK+=\"ttyBt\"" \
>> ${D}${sysconfdir}/udev/rules.d/localextra.rules
fi
}
# BT_TTY is machine specific (defined in machine config file)
PACKAGE_ARCH = "${MACHINE_ARCH}"