diff options
| author | Andrei Gherzan <andrei@gherzan.com> | 2018-01-26 15:10:23 +0000 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.com> | 2018-01-26 16:50:42 +0000 |
| commit | 6235b0a8543bcf6704d0fe0156ab2b847a4ea0bc (patch) | |
| tree | a365d754e11884b30c45cd73d5a7cc289149f654 | |
| parent | 0202bc288176fdd3319ea7764c7b62d9772c8903 (diff) | |
| download | meta-raspberrypi-6235b0a8543bcf6704d0fe0156ab2b847a4ea0bc.tar.gz | |
bluez5: Use serial device alias for BT device
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
| -rw-r--r-- | recipes-connectivity/bluez5/bluez5/brcm43438.service | 2 | ||||
| -rw-r--r-- | recipes-connectivity/bluez5/bluez5_%.bbappend | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/recipes-connectivity/bluez5/bluez5/brcm43438.service b/recipes-connectivity/bluez5/bluez5/brcm43438.service index d57125c..c6e7456 100644 --- a/recipes-connectivity/bluez5/bluez5/brcm43438.service +++ b/recipes-connectivity/bluez5/bluez5/brcm43438.service | |||
| @@ -6,7 +6,7 @@ After=dev-ttyAMA0.device | |||
| 6 | 6 | ||
| 7 | [Service] | 7 | [Service] |
| 8 | Type=simple | 8 | Type=simple |
| 9 | ExecStart=/usr/bin/hciattach -n /dev/ttyAMA0 bcm43xx 921600 noflow - | 9 | ExecStart=/usr/bin/hciattach -n /dev/serial1 bcm43xx 921600 noflow - |
| 10 | 10 | ||
| 11 | [Install] | 11 | [Install] |
| 12 | WantedBy=multi-user.target | 12 | WantedBy=multi-user.target |
diff --git a/recipes-connectivity/bluez5/bluez5_%.bbappend b/recipes-connectivity/bluez5/bluez5_%.bbappend index eac8d40..c49d696 100644 --- a/recipes-connectivity/bluez5/bluez5_%.bbappend +++ b/recipes-connectivity/bluez5/bluez5_%.bbappend | |||
| @@ -36,6 +36,8 @@ FILES_${PN}_append_raspberrypi3 = " ${BCM_BT_FIRMWARE}" | |||
| 36 | 36 | ||
| 37 | SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " ${BCM_BT_SERVICE}" | 37 | SYSTEMD_SERVICE_${PN}_append_raspberrypi3 = " ${BCM_BT_SERVICE}" |
| 38 | 38 | ||
| 39 | RDEPENDS_${PN}_append_raspberrypi3 = " udev-rules-rpi" | ||
| 40 | |||
| 39 | # for raspberrypi0-wifi | 41 | # for raspberrypi0-wifi |
| 40 | SRC_URI_append_raspberrypi0-wifi = " ${BCM_BT_SOURCES}" | 42 | SRC_URI_append_raspberrypi0-wifi = " ${BCM_BT_SOURCES}" |
| 41 | 43 | ||
| @@ -46,3 +48,5 @@ do_install_append_raspberrypi0-wifi() { | |||
| 46 | FILES_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_FIRMWARE}" | 48 | FILES_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_FIRMWARE}" |
| 47 | 49 | ||
| 48 | SYSTEMD_SERVICE_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_SERVICE}" | 50 | SYSTEMD_SERVICE_${PN}_append_raspberrypi0-wifi = " ${BCM_BT_SERVICE}" |
| 51 | |||
| 52 | RDEPENDS_${PN}_append_raspebrrypi0-wifi = " udev-rules-rpi" | ||
