1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-01-07 15:04:46 +01:00
OpenVoiceOS/buildroot-external/package/mycroft-service/mycroft-service.mk
Peter Steenbergen 181bb4c98d MycroftOS: Bump mycroft to 19.8.5 and proper systemd support.
- Make it more robust
- In preparation for watchdog support
- Do not start Mycroft if network is not up
- Wait for internet connectivity
2019-12-21 18:54:56 +01:00

42 lines
2.2 KiB
Makefile

################################################################################
#
# mycroft-service
#
################################################################################
MYCROFT_SERVICE_VERSION = 0.1.0
MYCROFT_SERVICE_SITE = $(BR2_EXTERNAL_MYCROFTOS_PATH)/package/mycroft-service
MYCROFT_SERVICE_SITE_METHOD = local
MYCROFT_SERVICE_LICENSE = Apache License 2.0
MYCROFT_SERVICE_LICENSE_FILES = LICENSE
define MYCROFT_SERVICE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 644 $(@D)/mycroft.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft.service
$(INSTALL) -D -m 644 $(@D)/mycroft-messagebus.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-messagebus.service
$(INSTALL) -D -m 644 $(@D)/mycroft-audio.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-audio.service
$(INSTALL) -D -m 644 $(@D)/mycroft-voice.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-voice.service
$(INSTALL) -D -m 644 $(@D)/mycroft-enclosure.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-enclosure.service
$(INSTALL) -D -m 644 $(@D)/mycroft-skills.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-skills.service
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -fs ../../../../usr/lib/systemd/system/mycroft.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mycroft.service
ln -fs ../../../../usr/lib/systemd/system/mycroft-messagebus.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mycroft-messagebus.service
ln -fs ../../../../usr/lib/systemd/system/mycroft-audio.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mycroft-audio.service
ln -fs ../../../../usr/lib/systemd/system/mycroft-voice.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mycroft-voice.service
ln -fs ../../../../usr/lib/systemd/system/mycroft-enclosure.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mycroft-enclosure.service
ln -fs ../../../../usr/lib/systemd/system/mycroft-skills.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/mycroft-skills.service
endef
$(eval $(generic-package))