summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/sota.bbclass18
1 files changed, 16 insertions, 2 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index 9799a0a..4465e6c 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -3,15 +3,29 @@ python __anonymous() {
3 d.appendVarFlag("do_image_wic", "depends", " %s:do_image_otaimg" % d.getVar("IMAGE_BASENAME", True)) 3 d.appendVarFlag("do_image_wic", "depends", " %s:do_image_otaimg" % d.getVar("IMAGE_BASENAME", True))
4} 4}
5 5
6OVERRIDES .= "${@bb.utils.contains('DISTRO_FEATURES', 'sota', ':sota', '', d)}" 6DISTROOVERRIDES .= "${@bb.utils.contains('DISTRO_FEATURES', 'sota', ':sota', '', d)}"
7 7
8HOSTTOOLS_NONFATAL += "java" 8HOSTTOOLS_NONFATAL += "java"
9 9
10SOTA_CLIENT ??= "aktualizr" 10SOTA_CLIENT ??= "aktualizr"
11SOTA_CLIENT_PROV ??= "aktualizr-auto-prov" 11SOTA_CLIENT_PROV ??= "aktualizr-shared-prov"
12SOTA_DEPLOY_CREDENTIALS ?= "1" 12SOTA_DEPLOY_CREDENTIALS ?= "1"
13SOTA_HARDWARE_ID ??= "${MACHINE}" 13SOTA_HARDWARE_ID ??= "${MACHINE}"
14 14
15# Translate old provisioning recipe names into the new versions.
16python () {
17 prov = d.getVar("SOTA_CLIENT_PROV")
18 if prov == "aktualizr-auto-prov":
19 bb.warn('aktualizr-auto-prov is deprecated. Please use aktualizr-shared-prov instead.')
20 d.setVar("SOTA_CLIENT_PROV", "aktualizr-shared-prov")
21 elif prov == "aktualizr-ca-implicit-prov":
22 bb.warn('aktualizr-ca-implicit-prov is deprecated. Please use aktualizr-device-prov instead.')
23 d.setVar("SOTA_CLIENT_PROV", "aktualizr-device-prov")
24 elif prov == "aktualizr-hsm-prov":
25 bb.warn('aktualizr-hsm-prov is deprecated. Please use aktualizr-device-prov-hsm instead.')
26 d.setVar("SOTA_CLIENT_PROV", "aktualizr-device-prov-hsm")
27}
28
15IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" 29IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}"
16IMAGE_CLASSES += " image_types_ostree image_types_ota" 30IMAGE_CLASSES += " image_types_ostree image_types_ota"
17IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck otaimg wic', ' ', d)}" 31IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck otaimg wic', ' ', d)}"