summaryrefslogtreecommitdiffstats
path: root/recipes-sota
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-02-14 15:46:33 +0100
committerLaurent Bonnans <laurent.bonnans@here.com>2019-03-12 11:35:37 +0100
commit72ba172d53da21918c10f78a4386dff17f5df92d (patch)
tree92489faf16e8ea423a18cbd6f4cd826cbd9b4a13 /recipes-sota
parent5211e6d2c4ea572052ecdf8af453ffac56b40f23 (diff)
downloadmeta-updater-72ba172d53da21918c10f78a4386dff17f5df92d.tar.gz
aktualizr: draft of enabling ptest
Original work from Patrick. Laurent: dropped a patch for a change in aktualizr we now support directly Signed-off-by: Patrick Vacek <patrickvacek@gmail.com> Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'recipes-sota')
-rwxr-xr-xrecipes-sota/aktualizr/aktualizr_git.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb
index 1632288..8790fe5 100755
--- a/recipes-sota/aktualizr/aktualizr_git.bb
+++ b/recipes-sota/aktualizr/aktualizr_git.bb
@@ -6,6 +6,7 @@ LICENSE = "MPL-2.0"
6LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" 6LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=9741c346eef56131163e13b9db1241b3"
7 7
8DEPENDS = "boost curl openssl libarchive libsodium sqlite3 asn1c-native" 8DEPENDS = "boost curl openssl libarchive libsodium sqlite3 asn1c-native"
9DEPENDS_append = "${@bb.utils.contains('PTEST_ENABLED', '1', ' coreutils-native ostree-native aktualizr-native ', '', d)}"
9RDEPENDS_${PN}_class-target = "aktualizr-check-discovery aktualizr-configs lshw" 10RDEPENDS_${PN}_class-target = "aktualizr-check-discovery aktualizr-configs lshw"
10RDEPENDS_${PN}-secondary = "aktualizr-check-discovery" 11RDEPENDS_${PN}-secondary = "aktualizr-check-discovery"
11RDEPENDS_${PN}-host-tools = "aktualizr aktualizr-repo aktualizr-cert-provider ${@bb.utils.contains('PACKAGECONFIG', 'sota-tools', 'garage-deploy garage-push', '', d)}" 12RDEPENDS_${PN}-host-tools = "aktualizr aktualizr-repo aktualizr-cert-provider ${@bb.utils.contains('PACKAGECONFIG', 'sota-tools', 'garage-deploy garage-push', '', d)}"
@@ -33,7 +34,7 @@ BRANCH ?= "master"
33 34
34S = "${WORKDIR}/git" 35S = "${WORKDIR}/git"
35 36
36inherit pkgconfig cmake systemd 37inherit cmake pkgconfig ptest systemd
37 38
38SYSTEMD_PACKAGES = "${PN} ${PN}-secondary" 39SYSTEMD_PACKAGES = "${PN} ${PN}-secondary"
39SYSTEMD_SERVICE_${PN} = "aktualizr.service" 40SYSTEMD_SERVICE_${PN} = "aktualizr.service"
@@ -54,6 +55,10 @@ PACKAGECONFIG[load-tests] = "-DBUILD_LOAD_TESTS=ON,-DBUILD_LOAD_TESTS=OFF,"
54PACKAGECONFIG[serialcan] = ",,,slcand-start" 55PACKAGECONFIG[serialcan] = ",,,slcand-start"
55PACKAGECONFIG[ubootenv] = ",,,u-boot-fw-utils aktualizr-uboot-env-rollback" 56PACKAGECONFIG[ubootenv] = ",,,u-boot-fw-utils aktualizr-uboot-env-rollback"
56 57
58do_compile_ptest() {
59 cmake_runcmake_build --target build_tests
60}
61
57do_install_append () { 62do_install_append () {
58 install -d ${D}${libdir}/sota 63 install -d ${D}${libdir}/sota
59 install -m 0644 ${S}/config/sota_autoprov.toml ${D}/${libdir}/sota/sota_autoprov.toml 64 install -m 0644 ${S}/config/sota_autoprov.toml ${D}/${libdir}/sota/sota_autoprov.toml