diff options
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr_git.bb')
-rwxr-xr-x | recipes-sota/aktualizr/aktualizr_git.bb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 50a9f16..14de9fa 100755 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -27,7 +27,7 @@ SRC_URI = " \ | |||
27 | file://aktualizr-serialcan.service \ | 27 | file://aktualizr-serialcan.service \ |
28 | " | 28 | " |
29 | 29 | ||
30 | SRCREV = "3c1c77c005fc1f872f1e12080528ed6f8a32bbf3" | 30 | SRCREV = "4621a15779db38531fb386478232a9e8593e53f4" |
31 | BRANCH ?= "master" | 31 | BRANCH ?= "master" |
32 | 32 | ||
33 | S = "${WORKDIR}/git" | 33 | S = "${WORKDIR}/git" |
@@ -69,6 +69,17 @@ do_install_append () { | |||
69 | install -m 0644 ${WORKDIR}/aktualizr-secondary.service ${D}${systemd_unitdir}/system/aktualizr-secondary.service | 69 | install -m 0644 ${WORKDIR}/aktualizr-secondary.service ${D}${systemd_unitdir}/system/aktualizr-secondary.service |
70 | install -m 0700 -d ${D}${libdir}/sota/conf.d | 70 | install -m 0700 -d ${D}${libdir}/sota/conf.d |
71 | install -m 0700 -d ${D}${sysconfdir}/sota/conf.d | 71 | install -m 0700 -d ${D}${sysconfdir}/sota/conf.d |
72 | |||
73 | if [ -n "${SOTA_SECONDARY_CONFIG_DIR}" ]; then | ||
74 | if [ -d "${SOTA_SECONDARY_CONFIG_DIR}" ]; then | ||
75 | install -m 0700 -d ${D}${sysconfdir}/sota/ecus | ||
76 | install -m 0644 "${SOTA_SECONDARY_CONFIG_DIR}"/* ${D}${sysconfdir}/sota/ecus/ | ||
77 | echo "[uptane]\nsecondary_configs_dir = /etc/sota/ecus/\n" > ${D}${libdir}/sota/conf.d/30-secondary-configs-dir.toml | ||
78 | else | ||
79 | bbwarn "SOTA_SECONDARY_CONFIG_DIR is set to an invalid directory (${SOTA_SECONDARY_CONFIG_DIR})" | ||
80 | fi | ||
81 | fi | ||
82 | |||
72 | } | 83 | } |
73 | 84 | ||
74 | do_install_append_class-target () { | 85 | do_install_append_class-target () { |
@@ -91,6 +102,7 @@ FILES_${PN} = " \ | |||
91 | ${systemd_unitdir}/system/aktualizr.service \ | 102 | ${systemd_unitdir}/system/aktualizr.service \ |
92 | ${libdir}/sota/conf.d \ | 103 | ${libdir}/sota/conf.d \ |
93 | ${sysconfdir}/sota/conf.d \ | 104 | ${sysconfdir}/sota/conf.d \ |
105 | ${sysconfdir}/sota/ecus/* \ | ||
94 | " | 106 | " |
95 | 107 | ||
96 | FILES_${PN}-examples = " \ | 108 | FILES_${PN}-examples = " \ |