summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/sota.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/sota.bbclass b/classes/sota.bbclass
index d13533a..82278b2 100644
--- a/classes/sota.bbclass
+++ b/classes/sota.bbclass
@@ -12,6 +12,20 @@ SOTA_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)}"