From 986d5e6c7f94415db900ab77c99d82c12b018234 Mon Sep 17 00:00:00 2001 From: j1nx Date: Mon, 7 Jun 2021 12:34:26 +0200 Subject: [PATCH] Add skill-installer to pre installed skills --- buildroot-external/Config.in | 1 + .../configs/rpi4_64-gui_defconfig | 1 + .../package/mycroft-skill-installer/Config.in | 6 ++++++ .../mycroft-skill-installer.mk | 20 +++++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 buildroot-external/package/mycroft-skill-installer/Config.in create mode 100644 buildroot-external/package/mycroft-skill-installer/mycroft-skill-installer.mk diff --git a/buildroot-external/Config.in b/buildroot-external/Config.in index ca31e4d7..3173a1c6 100644 --- a/buildroot-external/Config.in +++ b/buildroot-external/Config.in @@ -197,6 +197,7 @@ menu "Mycroft A.I. Skills" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-balena-wifi-setup/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-configuration/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-date-time/Config.in" + source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-installer/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-ovos-enclosure/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-ovos-homescreen/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/mycroft-skill-ovos-mycroftgui/Config.in" diff --git a/buildroot-external/configs/rpi4_64-gui_defconfig b/buildroot-external/configs/rpi4_64-gui_defconfig index 7170ba30..cd1fa887 100644 --- a/buildroot-external/configs/rpi4_64-gui_defconfig +++ b/buildroot-external/configs/rpi4_64-gui_defconfig @@ -608,6 +608,7 @@ BR2_PACKAGE_MYCROFT_SKILL_ALARM=y BR2_PACKAGE_MYCROFT_SKILL_BALENA_WIFI_SETUP=y BR2_PACKAGE_MYCROFT_SKILL_CONFIGURATION=y BR2_PACKAGE_MYCROFT_SKILL_DATE_TIME=y +BR2_PACKAGE_MYCROFT_SKILL_INSTALLER=y BR2_PACKAGE_MYCROFT_SKILL_OVOS_ENCLOSURE=y BR2_PACKAGE_MYCROFT_SKILL_OVOS_HOMESCREEN=y BR2_PACKAGE_MYCROFT_SKILL_OVOS_MYCROFTGUI=y diff --git a/buildroot-external/package/mycroft-skill-installer/Config.in b/buildroot-external/package/mycroft-skill-installer/Config.in new file mode 100644 index 00000000..32ea42fb --- /dev/null +++ b/buildroot-external/package/mycroft-skill-installer/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_MYCROFT_SKILL_INSTALLER + bool "mycroft-skill-installer" + help + Add and remove Mycroft Skills + + https://github.com/MycroftAI/skill-installer diff --git a/buildroot-external/package/mycroft-skill-installer/mycroft-skill-installer.mk b/buildroot-external/package/mycroft-skill-installer/mycroft-skill-installer.mk new file mode 100644 index 00000000..558b121a --- /dev/null +++ b/buildroot-external/package/mycroft-skill-installer/mycroft-skill-installer.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# mycroft-skill-installer +# +################################################################################ + +MYCROFT_SKILL_INSTALLER_VERSION = cea3b98808aee400ece730dbdcd8957368d50983 +MYCROFT_SKILL_INSTALLER_SITE = git://github.com/MycroftAI/skill-installer +MYCROFT_SKILL_INSTALLER_SITE_METHOD = git +MYCROFT_SKILL_INSTALLER_DIRLOCATION = home/mycroft/.local/share/mycroft/skills +MYCROFT_SKILL_INSTALLER_DIRNAME = mycroft-installer.mycroftai + +define MYCROFT_SKILL_INSTALLER_INSTALL_TARGET_CMDS + mkdir -p $(TARGET_DIR)/$(MYCROFT_SKILL_INSTALLER_DIRLOCATION)/$(MYCROFT_SKILL_INSTALLER_DIRNAME) + cp -dpfr $(@D)/* $(TARGET_DIR)/$(MYCROFT_SKILL_INSTALLER_DIRLOCATION)/$(MYCROFT_SKILL_INSTALLER_DIRNAME) + cp -dpfr $(MYCROFT_SKILL_INSTALLER_DL_DIR)/git/.git* \ + $(TARGET_DIR)/$(MYCROFT_SKILL_INSTALLER_DIRLOCATION)/$(MYCROFT_SKILL_INSTALLER_DIRNAME) +endef + +$(eval $(generic-package))