diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2018-01-31 09:02:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-31 09:02:13 +0100 |
commit | 5e6b1e881dc75123fa80db5eb4c5a1a9a83a76d9 (patch) | |
tree | 6262dc58283dced59f80b1302ddf005a60eea86e | |
parent | f903f757a91fcc192ece9c9cb58f1ab221b7e65a (diff) | |
parent | 5f033dd60d20ce332d3f1d8d44e296791660d6d3 (diff) | |
download | meta-updater-5e6b1e881dc75123fa80db5eb4c5a1a9a83a76d9.tar.gz |
Merge pull request #245 from advancedtelematic/bugfix/rm-sota-toml
Bugfix/rm sota toml
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-hsm-prov.bb | 9 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-implicit-prov.bb | 6 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr_git.bb | 1 |
3 files changed, 9 insertions, 7 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-hsm-prov.bb b/recipes-sota/aktualizr/aktualizr-hsm-prov.bb index 944607c..5f8da3c 100644 --- a/recipes-sota/aktualizr/aktualizr-hsm-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-hsm-prov.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | SUMMARY = "Aktualizr configuration with HSM support" | 1 | SUMMARY = "Aktualizr configuration with HSM support" |
2 | DESCRIPTION = "Systemd service and configurations for Aktualizr, the SOTA Client application written in C++" | 2 | DESCRIPTION = "Systemd service and configurations for HSM provisioning with Aktualizr, the SOTA Client application written in C++" |
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" |
4 | SECTION = "base" | 4 | SECTION = "base" |
5 | LICENSE = "MPL-2.0" | 5 | LICENSE = "MPL-2.0" |
@@ -14,14 +14,15 @@ SRC_URI = " \ | |||
14 | PV = "1.0" | 14 | PV = "1.0" |
15 | PR = "6" | 15 | PR = "6" |
16 | 16 | ||
17 | |||
18 | require environment.inc | 17 | require environment.inc |
19 | require credentials.inc | 18 | require credentials.inc |
20 | 19 | ||
21 | do_install() { | 20 | do_install() { |
22 | install -d ${D}${libdir}/sota | 21 | install -d ${D}${libdir}/sota |
23 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ | 22 | if [ -n "${SOTA_PACKED_CREDENTIALS}" ]; then |
24 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_hsm_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | 23 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ |
24 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_hsm_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | ||
25 | fi | ||
25 | } | 26 | } |
26 | 27 | ||
27 | FILES_${PN} = " \ | 28 | FILES_${PN} = " \ |
diff --git a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb index b5bf420..cf3d22c 100644 --- a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb | |||
@@ -4,15 +4,15 @@ HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | |||
4 | SECTION = "base" | 4 | SECTION = "base" |
5 | LICENSE = "MPL-2.0" | 5 | LICENSE = "MPL-2.0" |
6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | 6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" |
7 | |||
7 | DEPENDS = "aktualizr-native" | 8 | DEPENDS = "aktualizr-native" |
8 | RDEPENDS_${PN} = "aktualizr" | 9 | RDEPENDS_${PN} = "aktualizr" |
9 | PV = "1.0" | ||
10 | PR = "1" | ||
11 | 10 | ||
12 | SRC_URI = " \ | 11 | SRC_URI = " \ |
13 | file://LICENSE \ | 12 | file://LICENSE \ |
14 | " | 13 | " |
15 | 14 | PV = "1.0" | |
15 | PR = "1" | ||
16 | 16 | ||
17 | require environment.inc | 17 | require environment.inc |
18 | require credentials.inc | 18 | require credentials.inc |
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 495162e..beaf893 100644 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -42,6 +42,7 @@ do_install_append () { | |||
42 | } | 42 | } |
43 | do_install_append_class-target () { | 43 | do_install_append_class-target () { |
44 | rm -f ${D}${bindir}/aktualizr_implicit_writer | 44 | rm -f ${D}${bindir}/aktualizr_implicit_writer |
45 | rm -f ${D}${libdir}/sota/sota.toml | ||
45 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '', 'rm -f ${D}${bindir}/example-interface', d)} | 46 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '', 'rm -f ${D}${bindir}/example-interface', d)} |
46 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-isotp-example', '', 'rm -f ${D}${bindir}/isotp-test-interface', d)} | 47 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-isotp-example', '', 'rm -f ${D}${bindir}/isotp-test-interface', d)} |
47 | 48 | ||