[Headless] Only install gui/weston systemd service files if mycroft-gui is selected.

This commit is contained in:
j1nx 2020-11-20 12:33:04 +01:00
parent f3ef0ac143
commit ad54e9e207
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,8 @@ define MYCROFT_SERVICE_INSTALL_TARGET_CMDS
$(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
ifeq ($(BR2_PACKAGE_MYCROFT_GUI),y)
$(INSTALL) -D -m 644 $(@D)/mycroft-gui.service \
$(TARGET_DIR)/usr/lib/systemd/system/mycroft-gui.service
$(INSTALL) -D -m 644 $(@D)/weston.service \
@ -31,6 +33,7 @@ define MYCROFT_SERVICE_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/etc/xdg/weston
$(INSTALL) -D -m 644 $(@D)/weston.ini \
$(TARGET_DIR)/etc/xdg/weston/weston.ini
endif
endef
$(eval $(generic-package))