From 599c048c03d3cd454270dc729e8ad746497588b2 Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Thu, 7 Dec 2017 11:31:08 +0100 Subject: Properly install example-interface on target and remove it on host. --- recipes-sota/aktualizr/aktualizr_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'recipes-sota/aktualizr') diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 457abfd..fc65c51 100644 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb @@ -18,7 +18,7 @@ PR = "7" SRC_URI = " \ git://github.com/advancedtelematic/aktualizr;branch=${BRANCH} \ " -SRCREV = "57e9cdb8aa1e8ee9e682628bd67031d9be7aaafa" +SRCREV = "5bf2975aee4af667a1af17381bf68c34a00f03a3" BRANCH ?= "master" S = "${WORKDIR}/git" @@ -40,6 +40,7 @@ do_install_append_class-target () { do_install_append_class-native () { rm -f ${D}${bindir}/aktualizr rm -f ${D}${bindir}/aktualizr-info + rm -f ${D}${bindir}/example-interface install -d ${D}${libdir}/sota install -m 0644 ${S}/config/sota_autoprov.toml ${D}/${libdir}/sota/sota_autoprov.toml install -m 0644 ${S}/config/sota_hsm_test.toml ${D}/${libdir}/sota/sota_hsm_test.toml @@ -49,6 +50,7 @@ do_install_append_class-native () { FILES_${PN}_class-target = " \ ${bindir}/aktualizr \ ${bindir}/aktualizr-info \ + ${bindir}/example-interface \ " FILES_${PN}_class-native = " \ ${bindir}/aktualizr_implicit_writer \ -- cgit v1.2.3-54-g00ecf From 36c032b7972c42f6f31aeaf8c1dae6c9ce667194 Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Fri, 8 Dec 2017 12:08:11 +0100 Subject: Only install example-interface if explicitly asked for. To do so, use this in local.conf: SOTA_CLIENT_FEATURES = "secondary-example" --- recipes-sota/aktualizr/aktualizr_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'recipes-sota/aktualizr') 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 () { } do_install_append_class-target () { rm -f ${D}${bindir}/aktualizr_implicit_writer + ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '', 'rm -f ${D}${bindir}/example-interface', d)} } do_install_append_class-native () { rm -f ${D}${bindir}/aktualizr @@ -50,8 +51,8 @@ do_install_append_class-native () { FILES_${PN}_class-target = " \ ${bindir}/aktualizr \ ${bindir}/aktualizr-info \ - ${bindir}/example-interface \ " +FILES_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'secondary-example', '${bindir}/example-interface', '', d)} " FILES_${PN}_class-native = " \ ${bindir}/aktualizr_implicit_writer \ ${bindir}/garage-deploy \ -- cgit v1.2.3-54-g00ecf