From 4b33b1ac46fb525941c588b0a4c1b3ce132cad71 Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Thu, 29 Mar 2018 13:45:30 +0200 Subject: Try to set hardware IDs in local.conf. 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. --- recipes-sota/aktualizr/environment-secondary.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes-sota/aktualizr/environment-secondary.inc (limited to 'recipes-sota/aktualizr/environment-secondary.inc') 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 @@ +export SOTA_SECONDARY_HARDWARE_ID + +do_install_append() { + AKTUALIZR_PARAMETERS_CONFIGFILE="--config /usr/lib/sota/sota_secondary.toml" + if [ -n "${SOTA_PRIMARY_HARDWARE_ID}" ]; then + AKTUALIZR_PARAMETERS_HARDWARE_ID="--ecu-hardware-id ${SOTA_PRIMARY_HARDWARE_ID}" + fi + + echo "AKTUALIZR_CMDLINE_PARAMETERS=${AKTUALIZR_PARAMETERS_CONFIGFILE} ${AKTUALIZR_PARAMETERS_HARDWARE_ID}" > ${D}${libdir}/sota/sota.env +} + +FILES_${PN}_append = " ${libdir}/sota/sota.env" -- cgit v1.2.3-54-g00ecf