summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/environment.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.inc
parent4bcd0509c780a2e244aab4713926a548c176fb5f (diff)
downloadmeta-updater-bugfix/PRO-5140/hardware_ids.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.inc')
-rw-r--r--recipes-sota/aktualizr/environment.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes-sota/aktualizr/environment.inc b/recipes-sota/aktualizr/environment.inc
index 16e789e..73517b0 100644
--- a/recipes-sota/aktualizr/environment.inc
+++ b/recipes-sota/aktualizr/environment.inc
@@ -1,11 +1,16 @@
1export SOTA_VIRTUAL_SECONDARIES 1export SOTA_VIRTUAL_SECONDARIES
2export SOTA_PRIMARY_HARDWARE_ID
2 3
3do_install_append() { 4do_install_append() {
4 for sec in ${SOTA_VIRTUAL_SECONDARIES}; do 5 for sec in ${SOTA_VIRTUAL_SECONDARIES}; do
5 AKTUALIZR_PARAMETERS_VIRTUALSECS="${AKTUALIZR_PARAMETERS_VIRTUALSECS} --secondary-config $sec" 6 AKTUALIZR_PARAMETERS_VIRTUALSECS="${AKTUALIZR_PARAMETERS_VIRTUALSECS} --secondary-config $sec"
6 done 7 done
7 8
8 echo "AKTUALIZR_CMDLINE_PARAMETERS=${AKTUALIZR_PARAMETERS_VIRTUALSECS}" > ${D}${libdir}/sota/sota.env 9 if [ -n "${SOTA_PRIMARY_HARDWARE_ID}" ]; then
10 AKTUALIZR_PARAMETERS_HARDWARE_ID="--primary-ecu-hardware-id ${SOTA_PRIMARY_HARDWARE_ID}"
11 fi
12
13 echo "AKTUALIZR_CMDLINE_PARAMETERS=${AKTUALIZR_PARAMETERS_VIRTUALSECS} ${AKTUALIZR_PARAMETERS_HARDWARE_ID}" > ${D}${libdir}/sota/sota.env
9} 14}
10 15
11FILES_${PN}_append = " ${libdir}/sota/sota.env" 16FILES_${PN}_append = " ${libdir}/sota/sota.env"