diff options
author | OYTIS <tossel@gmail.com> | 2017-12-07 13:12:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-07 13:12:17 +0100 |
commit | 410bff5545493faf3b8171d96f6e63256fc72b85 (patch) | |
tree | 582053383dda6323f111b2c03bfd6dfda9313b61 | |
parent | 3219d1aec2d13a71c548efa8360b62d6288f211b (diff) | |
parent | c99f5e78eaddc41904ebd6e2b15214b4fd4e5a91 (diff) | |
download | meta-updater-410bff5545493faf3b8171d96f6e63256fc72b85.tar.gz |
Merge pull request #200 from advancedtelematic/bugfix/cleanup
Minor fixes and cleanup.
-rw-r--r-- | lib/oeqa/selftest/updater.py | 2 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-auto-prov.bb | 8 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb | 6 | ||||
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-implicit-prov.bb | 6 | ||||
-rw-r--r-- | recipes-sota/garage-sign/garage-sign.bb | 7 | ||||
-rw-r--r-- | recipes-support/ca-certificates/ca-certificates_%.bbappend | 2 |
6 files changed, 15 insertions, 16 deletions
diff --git a/lib/oeqa/selftest/updater.py b/lib/oeqa/selftest/updater.py index e3d4fc3..c07b154 100644 --- a/lib/oeqa/selftest/updater.py +++ b/lib/oeqa/selftest/updater.py | |||
@@ -51,7 +51,7 @@ class GarageSignTests(oeSelfTest): | |||
51 | class HsmTests(oeSelfTest): | 51 | class HsmTests(oeSelfTest): |
52 | 52 | ||
53 | def test_hsm(self): | 53 | def test_hsm(self): |
54 | self.write_config('SOTA_CLIENT_FEATURES="hsm hsm-test"') | 54 | self.write_config('SOTA_CLIENT_FEATURES="hsm"') |
55 | bitbake('core-image-minimal') | 55 | bitbake('core-image-minimal') |
56 | 56 | ||
57 | 57 | ||
diff --git a/recipes-sota/aktualizr/aktualizr-auto-prov.bb b/recipes-sota/aktualizr/aktualizr-auto-prov.bb index cee5039..f05bf75 100644 --- a/recipes-sota/aktualizr/aktualizr-auto-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-auto-prov.bb | |||
@@ -43,13 +43,13 @@ do_install() { | |||
43 | 43 | ||
44 | # deploy SOTA credentials | 44 | # deploy SOTA credentials |
45 | if [ -e ${SOTA_PACKED_CREDENTIALS} ]; then | 45 | if [ -e ${SOTA_PACKED_CREDENTIALS} ]; then |
46 | cp ${SOTA_PACKED_CREDENTIALS} ${D}/var/sota/sota_provisioning_credentials.zip | 46 | cp ${SOTA_PACKED_CREDENTIALS} ${D}${localstatedir}/sota/sota_provisioning_credentials.zip |
47 | # Device should not be able to push data to treehub | 47 | # Device should not be able to push data to treehub |
48 | zip -d ${D}/var/sota/sota_provisioning_credentials.zip treehub.json | 48 | zip -d ${D}${localstatedir}/sota/sota_provisioning_credentials.zip treehub.json |
49 | fi | 49 | fi |
50 | fi | 50 | fi |
51 | install -d ${D}/${systemd_unitdir}/system | 51 | install -d ${D}${systemd_unitdir}/system |
52 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}/${systemd_unitdir}/system/aktualizr.service | 52 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}${systemd_unitdir}/system/aktualizr.service |
53 | } | 53 | } |
54 | 54 | ||
55 | FILES_${PN} = " \ | 55 | FILES_${PN} = " \ |
diff --git a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb b/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb index ddc8dbf..e0a8efe 100644 --- a/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-hsm-test-prov.bb | |||
@@ -22,11 +22,11 @@ inherit systemd | |||
22 | require environment.inc | 22 | require environment.inc |
23 | 23 | ||
24 | do_install() { | 24 | do_install() { |
25 | install -d ${D}/${systemd_unitdir}/system | 25 | install -d ${D}${systemd_unitdir}/system |
26 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}/${systemd_unitdir}/system/aktualizr.service | 26 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}${systemd_unitdir}/system/aktualizr.service |
27 | install -d ${D}${libdir}/sota | 27 | install -d ${D}${libdir}/sota |
28 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ | 28 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} --no-root-ca \ |
29 | -i ${STAGING_DIR_NATIVE}/${libdir}/sota/sota_hsm_test.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | 29 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_hsm_test.toml -o ${D}${libdir}/sota/sota.toml -p ${D} |
30 | } | 30 | } |
31 | 31 | ||
32 | FILES_${PN} = " \ | 32 | FILES_${PN} = " \ |
diff --git a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb index 37d0e91..5ce55e0 100644 --- a/recipes-sota/aktualizr/aktualizr-implicit-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-implicit-prov.bb | |||
@@ -21,11 +21,11 @@ inherit systemd | |||
21 | require environment.inc | 21 | require environment.inc |
22 | 22 | ||
23 | do_install() { | 23 | do_install() { |
24 | install -d ${D}/${systemd_unitdir}/system | 24 | install -d ${D}${systemd_unitdir}/system |
25 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}/${systemd_unitdir}/system/aktualizr.service | 25 | install -m 0644 ${WORKDIR}/aktualizr.service ${D}${systemd_unitdir}/system/aktualizr.service |
26 | install -d ${D}${libdir}/sota | 26 | install -d ${D}${libdir}/sota |
27 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \ | 27 | aktualizr_implicit_writer -c ${SOTA_PACKED_CREDENTIALS} \ |
28 | -i ${STAGING_DIR_NATIVE}/${libdir}/sota/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} | 28 | -i ${STAGING_DIR_NATIVE}${libdir}/sota/sota_implicit_prov.toml -o ${D}${libdir}/sota/sota.toml -p ${D} |
29 | } | 29 | } |
30 | 30 | ||
31 | FILES_${PN} = " \ | 31 | FILES_${PN} = " \ |
diff --git a/recipes-sota/garage-sign/garage-sign.bb b/recipes-sota/garage-sign/garage-sign.bb index 61c4b5a..7057a57 100644 --- a/recipes-sota/garage-sign/garage-sign.bb +++ b/recipes-sota/garage-sign/garage-sign.bb | |||
@@ -27,8 +27,7 @@ do_install() { | |||
27 | } | 27 | } |
28 | 28 | ||
29 | FILES_${PN} = " \ | 29 | FILES_${PN} = " \ |
30 | /usr/bin \ | 30 | ${bindir}/garage-sign.bat \ |
31 | /usr/bin/garage-sign.bat \ | 31 | ${bindir}/garage-sign \ |
32 | /usr/bin/garage-sign \ | 32 | ${libdir}/* \ |
33 | /usr/lib/* \ | ||
34 | " | 33 | " |
diff --git a/recipes-support/ca-certificates/ca-certificates_%.bbappend b/recipes-support/ca-certificates/ca-certificates_%.bbappend index afaadfd..cc95a68 100644 --- a/recipes-support/ca-certificates/ca-certificates_%.bbappend +++ b/recipes-support/ca-certificates/ca-certificates_%.bbappend | |||
@@ -1 +1 @@ | |||
SYSROOT_DIRS += "/etc" | SYSROOT_DIRS += "${sysconfdir}" | ||