mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2024-12-20 04:47:43 +01:00
04b3fff53e
RPI BT chip needs some extra work that is and can be solved with an extra service running before bluetooth.service and btspeaker.service
31 lines
1.1 KiB
Makefile
31 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# btspeaker
|
|
#
|
|
################################################################################
|
|
|
|
BTSPEAKER_VERSION = 0.1.0
|
|
BTSPEAKER_SITE = $(BR2_EXTERNAL_MYCROFTOS_PATH)/package/btspeaker
|
|
BTSPEAKER_SITE_METHOD = local
|
|
BTSPEAKER_LICENSE = Apache License 2.0
|
|
BTSPEAKER_LICENSE_FILES = LICENSE
|
|
|
|
define BTSPEAKER_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 644 $(@D)/btspeaker.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/btspeaker.service
|
|
|
|
$(INSTALL) -D -m 644 $(@D)/brcm_bt.service.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/brcm_bt.service.service
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
ln -fs ../../../../usr/lib/systemd/system/brcm_bt.service \
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/brcm_bt.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/bluetooth
|
|
$(INSTALL) -D -m 644 $(@D)/main.conf \
|
|
$(TARGET_DIR)/etc/bluetooth/main.conf
|
|
$(INSTALL) -D -m 600 $(@D)/pin.conf \
|
|
$(TARGET_DIR)/etc/bluetooth/pin.conf
|
|
endef
|
|
|
|
$(eval $(generic-package))
|