diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2018-03-29 13:45:30 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2018-05-28 11:10:57 +0200 |
commit | 4b33b1ac46fb525941c588b0a4c1b3ce132cad71 (patch) | |
tree | 244af48911d34ebc10ff12c35d1f107755666393 /recipes-sota/aktualizr/aktualizr-secondary-conf.bb | |
parent | 4bcd0509c780a2e244aab4713926a548c176fb5f (diff) | |
download | meta-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/aktualizr-secondary-conf.bb')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-secondary-conf.bb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-secondary-conf.bb b/recipes-sota/aktualizr/aktualizr-secondary-conf.bb new file mode 100644 index 0000000..c13bf94 --- /dev/null +++ b/recipes-sota/aktualizr/aktualizr-secondary-conf.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | SUMMARY = "Aktualizr secondary configuration" | ||
2 | DESCRIPTION = "Systemd service and configurations for Aktualizr secondaries" | ||
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "MPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | ||
7 | RDEPENDS_${PN} = "aktualizr-secondary" | ||
8 | PV = "1.0" | ||
9 | |||
10 | SRC_URI = " \ | ||
11 | file://LICENSE \ | ||
12 | " | ||
13 | |||
14 | export SOTA_SECONDARY_HARDWARE_ID | ||
15 | |||
16 | do_install() { | ||
17 | AKTUALIZR_PARAMETERS_CONFIGFILE="--config /usr/lib/sota/sota_secondary.toml" | ||
18 | if [ -n "${SOTA_SECONDARY_HARDWARE_ID}" ]; then | ||
19 | AKTUALIZR_PARAMETERS_HARDWARE_ID="--ecu-hardware-id ${SOTA_SECONDARY_HARDWARE_ID}"; | ||
20 | fi | ||
21 | |||
22 | install -d ${D}${libdir}/sota | ||
23 | echo "AKTUALIZR_CMDLINE_PARAMETERS=${AKTUALIZR_PARAMETERS_CONFIGFILE} ${AKTUALIZR_PARAMETERS_HARDWARE_ID}" > ${D}${libdir}/sota/sota.env | ||
24 | } | ||
25 | |||
26 | FILES_${PN} = "${libdir}/sota/sota.env" | ||
27 | |||
28 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||