summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2017-12-08 12:08:11 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2017-12-12 11:02:38 +0100
commit36c032b7972c42f6f31aeaf8c1dae6c9ce667194 (patch)
treeaf1d3ab432ff970e8ee830086f813e3b218ed4a6
parent599c048c03d3cd454270dc729e8ad746497588b2 (diff)
downloadmeta-updater-36c032b7972c42f6f31aeaf8c1dae6c9ce667194.tar.gz
Only install example-interface if explicitly asked for.
To do so, use this in local.conf: SOTA_CLIENT_FEATURES = "secondary-example"
-rw-r--r--recipes-sota/aktualizr/aktualizr_git.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb
index fc65c51..e4ffc5a 100644
--- a/recipes-sota/aktualizr/aktualizr_git.bb
+++ b/recipes-sota/aktualizr/aktualizr_git.bb
@@ -36,6 +36,7 @@ do_install_append () {
36} 36}
37do_install_append_class-target () { 37do_install_append_class-target () {
38 rm -f ${D}${bindir}/aktualizr_implicit_writer 38 rm -f ${D}${bindir}/aktualizr_implicit_writer
39 ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '', 'rm -f ${D}${bindir}/example-interface', d)}
39} 40}
40do_install_append_class-native () { 41do_install_append_class-native () {
41 rm -f ${D}${bindir}/aktualizr 42 rm -f ${D}${bindir}/aktualizr
@@ -50,8 +51,8 @@ do_install_append_class-native () {
50FILES_${PN}_class-target = " \ 51FILES_${PN}_class-target = " \
51 ${bindir}/aktualizr \ 52 ${bindir}/aktualizr \
52 ${bindir}/aktualizr-info \ 53 ${bindir}/aktualizr-info \
53 ${bindir}/example-interface \
54 " 54 "
55FILES_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '${bindir}/example-interface', '', d)} "
55FILES_${PN}_class-native = " \ 56FILES_${PN}_class-native = " \
56 ${bindir}/aktualizr_implicit_writer \ 57 ${bindir}/aktualizr_implicit_writer \
57 ${bindir}/garage-deploy \ 58 ${bindir}/garage-deploy \