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 /recipes-sota | |
parent | 3219d1aec2d13a71c548efa8360b62d6288f211b (diff) | |
parent | c99f5e78eaddc41904ebd6e2b15214b4fd4e5a91 (diff) | |
download | meta-updater-410bff5545493faf3b8171d96f6e63256fc72b85.tar.gz |
Merge pull request #200 from advancedtelematic/bugfix/cleanup
Minor fixes and cleanup.
Diffstat (limited to 'recipes-sota')
-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 |
4 files changed, 13 insertions, 14 deletions
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 | " |