2018-11-02 17:07:53 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# respeaker
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-02-04 20:34:58 +01:00
|
|
|
RESPEAKER_VERSION = 6c6b9ab7deb607aa985048ea170428729afc07a9
|
2018-11-02 17:07:53 +01:00
|
|
|
RESPEAKER_SITE = $(call github,respeaker,seeed-voicecard,$(RESPEAKER_VERSION))
|
|
|
|
RESPEAKER_LICENSE = GNU General Public License v3.0
|
2018-11-02 22:32:01 +01:00
|
|
|
RESPEAKER_DEPENDENCIES = rpi-firmware rpi-userland dtc
|
2018-11-02 17:07:53 +01:00
|
|
|
|
|
|
|
$(eval $(kernel-module))
|
|
|
|
|
|
|
|
define RESPEAKER_INSTALL_TARGET_CMDS
|
2019-02-04 20:34:58 +01:00
|
|
|
$(INSTALL) -D -m 644 $(@D)/seeed-voicecard.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/seeed-voicecard.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants
|
|
|
|
ln -fs ../../../../usr/lib/systemd/system/seeed-voicecard.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/sysinit.target.wants/seeed-voicecard.service
|
|
|
|
|
|
|
|
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_MYCROFTOS_PATH)/package/respeaker/respeaker.conf \
|
|
|
|
$(TARGET_DIR)/etc/modules-load.d/respeaker.conf
|
2018-11-02 17:07:53 +01:00
|
|
|
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/voicecard
|
|
|
|
rm $(@D)/dkms.conf
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/*.conf $(TARGET_DIR)/etc/voicecard
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/*.state $(TARGET_DIR)/etc/voicecard
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/seeed-voicecard $(TARGET_DIR)/usr/bin
|
|
|
|
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/seeed-2mic-voicecard.dtbo $(BINARIES_DIR)/rpi-firmware/overlays/
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/seeed-4mic-voicecard.dtbo $(BINARIES_DIR)/rpi-firmware/overlays/
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/seeed-8mic-voicecard.dtbo $(BINARIES_DIR)/rpi-firmware/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))
|