summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr
diff options
context:
space:
mode:
authorMike Sul <ext-mykhaylo.sul@here.com>2019-07-01 15:07:47 +0300
committerMykhaylo Sul <ext-mykhaylo.sul@here.com>2019-07-19 21:57:00 +0200
commit197301a7c39f3f21679c246febc9d43c191221c9 (patch)
tree4bdc225c95685204b8b3f2cc58d00887a30acae9 /recipes-sota/aktualizr
parent6deee4428f148bf6531024634b1d68c56baed69d (diff)
downloadmeta-updater-197301a7c39f3f21679c246febc9d43c191221c9.tar.gz
OTA-2488: Remove SOTA_SECONDARY_CONFIG_DIR configuration variable (old way to configure secondaries). Bump corresponding version of aktualizr.
Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
Diffstat (limited to 'recipes-sota/aktualizr')
-rw-r--r--recipes-sota/aktualizr/aktualizr_git.bb12
1 files changed, 1 insertions, 11 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb
index 28c51d9..8c59f57 100644
--- a/recipes-sota/aktualizr/aktualizr_git.bb
+++ b/recipes-sota/aktualizr/aktualizr_git.bb
@@ -31,7 +31,7 @@ SRC_URI = " \
31SRC_URI[md5sum] = "e104ccd4f32e52571a5fc0e5042db050" 31SRC_URI[md5sum] = "e104ccd4f32e52571a5fc0e5042db050"
32SRC_URI[sha256sum] = "c590be1a57523bfe097af82279eda5c97cf40ae47fb27162cf33c469702c8a9b" 32SRC_URI[sha256sum] = "c590be1a57523bfe097af82279eda5c97cf40ae47fb27162cf33c469702c8a9b"
33 33
34SRCREV = "fce5854ff10e7efd52d69bbaf68dc2af990d5746" 34SRCREV = "9c592cf9d8dfcd995d47753f2be7bd1a2b56c7da"
35BRANCH ?= "master" 35BRANCH ?= "master"
36 36
37S = "${WORKDIR}/git" 37S = "${WORKDIR}/git"
@@ -106,16 +106,6 @@ do_install_append () {
106 printf "[provision]\nprimary_ecu_hardware_id = ${SOTA_HARDWARE_ID}\n" > ${D}${libdir}/sota/conf.d/40-hardware-id.toml 106 printf "[provision]\nprimary_ecu_hardware_id = ${SOTA_HARDWARE_ID}\n" > ${D}${libdir}/sota/conf.d/40-hardware-id.toml
107 fi 107 fi
108 108
109 if [ -n "${SOTA_SECONDARY_CONFIG_DIR}" ]; then
110 if [ -d "${SOTA_SECONDARY_CONFIG_DIR}" ]; then
111 install -m 0700 -d ${D}${sysconfdir}/sota/ecus
112 install -m 0644 "${SOTA_SECONDARY_CONFIG_DIR}"/* ${D}${sysconfdir}/sota/ecus/
113 printf "[uptane]\nsecondary_configs_dir = /etc/sota/ecus/\n" > ${D}${libdir}/sota/conf.d/30-secondary-configs-dir.toml
114 else
115 bbwarn "SOTA_SECONDARY_CONFIG_DIR is set to an invalid directory (${SOTA_SECONDARY_CONFIG_DIR})"
116 fi
117 fi
118
119 install -m 0755 -d ${D}${systemd_unitdir}/system 109 install -m 0755 -d ${D}${systemd_unitdir}/system
120 aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)} 110 aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)}
121 install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service 111 install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service