diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2019-05-28 09:46:28 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-06-05 11:55:41 +0200 |
commit | ecd33302096d269953b52d75b21225778263e27a (patch) | |
tree | 41c15ddb5e90e9b49acc78384bae2cc4dcd814d6 /recipes-sota | |
parent | eb63622b2f3aa4869e0a4e927b5b2ee5bd152053 (diff) | |
download | meta-updater-ecd33302096d269953b52d75b21225778263e27a.tar.gz |
Rename provisioning methods.
"Autoprovisioning" or "automatic provisioning" is now known as "shared
credential provisioning". "Implicit provisioning" is now known as
"device credential provisioning". "HSM provisioning" was always a
misnomer, so it is now refered to as "device credential provisioning
with an HSM".
This includes a bump of the aktualizr version as well.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Diffstat (limited to 'recipes-sota')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-ca-implicit-prov.bb | 30 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-device-prov-creds.bb (renamed from recipes-sota/aktualizr/aktualizr-ca-implicit-prov-creds.bb) | 13 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-device-prov-hsm.bb | 30 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-device-prov.bb | 29 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-hsm-prov.bb | 30 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-shared-prov-creds.bb (renamed from recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb) | 3 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-shared-prov.bb (renamed from recipes-sota/aktualizr/aktualizr-auto-prov.bb) | 14 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-uboot-env-rollback.bb | 2 | ||||
-rwxr-xr-x | recipes-sota/aktualizr/aktualizr_git.bb | 15 |
9 files changed, 83 insertions, 83 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-ca-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-ca-implicit-prov.bb deleted file mode 100644 index 414cb5e..0000000 --- a/recipes-sota/aktualizr/aktualizr-ca-implicit-prov.bb +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | SUMMARY = "Aktualizr configuration for implicit provisioning with CA" | ||
2 | DESCRIPTION = "Configuration for implicitly provisioning Aktualizr using externally provided or generated CA" | ||
3 | |||
4 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
5 | SECTION = "base" | ||
6 | LICENSE = "MPL-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
8 | |||
9 | inherit allarch | ||
10 | |||
11 | DEPENDS = "aktualizr aktualizr-native openssl-native" | ||
12 | RDEPENDS_${PN}_append = "${@' aktualizr-ca-implicit-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | ||
13 | |||
14 | PV = "1.0" | ||
15 | PR = "1" | ||
16 | |||
17 | require credentials.inc | ||
18 | |||
19 | do_install() { | ||
20 | install -m 0700 -d ${D}${libdir}/sota/conf.d | ||
21 | |||
22 | install -m 0644 ${STAGING_DIR_HOST}${libdir}/sota/sota_implicit_prov_ca.toml \ | ||
23 | ${D}${libdir}/sota/conf.d/20-sota_implicit_prov_ca.toml | ||
24 | } | ||
25 | |||
26 | FILES_${PN} = " \ | ||
27 | ${libdir}/sota/conf.d/20-sota_implicit_prov_ca.toml \ | ||
28 | " | ||
29 | |||
30 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/aktualizr-ca-implicit-prov-creds.bb b/recipes-sota/aktualizr/aktualizr-device-prov-creds.bb index da17d77..6e02a50 100644 --- a/recipes-sota/aktualizr/aktualizr-ca-implicit-prov-creds.bb +++ b/recipes-sota/aktualizr/aktualizr-device-prov-creds.bb | |||
@@ -1,4 +1,5 @@ | |||
1 | SUMMARY = "Credentials for implicit provisioning with CA certificate" | 1 | SUMMARY = "Credentials for device provisioning with fleet CA certificate" |
2 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
2 | SECTION = "base" | 3 | SECTION = "base" |
3 | LICENSE = "MPL-2.0" | 4 | LICENSE = "MPL-2.0" |
4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" |
@@ -13,8 +14,8 @@ DEPENDS = "aktualizr aktualizr-native" | |||
13 | ALLOW_EMPTY_${PN} = "1" | 14 | ALLOW_EMPTY_${PN} = "1" |
14 | 15 | ||
15 | SRC_URI = " \ | 16 | SRC_URI = " \ |
16 | file://ca.cnf \ | 17 | file://ca.cnf \ |
17 | " | 18 | " |
18 | 19 | ||
19 | require credentials.inc | 20 | require credentials.inc |
20 | 21 | ||
@@ -39,7 +40,7 @@ do_install() { | |||
39 | fi | 40 | fi |
40 | 41 | ||
41 | if [ -z ${SOTA_CAKEY_PATH} ]; then | 42 | if [ -z ${SOTA_CAKEY_PATH} ]; then |
42 | bbfatal "SOTA_CAKEY_PATH should be set when using implicit provisioning" | 43 | bbfatal "SOTA_CAKEY_PATH should be set when using device credential provisioning" |
43 | fi | 44 | fi |
44 | 45 | ||
45 | install -m 0700 -d ${D}${localstatedir}/sota | 46 | install -m 0700 -d ${D}${localstatedir}/sota |
@@ -49,9 +50,11 @@ do_install() { | |||
49 | --root-ca \ | 50 | --root-ca \ |
50 | --server-url \ | 51 | --server-url \ |
51 | --local ${D} \ | 52 | --local ${D} \ |
52 | --config ${STAGING_DIR_HOST}${libdir}/sota/sota_implicit_prov_ca.toml | 53 | --config ${STAGING_DIR_HOST}${libdir}/sota/sota-device-cred.toml |
53 | fi | 54 | fi |
54 | } | 55 | } |
55 | 56 | ||
56 | FILES_${PN} = " \ | 57 | FILES_${PN} = " \ |
57 | ${localstatedir}/sota/*" | 58 | ${localstatedir}/sota/*" |
59 | |||
60 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/aktualizr-device-prov-hsm.bb b/recipes-sota/aktualizr/aktualizr-device-prov-hsm.bb new file mode 100644 index 0000000..c3cd593 --- /dev/null +++ b/recipes-sota/aktualizr/aktualizr-device-prov-hsm.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "Aktualizr configuration for device credential provisioning with HSM support" | ||
2 | DESCRIPTION = "Configuration for provisioning Aktualizr with device credentials using externally provided or generated CA with HSM support" | ||
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "MPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
7 | |||
8 | inherit allarch | ||
9 | |||
10 | DEPENDS = "aktualizr aktualizr-native" | ||
11 | RDEPENDS_${PN}_append = "${@' aktualizr-device-prov-creds softhsm-testtoken' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | ||
12 | |||
13 | SRC_URI = "" | ||
14 | PV = "1.0" | ||
15 | PR = "6" | ||
16 | |||
17 | require credentials.inc | ||
18 | |||
19 | do_install() { | ||
20 | install -m 0700 -d ${D}${libdir}/sota/conf.d | ||
21 | install -m 0644 ${STAGING_DIR_HOST}${libdir}/sota/sota-device-cred-hsm.toml \ | ||
22 | ${D}${libdir}/sota/conf.d/20-sota-device-cred-hsm.toml | ||
23 | } | ||
24 | |||
25 | FILES_${PN} = " \ | ||
26 | ${libdir}/sota/conf.d \ | ||
27 | ${libdir}/sota/conf.d/20-sota-device-cred-hsm.toml \ | ||
28 | " | ||
29 | |||
30 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/aktualizr-device-prov.bb b/recipes-sota/aktualizr/aktualizr-device-prov.bb new file mode 100644 index 0000000..d579532 --- /dev/null +++ b/recipes-sota/aktualizr/aktualizr-device-prov.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "Aktualizr configuration for device credential provisioning" | ||
2 | DESCRIPTION = "Configuration for provisioning Aktualizr with device credentials using externally provided or generated CA" | ||
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "MPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
7 | |||
8 | inherit allarch | ||
9 | |||
10 | DEPENDS = "aktualizr aktualizr-native openssl-native" | ||
11 | RDEPENDS_${PN}_append = "${@' aktualizr-device-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | ||
12 | |||
13 | PV = "1.0" | ||
14 | PR = "1" | ||
15 | |||
16 | require credentials.inc | ||
17 | |||
18 | do_install() { | ||
19 | install -m 0700 -d ${D}${libdir}/sota/conf.d | ||
20 | install -m 0644 ${STAGING_DIR_HOST}${libdir}/sota/sota-device-cred.toml \ | ||
21 | ${D}${libdir}/sota/conf.d/20-sota-device-cred.toml | ||
22 | } | ||
23 | |||
24 | FILES_${PN} = " \ | ||
25 | ${libdir}/sota/conf.d \ | ||
26 | ${libdir}/sota/conf.d/20-sota-device-cred.toml \ | ||
27 | " | ||
28 | |||
29 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/aktualizr-hsm-prov.bb b/recipes-sota/aktualizr/aktualizr-hsm-prov.bb deleted file mode 100644 index 77c6720..0000000 --- a/recipes-sota/aktualizr/aktualizr-hsm-prov.bb +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | SUMMARY = "Aktualizr configuration with HSM support" | ||
2 | DESCRIPTION = "Configuration for HSM provisioning with Aktualizr, the SOTA Client application written in C++" | ||
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "MPL-2.0" | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
7 | |||
8 | inherit allarch | ||
9 | |||
10 | DEPENDS = "aktualizr aktualizr-native" | ||
11 | RDEPENDS_${PN}_append = "${@' aktualizr-ca-implicit-prov-creds softhsm-testtoken' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | ||
12 | |||
13 | SRC_URI = "" | ||
14 | PV = "1.0" | ||
15 | PR = "6" | ||
16 | |||
17 | require credentials.inc | ||
18 | |||
19 | do_install() { | ||
20 | install -m 0700 -d ${D}${libdir}/sota/conf.d | ||
21 | install -m 0644 ${STAGING_DIR_HOST}${libdir}/sota/sota_hsm_prov.toml \ | ||
22 | ${D}${libdir}/sota/conf.d/20-sota_hsm_prov.toml | ||
23 | } | ||
24 | |||
25 | FILES_${PN} = " \ | ||
26 | ${libdir}/sota/conf.d \ | ||
27 | ${libdir}/sota/conf.d/20-sota_hsm_prov.toml \ | ||
28 | " | ||
29 | |||
30 | # vim:set ts=4 sw=4 sts=4 expandtab: | ||
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb b/recipes-sota/aktualizr/aktualizr-shared-prov-creds.bb index 6b2dd27..dbb5fde 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov-creds.bb +++ b/recipes-sota/aktualizr/aktualizr-shared-prov-creds.bb | |||
@@ -1,4 +1,5 @@ | |||
1 | SUMMARY = "Credentials for autoprovisioning scenario" | 1 | SUMMARY = "Credentials for shared provisioning" |
2 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | ||
2 | SECTION = "base" | 3 | SECTION = "base" |
3 | LICENSE = "MPL-2.0" | 4 | LICENSE = "MPL-2.0" |
4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" |
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov.bb b/recipes-sota/aktualizr/aktualizr-shared-prov.bb index 4b68491..d3d6f16 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-shared-prov.bb | |||
@@ -1,5 +1,5 @@ | |||
1 | SUMMARY = "Aktualizr configuration for autoprovisioning" | 1 | SUMMARY = "Aktualizr configuration for shared credential provisioning" |
2 | DESCRIPTION = "Configuration for automatically provisioning Aktualizr, the SOTA Client application written in C++" | 2 | DESCRIPTION = "Configuration for provisioning Aktualizr with shared credentials" |
3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" | 3 | HOMEPAGE = "https://github.com/advancedtelematic/aktualizr" |
4 | SECTION = "base" | 4 | SECTION = "base" |
5 | LICENSE = "MPL-2.0" | 5 | LICENSE = "MPL-2.0" |
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7 | |||
8 | inherit allarch | 8 | inherit allarch |
9 | 9 | ||
10 | DEPENDS = "aktualizr-native zip-native" | 10 | DEPENDS = "aktualizr-native zip-native" |
11 | RDEPENDS_${PN}_append = "${@' aktualizr-auto-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | 11 | RDEPENDS_${PN}_append = "${@' aktualizr-shared-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" |
12 | PV = "1.0" | 12 | PV = "1.0" |
13 | PR = "6" | 13 | PR = "6" |
14 | 14 | ||
@@ -31,15 +31,13 @@ do_install() { | |||
31 | fi | 31 | fi |
32 | 32 | ||
33 | install -m 0700 -d ${D}${libdir}/sota/conf.d | 33 | install -m 0700 -d ${D}${libdir}/sota/conf.d |
34 | aktualizr_toml=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-network', 'sota_autoprov_primary.toml', 'sota_autoprov.toml', d)} | 34 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/sota-shared-cred.toml \ |
35 | 35 | ${D}${libdir}/sota/conf.d/20-sota-shared-cred.toml | |
36 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/${aktualizr_toml} \ | ||
37 | ${D}${libdir}/sota/conf.d/20-${aktualizr_toml} | ||
38 | } | 36 | } |
39 | 37 | ||
40 | FILES_${PN} = " \ | 38 | FILES_${PN} = " \ |
41 | ${libdir}/sota/conf.d \ | 39 | ${libdir}/sota/conf.d \ |
42 | ${libdir}/sota/conf.d/20-${aktualizr_toml} \ | 40 | ${libdir}/sota/conf.d/20-sota-shared-cred.toml \ |
43 | " | 41 | " |
44 | 42 | ||
45 | # vim:set ts=4 sw=4 sts=4 expandtab: | 43 | # vim:set ts=4 sw=4 sts=4 expandtab: |
diff --git a/recipes-sota/aktualizr/aktualizr-uboot-env-rollback.bb b/recipes-sota/aktualizr/aktualizr-uboot-env-rollback.bb index d962876..860f225 100644 --- a/recipes-sota/aktualizr/aktualizr-uboot-env-rollback.bb +++ b/recipes-sota/aktualizr/aktualizr-uboot-env-rollback.bb | |||
@@ -13,7 +13,7 @@ SRC_URI = "" | |||
13 | 13 | ||
14 | do_install() { | 14 | do_install() { |
15 | install -m 0700 -d ${D}${libdir}/sota/conf.d | 15 | install -m 0700 -d ${D}${libdir}/sota/conf.d |
16 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/sota_uboot_env.toml ${D}${libdir}/sota/conf.d/30-rollback.toml | 16 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/sota-uboot-env.toml ${D}${libdir}/sota/conf.d/30-rollback.toml |
17 | } | 17 | } |
18 | 18 | ||
19 | FILES_${PN} = " \ | 19 | FILES_${PN} = " \ |
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index edacdb1..75d5bd9 100755 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -31,7 +31,7 @@ SRC_URI = " \ | |||
31 | SRC_URI[md5sum] = "e104ccd4f32e52571a5fc0e5042db050" | 31 | SRC_URI[md5sum] = "e104ccd4f32e52571a5fc0e5042db050" |
32 | SRC_URI[sha256sum] = "c590be1a57523bfe097af82279eda5c97cf40ae47fb27162cf33c469702c8a9b" | 32 | SRC_URI[sha256sum] = "c590be1a57523bfe097af82279eda5c97cf40ae47fb27162cf33c469702c8a9b" |
33 | 33 | ||
34 | SRCREV = "8c523efc4c1f1e6d9dfd41b7e23a202ade4d9ff7" | 34 | SRCREV = "fce5854ff10e7efd52d69bbaf68dc2af990d5746" |
35 | BRANCH ?= "master" | 35 | BRANCH ?= "master" |
36 | 36 | ||
37 | S = "${WORKDIR}/git" | 37 | S = "${WORKDIR}/git" |
@@ -92,12 +92,11 @@ do_install_ptest() { | |||
92 | 92 | ||
93 | do_install_append () { | 93 | do_install_append () { |
94 | install -d ${D}${libdir}/sota | 94 | install -d ${D}${libdir}/sota |
95 | install -m 0644 ${S}/config/sota_autoprov.toml ${D}/${libdir}/sota/sota_autoprov.toml | 95 | install -m 0644 ${S}/config/sota-shared-cred.toml ${D}/${libdir}/sota/sota-shared-cred.toml |
96 | install -m 0644 ${S}/config/sota_autoprov_primary.toml ${D}/${libdir}/sota/sota_autoprov_primary.toml | 96 | install -m 0644 ${S}/config/sota-device-cred-hsm.toml ${D}/${libdir}/sota/sota-device-cred-hsm.toml |
97 | install -m 0644 ${S}/config/sota_hsm_prov.toml ${D}/${libdir}/sota/sota_hsm_prov.toml | 97 | install -m 0644 ${S}/config/sota-device-cred.toml ${D}/${libdir}/sota/sota-device-cred.toml |
98 | install -m 0644 ${S}/config/sota_implicit_prov_ca.toml ${D}/${libdir}/sota/sota_implicit_prov_ca.toml | 98 | install -m 0644 ${S}/config/sota-secondary.toml ${D}/${libdir}/sota/sota-secondary.toml |
99 | install -m 0644 ${S}/config/sota_secondary.toml ${D}/${libdir}/sota/sota_secondary.toml | 99 | install -m 0644 ${S}/config/sota-uboot-env.toml ${D}/${libdir}/sota/sota-uboot-env.toml |
100 | install -m 0644 ${S}/config/sota_uboot_env.toml ${D}/${libdir}/sota/sota_uboot_env.toml | ||
101 | install -d ${D}${systemd_unitdir}/system | 100 | install -d ${D}${systemd_unitdir}/system |
102 | install -m 0644 ${WORKDIR}/aktualizr-secondary.service ${D}${systemd_unitdir}/system/aktualizr-secondary.service | 101 | install -m 0644 ${WORKDIR}/aktualizr-secondary.service ${D}${systemd_unitdir}/system/aktualizr-secondary.service |
103 | install -m 0700 -d ${D}${libdir}/sota/conf.d | 102 | install -m 0700 -d ${D}${libdir}/sota/conf.d |
@@ -173,7 +172,7 @@ FILES_${PN}-examples = " \ | |||
173 | 172 | ||
174 | FILES_${PN}-secondary = " \ | 173 | FILES_${PN}-secondary = " \ |
175 | ${bindir}/aktualizr-secondary \ | 174 | ${bindir}/aktualizr-secondary \ |
176 | ${libdir}/sota/sota_secondary.toml \ | 175 | ${libdir}/sota/sota-secondary.toml \ |
177 | ${systemd_unitdir}/system/aktualizr-secondary.service \ | 176 | ${systemd_unitdir}/system/aktualizr-secondary.service \ |
178 | " | 177 | " |
179 | 178 | ||