summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/aktualizr_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr_git.bb')
-rwxr-xr-x[-rw-r--r--]recipes-sota/aktualizr/aktualizr_git.bb41
1 files changed, 24 insertions, 17 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb
index 94a610c..2c0d59f 100644..100755
--- a/recipes-sota/aktualizr/aktualizr_git.bb
+++ b/recipes-sota/aktualizr/aktualizr_git.bb
@@ -5,7 +5,7 @@ SECTION = "base"
5LICENSE = "MPL-2.0" 5LICENSE = "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 asn1c-native " 8DEPENDS = "boost curl openssl libarchive libsodium asn1c-native sqlite3 "
9DEPENDS_append_class-target = "ostree ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', ' libp11', '', d)} " 9DEPENDS_append_class-target = "ostree ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', ' libp11', '', d)} "
10DEPENDS_append_class-native = "glib-2.0-native " 10DEPENDS_append_class-native = "glib-2.0-native "
11 11
@@ -22,7 +22,7 @@ SRC_URI = " \
22 file://aktualizr-secondary.socket \ 22 file://aktualizr-secondary.socket \
23 file://aktualizr-serialcan.service \ 23 file://aktualizr-serialcan.service \
24 " 24 "
25SRCREV = "930d8eef6eb584686654601c056d7c9c6fca3048" 25SRCREV = "3b89858cf8ce9a8331cc4e6a5d2b5783d2eb7ae9"
26BRANCH ?= "master" 26BRANCH ?= "master"
27 27
28S = "${WORKDIR}/git" 28S = "${WORKDIR}/git"
@@ -37,9 +37,20 @@ SYSTEMD_SERVICE_${PN}-secondary = "aktualizr-secondary.socket"
37 37
38BBCLASSEXTEND =+ "native" 38BBCLASSEXTEND =+ "native"
39 39
40EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF -DCMAKE_BUILD_TYPE=Release -DAKTUALIZR_VERSION=${PV} " 40require garage-sign-version.inc
41EXTRA_OECMAKE_append_class-target = " -DBUILD_OSTREE=ON -DBUILD_ISOTP=ON ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', '-DBUILD_P11=ON', '', d)} " 41
42EXTRA_OECMAKE_append_class-native = " -DBUILD_SOTA_TOOLS=ON -DBUILD_OSTREE=OFF -DBUILD_SYSTEMD=OFF " 42EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF \
43 -DCMAKE_BUILD_TYPE=Release \
44 -DAKTUALIZR_VERSION=${PV} \
45 -DBUILD_LOAD_TESTS=OFF"
46EXTRA_OECMAKE_append_class-target = " -DBUILD_OSTREE=ON \
47 -DBUILD_ISOTP=ON \
48 ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', '-DBUILD_P11=ON', '', d)} "
49EXTRA_OECMAKE_append_class-native = " -DBUILD_SOTA_TOOLS=ON \
50 -DBUILD_OSTREE=OFF \
51 -DBUILD_SYSTEMD=OFF \
52 -DGARAGE_SIGN_VERSION=${GARAGE_SIGN_VERSION} \
53 -DGARAGE_SIGN_SHA256=${GARAGE_SIGN_SHA256}"
43 54
44do_install_append () { 55do_install_append () {
45 rm -fr ${D}${libdir}/systemd 56 rm -fr ${D}${libdir}/systemd
@@ -54,30 +65,30 @@ do_install_append () {
54 install -d ${D}${systemd_unitdir}/system 65 install -d ${D}${systemd_unitdir}/system
55 install -m 0644 ${WORKDIR}/aktualizr-secondary.socket ${D}${systemd_unitdir}/system/aktualizr-secondary.socket 66 install -m 0644 ${WORKDIR}/aktualizr-secondary.socket ${D}${systemd_unitdir}/system/aktualizr-secondary.socket
56 install -m 0644 ${WORKDIR}/aktualizr-secondary.service ${D}${systemd_unitdir}/system/aktualizr-secondary.service 67 install -m 0644 ${WORKDIR}/aktualizr-secondary.service ${D}${systemd_unitdir}/system/aktualizr-secondary.service
68 install -m 0700 -d ${D}${libdir}/sota/conf.d
69 install -m 0700 -d ${D}${sysconfdir}/sota/conf.d
57} 70}
58 71
59do_install_append_class-target () { 72do_install_append_class-target () {
60 install -d ${D}${systemd_unitdir}/system 73 install -m 0755 -d ${D}${systemd_unitdir}/system
61 aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)} 74 aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)}
62 install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service 75 install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service
63} 76}
64 77
65do_install_append_class-native () { 78do_install_append_class-native () {
66 install -m 0755 ${B}/src/sota_tools/garage-sign-prefix/src/garage-sign/bin/* ${D}${bindir} 79 install -m 0755 ${B}/src/sota_tools/garage-sign/bin/* ${D}${bindir}
67 install -m 0644 ${B}/src/sota_tools/garage-sign-prefix/src/garage-sign/lib/* ${D}${libdir} 80 install -m 0644 ${B}/src/sota_tools/garage-sign/lib/* ${D}${libdir}
68} 81}
69 82
70PACKAGES =+ " ${PN}-common ${PN}-examples ${PN}-host-tools ${PN}-secondary " 83PACKAGES =+ " ${PN}-examples ${PN}-host-tools ${PN}-secondary "
71 84
72FILES_${PN} = " \ 85FILES_${PN} = " \
73 ${bindir}/aktualizr \ 86 ${bindir}/aktualizr \
74 ${bindir}/aktualizr-info \ 87 ${bindir}/aktualizr-info \
75 ${bindir}/aktualizr-check-discovery \ 88 ${bindir}/aktualizr-check-discovery \
76 ${systemd_unitdir}/system/aktualizr.service \ 89 ${systemd_unitdir}/system/aktualizr.service \
77 " 90 ${libdir}/sota/conf.d \
78 91 ${sysconfdir}/sota/conf.d \
79FILES_${PN}-common = " \
80 ${libdir}/sota/schemas \
81 " 92 "
82 93
83FILES_${PN}-examples = " \ 94FILES_${PN}-examples = " \
@@ -105,8 +116,4 @@ FILES_${PN}-secondary = " \
105 ${systemd_unitdir}/system/aktualizr-secondary.service \ 116 ${systemd_unitdir}/system/aktualizr-secondary.service \
106 " 117 "
107 118
108# Both primary and secondary need the SQL Schemas
109RDEPENDS_${PN}_class-target =+ "${PN}-common"
110RDEPENDS_${PN}-secondary_class-target =+ "${PN}-common"
111
112# vim:set ts=4 sw=4 sts=4 expandtab: 119# vim:set ts=4 sw=4 sts=4 expandtab: