summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/environment-secondary.inc
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2018-03-29 13:45:30 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2018-05-28 11:10:57 +0200
commit4b33b1ac46fb525941c588b0a4c1b3ce132cad71 (patch)
tree244af48911d34ebc10ff12c35d1f107755666393 /recipes-sota/aktualizr/environment-secondary.inc
parent4bcd0509c780a2e244aab4713926a548c176fb5f (diff)
downloadmeta-updater-4b33b1ac46fb525941c588b0a4c1b3ce132cad71.tar.gz
Try to set hardware IDs in local.conf.bugfix/PRO-5140/hardware_ids
Communicating the IDs to the images works, but getting the IDs in the garage-push commits does not. I can get the variables exported, but the script still uses the wrong (old) value. Not sure why.
Diffstat (limited to 'recipes-sota/aktualizr/environment-secondary.inc')
-rw-r--r--recipes-sota/aktualizr/environment-secondary.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/environment-secondary.inc b/recipes-sota/aktualizr/environment-secondary.inc
new file mode 100644
index 0000000..18a4684
--- /dev/null
+++ b/recipes-sota/aktualizr/environment-secondary.inc
@@ -0,0 +1,12 @@
1export SOTA_SECONDARY_HARDWARE_ID
2
3do_install_append() {
4 AKTUALIZR_PARAMETERS_CONFIGFILE="--config /usr/lib/sota/sota_secondary.toml"
5 if [ -n "${SOTA_PRIMARY_HARDWARE_ID}" ]; then
6 AKTUALIZR_PARAMETERS_HARDWARE_ID="--ecu-hardware-id ${SOTA_PRIMARY_HARDWARE_ID}"
7 fi
8
9 echo "AKTUALIZR_CMDLINE_PARAMETERS=${AKTUALIZR_PARAMETERS_CONFIGFILE} ${AKTUALIZR_PARAMETERS_HARDWARE_ID}" > ${D}${libdir}/sota/sota.env
10}
11
12FILES_${PN}_append = " ${libdir}/sota/sota.env"