udev-extraconf: create /dev/ttyXBee symlink to XBee uart

https://jira.digi.com/browse/DEL-6903

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2020-01-15 18:05:48 +01:00
parent f276827fd8
commit c959a88393
6 changed files with 19 additions and 0 deletions

View File

@ -44,6 +44,9 @@ BT_DEVICE_NAME ?= "cc6qp"
# Bluetooth tty
BT_TTY ?= "ttymxc1"
# XBee
XBEE_TTY ?= "ttymxc4"
# U-Boot script to be copied to the boot image
BOOT_SCRIPTS = "boot.scr:boot.scr"

View File

@ -46,6 +46,9 @@ BT_DEVICE_NAME ?= "cc6"
# Bluetooth tty
BT_TTY ?= "ttymxc1"
# XBee
XBEE_TTY ?= "ttymxc4"
# U-Boot script to be copied to the boot image
BOOT_SCRIPTS = "boot.scr:boot.scr"

View File

@ -35,6 +35,9 @@ SERIAL_CONSOLES ?= "115200;ttymxc4"
# Bluetooth tty
BT_TTY ?= "ttymxc0"
# XBee
XBEE_TTY ?= "ttymxc1"
# U-Boot script to be copied to the boot image
BOOT_SCRIPTS = "boot.scr:boot.scr"

View File

@ -27,6 +27,7 @@ BT_TTY ?= "ttymxc1"
# XBee2
XBEE_RESET_N_GPIO ?= "8"
XBEE_SLEEP_RQ_GPIO ?= "7"
XBEE_TTY ?= "ttymxc3"
# U-Boot script to be copied to the boot image
BOOT_SCRIPTS = "boot.scr:boot.scr"

View File

@ -28,6 +28,7 @@ BT_TTY ?= "ttyLP1"
# XBee
XBEE_RESET_N_GPIO ?= "220"
XBEE_SLEEP_RQ_GPIO ?= "216"
XBEE_TTY ?= "ttyMCA0"
# U-Boot script to be copied to the boot image
BOOT_SCRIPTS = "boot.scr:boot.scr"

View File

@ -22,6 +22,14 @@ do_install_append() {
>> ${D}${sysconfdir}/udev/rules.d/localextra.rules
fi
# XBee TTY symlink
if [ -n "${XBEE_TTY}" ]; then
printf "%s\n%s\n" \
"# Symlink to the XBee tty" \
"KERNEL==\"${XBEE_TTY}\", MODE=\"0660\", GROUP=\"tty\", SYMLINK+=\"ttyXBee\"" \
>> ${D}${sysconfdir}/udev/rules.d/localextra.rules
fi
install -d ${D}${sysconfdir}/modprobe.d
install -m 0644 ${WORKDIR}/blacklist.conf ${D}${sysconfdir}/modprobe.d
}