diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2019-10-11 15:22:45 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-10-21 12:15:09 +0200 |
commit | b25ae05c2cbcd6df0cf269ffe1f00ecab08e831d (patch) | |
tree | e0b0ecd32d0e33d667615db2f84464aecbcd0e0c /recipes-sota/aktualizr/aktualizr-shared-prov.bb | |
parent | 766f1604c654b26d46f059bb8b89b3c2775e8d21 (diff) | |
download | meta-updater-b25ae05c2cbcd6df0cf269ffe1f00ecab08e831d.tar.gz |
aktualizr: fix secondary recipes' dependencies.
Most do not need to depend on aktualizr-native and do not need to be
rebuilt if the credentials change.
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr-shared-prov.bb')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr-shared-prov.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-sota/aktualizr/aktualizr-shared-prov.bb b/recipes-sota/aktualizr/aktualizr-shared-prov.bb index d3d6f16..00588dc 100644 --- a/recipes-sota/aktualizr/aktualizr-shared-prov.bb +++ b/recipes-sota/aktualizr/aktualizr-shared-prov.bb | |||
@@ -7,15 +7,15 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7 | |||
7 | 7 | ||
8 | inherit allarch | 8 | inherit allarch |
9 | 9 | ||
10 | DEPENDS = "aktualizr-native zip-native" | 10 | # We need to get the config files from the aktualizr-host-tools package built by |
11 | # the aktualizr (target) recipe. | ||
12 | DEPENDS = "aktualizr" | ||
11 | RDEPENDS_${PN}_append = "${@' aktualizr-shared-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" | 13 | RDEPENDS_${PN}_append = "${@' aktualizr-shared-prov-creds' if d.getVar('SOTA_DEPLOY_CREDENTIALS') == '1' else ''}" |
12 | PV = "1.0" | 14 | PV = "1.0" |
13 | PR = "6" | 15 | PR = "6" |
14 | 16 | ||
15 | SRC_URI = "" | 17 | SRC_URI = "" |
16 | 18 | ||
17 | require credentials.inc | ||
18 | |||
19 | do_install() { | 19 | do_install() { |
20 | if [ -n "${SOTA_AUTOPROVISION_CREDENTIALS}" ]; then | 20 | if [ -n "${SOTA_AUTOPROVISION_CREDENTIALS}" ]; then |
21 | bbwarn "SOTA_AUTOPROVISION_CREDENTIALS are ignored. Please use SOTA_PACKED_CREDENTIALS" | 21 | bbwarn "SOTA_AUTOPROVISION_CREDENTIALS are ignored. Please use SOTA_PACKED_CREDENTIALS" |
@@ -31,7 +31,7 @@ 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 | install -m 0644 ${STAGING_DIR_NATIVE}${libdir}/sota/sota-shared-cred.toml \ | 34 | install -m 0644 ${STAGING_DIR_HOST}${libdir}/sota/sota-shared-cred.toml \ |
35 | ${D}${libdir}/sota/conf.d/20-sota-shared-cred.toml | 35 | ${D}${libdir}/sota/conf.d/20-sota-shared-cred.toml |
36 | } | 36 | } |
37 | 37 | ||