2018-11-02 17:07:53 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# respeaker
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-12-21 21:23:33 +01:00
|
|
|
RESPEAKER_VERSION = 8cce4e8ffa77e1e2b89812e5e2ccf6cfbc1086cf
|
|
|
|
RESPEAKER_SITE = $(call github,respeaker,seeed-voicecard,$(RESPEAKER_VERSION))
|
2018-11-02 17:07:53 +01:00
|
|
|
RESPEAKER_LICENSE = GNU General Public License v3.0
|
2020-05-12 20:02:25 +02:00
|
|
|
RESPEAKER_DEPENDENCIES = rpi-firmware dtc
|
2018-11-02 17:07:53 +01:00
|
|
|
|
|
|
|
$(eval $(kernel-module))
|
|
|
|
|
|
|
|
define RESPEAKER_INSTALL_TARGET_CMDS
|
2020-10-06 21:23:38 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/respeaker/seeed-voicecard.service \
|
2019-02-04 20:34:58 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/seeed-voicecard.service
|
|
|
|
|
2019-11-17 14:30:43 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/voicecard
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/*.state $(TARGET_DIR)/etc/voicecard
|
|
|
|
|
2020-10-06 21:23:38 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/respeaker/seeed-voicecard \
|
2019-09-09 15:25:51 +02:00
|
|
|
$(TARGET_DIR)/usr/bin
|
2018-11-02 17:07:53 +01:00
|
|
|
|
2021-02-05 16:10:50 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/seeed-4mic-voicecard.dtbo $(BINARIES_DIR)/overlays/
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/seeed-8mic-voicecard.dtbo $(BINARIES_DIR)/overlays/
|
2019-02-04 20:34:58 +01:00
|
|
|
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pulseaudio/pulse_config_4mic/seeed-voicecard.conf \
|
|
|
|
$(TARGET_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/seeed-voicecard-4mic.conf
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pulseaudio/pulse_config_6mic/seeed-voicecard.conf \
|
|
|
|
$(TARGET_DIR)/usr/share/pulseaudio/alsa-mixer/profile-sets/seeed-voicecard-8mic.conf
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pulseaudio/91-seeedvoicecard.rules \
|
|
|
|
$(TARGET_DIR)/etc/udev/rules.d/91-seeedvoicecard.rules
|
|
|
|
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pulseaudio/pulse_config_4mic/default.pa \
|
|
|
|
$(TARGET_DIR)/etc/pulse/seeed-voicecard-4mic-default.pa
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pulseaudio/pulse_config_4mic/daemon.conf \
|
|
|
|
$(TARGET_DIR)/etc/pulse/seeed-voicecard-4mic-daemon.conf
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pulseaudio/pulse_config_6mic/default.pa \
|
|
|
|
$(TARGET_DIR)/etc/pulse/seeed-voicecard-8mic-default.pa
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pulseaudio/pulse_config_6mic/daemon.conf \
|
|
|
|
$(TARGET_DIR)/etc/pulse/seeed-voicecard-8mic-daemon.conf
|
2018-11-02 17:07:53 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|