diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sota.bbclass | 18 |
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 | ||
6 | OVERRIDES .= "${@bb.utils.contains('DISTRO_FEATURES', 'sota', ':sota', '', d)}" | 6 | DISTROOVERRIDES .= "${@bb.utils.contains('DISTRO_FEATURES', 'sota', ':sota', '', d)}" |
7 | 7 | ||
8 | HOSTTOOLS_NONFATAL += "java" | 8 | HOSTTOOLS_NONFATAL += "java" |
9 | 9 | ||
10 | SOTA_CLIENT ??= "aktualizr" | 10 | SOTA_CLIENT ??= "aktualizr" |
11 | SOTA_CLIENT_PROV ??= "aktualizr-auto-prov" | 11 | SOTA_CLIENT_PROV ??= "aktualizr-shared-prov" |
12 | SOTA_DEPLOY_CREDENTIALS ?= "1" | 12 | SOTA_DEPLOY_CREDENTIALS ?= "1" |
13 | SOTA_HARDWARE_ID ??= "${MACHINE}" | 13 | SOTA_HARDWARE_ID ??= "${MACHINE}" |
14 | 14 | ||
15 | # Translate old provisioning recipe names into the new versions. | ||
16 | python () { | ||
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 | |||
15 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" | 29 | IMAGE_INSTALL_append_sota = " ostree os-release ${SOTA_CLIENT} ${SOTA_CLIENT_PROV}" |
16 | IMAGE_CLASSES += " image_types_ostree image_types_ota" | 30 | IMAGE_CLASSES += " image_types_ostree image_types_ota" |
17 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck otaimg wic', ' ', d)}" | 31 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', 'sota', 'ostreepush garagesign garagecheck otaimg wic', ' ', d)}" |