summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr
diff options
context:
space:
mode:
authorSerhiy Stetskovych <patriotyk@gmail.com>2018-11-21 11:47:31 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2018-11-29 11:19:47 +0100
commit80cf88a5ce9668041c020612630981e02d880bfc (patch)
tree07f77a94594f37242d612e8a7855fe4ceff6dda5 /recipes-sota/aktualizr
parent2832fa74813a3294711a4f832d43b5dc86ca5098 (diff)
downloadmeta-updater-80cf88a5ce9668041c020612630981e02d880bfc.tar.gz
Allow setup custom hardware_id
Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
Diffstat (limited to 'recipes-sota/aktualizr')
-rwxr-xr-xrecipes-sota/aktualizr/aktualizr_git.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb
index f3b61f8..509b74b 100755
--- a/recipes-sota/aktualizr/aktualizr_git.bb
+++ b/recipes-sota/aktualizr/aktualizr_git.bb
@@ -71,6 +71,10 @@ do_install_append () {
71 install -m 0700 -d ${D}${libdir}/sota/conf.d 71 install -m 0700 -d ${D}${libdir}/sota/conf.d
72 install -m 0700 -d ${D}${sysconfdir}/sota/conf.d 72 install -m 0700 -d ${D}${sysconfdir}/sota/conf.d
73 73
74 if [ -n "${SOTA_HARDWARE_ID}" ]; then
75 echo "[uptane]\nprimary_ecu_hardware_id = ${SOTA_HARDWARE_ID}\n" > ${D}${libdir}/sota/conf.d/40-hardware-id.toml
76 fi
77
74 if [ -n "${SOTA_SECONDARY_CONFIG_DIR}" ]; then 78 if [ -n "${SOTA_SECONDARY_CONFIG_DIR}" ]; then
75 if [ -d "${SOTA_SECONDARY_CONFIG_DIR}" ]; then 79 if [ -d "${SOTA_SECONDARY_CONFIG_DIR}" ]; then
76 install -m 0700 -d ${D}${sysconfdir}/sota/ecus 80 install -m 0700 -d ${D}${sysconfdir}/sota/ecus