summaryrefslogtreecommitdiffstats
path: root/recipes-sota/rvi-sota-client/sota-installer_git.bb
diff options
context:
space:
mode:
authorShaun Taheri <shaun@advancedtelematic.com>2017-07-11 17:11:11 +0200
committerRobert Danitz <robert@advancedtelematic.com>2017-07-26 11:13:10 +0200
commitff5efc4b3d11b6fabca831695337ceef50cc9255 (patch)
tree64b91fc5640ddab511c85a51a7de5407fb9d4e4d /recipes-sota/rvi-sota-client/sota-installer_git.bb
parente5a12d4a3f06e5b85a5c3a9d2f3d3960d661f935 (diff)
downloadmeta-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.bb25
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 @@
1require rvi-sota-client.inc
2
3
4SYSTEMD_SERVICE_${PN} = "sota-installer.service"
5
6DEPENDS += " sota-client "
7
8FILES_${PN} = " \
9${bindir}/sota-installer \
10${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_unitdir}/system/sota-installer.service', '', d)} \
11"
12
13do_compile_prepend() {
14 cd sota-installer
15}
16
17do_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}