diff options
author | Shaun Taheri <shaun@advancedtelematic.com> | 2017-07-11 17:11:11 +0200 |
---|---|---|
committer | Robert Danitz <robert@advancedtelematic.com> | 2017-07-26 11:13:10 +0200 |
commit | ff5efc4b3d11b6fabca831695337ceef50cc9255 (patch) | |
tree | 64b91fc5640ddab511c85a51a7de5407fb9d4e4d /recipes-sota/rvi-sota-client/sota-installer_git.bb | |
parent | e5a12d4a3f06e5b85a5c3a9d2f3d3960d661f935 (diff) | |
download | meta-updater-ff5efc4b3d11b6fabca831695337ceef50cc9255.tar.gz |
Split rvi-sota-client into multiple binaries
Diffstat (limited to 'recipes-sota/rvi-sota-client/sota-installer_git.bb')
-rw-r--r-- | recipes-sota/rvi-sota-client/sota-installer_git.bb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes-sota/rvi-sota-client/sota-installer_git.bb b/recipes-sota/rvi-sota-client/sota-installer_git.bb new file mode 100644 index 0000000..338e678 --- /dev/null +++ b/recipes-sota/rvi-sota-client/sota-installer_git.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | require rvi-sota-client.inc | ||
2 | |||
3 | |||
4 | SYSTEMD_SERVICE_${PN} = "sota-installer.service" | ||
5 | |||
6 | DEPENDS += " sota-client " | ||
7 | |||
8 | FILES_${PN} = " \ | ||
9 | ${bindir}/sota-installer \ | ||
10 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota-installer.service', '', d)} \ | ||
11 | " | ||
12 | |||
13 | do_compile_prepend() { | ||
14 | cd sota-installer | ||
15 | } | ||
16 | |||
17 | do_install() { | ||
18 | install -d ${D}${bindir} | ||
19 | install -m 0755 target/${TARGET_SYS}/release/sota-installer ${D}${bindir} | ||
20 | |||
21 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
22 | install -d ${D}/${systemd_unitdir}/system | ||
23 | install -m 0644 ${WORKDIR}/sota-installer.service ${D}/${systemd_unitdir}/system/sota-installer.service | ||
24 | fi | ||
25 | } | ||