Skip to content

Commit

Permalink
OTA-2488: Remove SOTA_SECONDARY_CONFIG_DIR configuration variable (ol…
Browse files Browse the repository at this point in the history
…d way to configure secondaries)

Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
  • Loading branch information
Mike Sul committed Jul 1, 2019
1 parent 37201eb commit 32ba259
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions recipes-sota/aktualizr/aktualizr_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,6 @@ do_install_append () {
printf "[provision]\nprimary_ecu_hardware_id = ${SOTA_HARDWARE_ID}\n" > ${D}${libdir}/sota/conf.d/40-hardware-id.toml
fi

if [ -n "${SOTA_SECONDARY_CONFIG_DIR}" ]; then
if [ -d "${SOTA_SECONDARY_CONFIG_DIR}" ]; then
install -m 0700 -d ${D}${sysconfdir}/sota/ecus
install -m 0644 "${SOTA_SECONDARY_CONFIG_DIR}"/* ${D}${sysconfdir}/sota/ecus/
printf "[uptane]\nsecondary_configs_dir = /etc/sota/ecus/\n" > ${D}${libdir}/sota/conf.d/30-secondary-configs-dir.toml
else
bbwarn "SOTA_SECONDARY_CONFIG_DIR is set to an invalid directory (${SOTA_SECONDARY_CONFIG_DIR})"
fi
fi

install -m 0755 -d ${D}${systemd_unitdir}/system
aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)}
install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service
Expand Down

0 comments on commit 32ba259

Please sign in to comment.