diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2017-12-08 12:08:11 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2017-12-12 11:02:38 +0100 |
commit | 36c032b7972c42f6f31aeaf8c1dae6c9ce667194 (patch) | |
tree | af1d3ab432ff970e8ee830086f813e3b218ed4a6 /recipes-sota/aktualizr | |
parent | 599c048c03d3cd454270dc729e8ad746497588b2 (diff) | |
download | meta-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"
Diffstat (limited to 'recipes-sota/aktualizr')
-rw-r--r-- | recipes-sota/aktualizr/aktualizr_git.bb | 3 |
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 | } |
37 | do_install_append_class-target () { | 37 | do_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 | } |
40 | do_install_append_class-native () { | 41 | do_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 () { | |||
50 | FILES_${PN}_class-target = " \ | 51 | FILES_${PN}_class-target = " \ |
51 | ${bindir}/aktualizr \ | 52 | ${bindir}/aktualizr \ |
52 | ${bindir}/aktualizr-info \ | 53 | ${bindir}/aktualizr-info \ |
53 | ${bindir}/example-interface \ | ||
54 | " | 54 | " |
55 | FILES_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '${bindir}/example-interface', '', d)} " | ||
55 | FILES_${PN}_class-native = " \ | 56 | FILES_${PN}_class-native = " \ |
56 | ${bindir}/aktualizr_implicit_writer \ | 57 | ${bindir}/aktualizr_implicit_writer \ |
57 | ${bindir}/garage-deploy \ | 58 | ${bindir}/garage-deploy \ |