diff options
author | Alistair Francis <alistair.francis@wdc.com> | 2019-04-05 14:41:54 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-04-06 08:22:22 -0700 |
commit | fb097550fdc5e8a7de6bdceb87d8aa161b94eb06 (patch) | |
tree | 73a0e690aee2c7923e4531ac92eba0076fc105a2 /meta-multimedia/recipes-multimedia/mycroft/files/0005-dev_setup.sh-Remove-the-test-setup-dependency.patch | |
parent | 47f4a924102d014fcd5e68170b98392cfa1f5f44 (diff) | |
download | meta-openembedded-fb097550fdc5e8a7de6bdceb87d8aa161b94eb06.tar.gz |
mycroft: Initial commit
Mycroft is an open source speech assistant. It traditionally runs inside
Python virtual env and installs all of the pip and native packages and
programs that is needs at setup. This generally includes a native gcc
build for some of the binaries in the pip packages.
This patch adds Mycroft support and edits the source to remove the
Python venv usage so we can just run in standard Python world. This
allows us to use the preinstalled Python packages where avaliable and
avoid installing too much on the target at runtime. At the moment we
still require a few simple Python packages to be installed but we don't
requrie any target compilation.
Hopefully in the future we can remove all of the runtime install
requirements by adding all the Python packages to the rootFS pre-boot
and setting up the other files/directories as required during the build
process.
This patch also adds two systemd services. The first will setup mycroft
on boot, the second will start the mycroft voice assistant.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/mycroft/files/0005-dev_setup.sh-Remove-the-test-setup-dependency.patch')
-rw-r--r-- | meta-multimedia/recipes-multimedia/mycroft/files/0005-dev_setup.sh-Remove-the-test-setup-dependency.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/mycroft/files/0005-dev_setup.sh-Remove-the-test-setup-dependency.patch b/meta-multimedia/recipes-multimedia/mycroft/files/0005-dev_setup.sh-Remove-the-test-setup-dependency.patch new file mode 100644 index 0000000000..5ae8683764 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/mycroft/files/0005-dev_setup.sh-Remove-the-test-setup-dependency.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 7fc38ae0dec30789fa0d365f1764f4950b700a98 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alistair Francis <alistair.francis@wdc.com> | ||
3 | Date: Tue, 2 Apr 2019 16:52:44 -0700 | ||
4 | Subject: [PATCH 5/5] dev_setup.sh: Remove the test setup dependency | ||
5 | |||
6 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | ||
7 | Upstream-Status: Inappropriate [embedded specific] | ||
8 | |||
9 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | ||
10 | --- | ||
11 | dev_setup.sh | 4 ---- | ||
12 | 1 file changed, 4 deletions(-) | ||
13 | |||
14 | diff --git a/dev_setup.sh b/dev_setup.sh | ||
15 | index c6aa783e1ef..bcfaa0c16c2 100755 | ||
16 | --- a/dev_setup.sh | ||
17 | +++ b/dev_setup.sh | ||
18 | @@ -353,10 +353,6 @@ if ! pip3 install -r requirements.txt ; then | ||
19 | fi | ||
20 | fi | ||
21 | |||
22 | -if ! pip3 install -r test-requirements.txt ; then | ||
23 | - echo "Warning test requirements wasn't installed, Note: normal operation should still work fine..." | ||
24 | -fi | ||
25 | - | ||
26 | SYSMEM=$( free | awk '/^Mem:/ { print $2 }' ) | ||
27 | MAXCORES=$(($SYSMEM / 512000)) | ||
28 | MINCORES=1 | ||
29 | -- | ||
30 | 2.21.0 | ||
31 | |||