diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2018-04-27 09:35:01 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2018-05-03 10:55:36 +0200 |
commit | 1f3231cbc3257eaebbf100df10b2ac2e70dd6671 (patch) | |
tree | 1df9310c9f0378492e7b795aba630684d96f2fdf /recipes-sota/config/aktualizr-example-interface.bb | |
parent | c04e7bded7915e6bc9c70128d4a8be0cf7dec7cd (diff) | |
download | meta-updater-1f3231cbc3257eaebbf100df10b2ac2e70dd6671.tar.gz |
Move example-interface from sota.env to its own recipe.
SOTA_LEGACY_SECONDARY_INTERFACE is now obsolete. Instead, include this:
IMAGE_INSTALL_append = " aktualizr-examples aktualizr-example-interface "
Diffstat (limited to 'recipes-sota/config/aktualizr-example-interface.bb')
-rw-r--r-- | recipes-sota/config/aktualizr-example-interface.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-sota/config/aktualizr-example-interface.bb b/recipes-sota/config/aktualizr-example-interface.bb new file mode 100644 index 0000000..05f63bf --- /dev/null +++ b/recipes-sota/config/aktualizr-example-interface.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "Aktualizr example interface" | ||
2 | DESCRIPTION = "Aktualizr example interface for legacy secondaries" | ||
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "MPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | ||
7 | |||
8 | DEPENDS = "aktualizr " | ||
9 | SRC_URI = " \ | ||
10 | file://LICENSE \ | ||
11 | " | ||
12 | |||
13 | do_install_append () { | ||
14 | install -m 0700 -d ${D}${libdir}/sota/conf.d | ||
15 | echo "[uptane]\nlegacy_interface = \"/usr/bin/example-interface\"\n" > ${D}${libdir}/sota/conf.d/example-interface.toml | ||
16 | } | ||
17 | |||
18 | FILES_${PN} = " \ | ||
19 | ${libdir}/sota/conf.d/example-interface.toml \ | ||
20 | " | ||
21 | |||
22 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||