diff options
-rwxr-xr-x | recipes-sota/aktualizr/aktualizr_git.bb | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index b392de0..8bd65da 100755 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -5,16 +5,9 @@ SECTION = "base" | |||
5 | LICENSE = "MPL-2.0" | 5 | LICENSE = "MPL-2.0" |
6 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" | 6 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=9741c346eef56131163e13b9db1241b3" |
7 | 7 | ||
8 | DEPENDS = "boost curl openssl libarchive libsodium asn1c-native sqlite3 " | 8 | DEPENDS = "boost curl openssl libarchive libsodium sqlite3 asn1c-native" |
9 | DEPENDS_append_class-target = "ostree ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', ' libp11', '', d)} " | 9 | RDEPENDS_${PN}_class-target = "${PN}-tools lshw" |
10 | DEPENDS_append_class-native = "glib-2.0-native " | 10 | RDEPENDS_${PN}-secondary_class-target = "${PN}-tools" |
11 | |||
12 | RDEPENDS_${PN}_class-target = "lshw " | ||
13 | RDEPENDS_${PN}_append_class-target = "${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', ' slcand-start', '', d)} " | ||
14 | RDEPENDS_${PN}_append_class-target = " ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'ubootenv', ' u-boot-fw-utils aktualizr-uboot-env-rollback', '', d)} " | ||
15 | |||
16 | RDEPENDS_${PN}_append_class-target = " ${PN}-tools " | ||
17 | RDEPENDS_${PN}-secondary_append_class-target = " ${PN}-tools " | ||
18 | 11 | ||
19 | PV = "1.0+git${SRCPV}" | 12 | PV = "1.0+git${SRCPV}" |
20 | PR = "7" | 13 | PR = "7" |
@@ -32,9 +25,7 @@ BRANCH ?= "master" | |||
32 | 25 | ||
33 | S = "${WORKDIR}/git" | 26 | S = "${WORKDIR}/git" |
34 | 27 | ||
35 | inherit cmake | 28 | inherit pkgconfig cmake systemd |
36 | |||
37 | inherit systemd | ||
38 | 29 | ||
39 | SYSTEMD_PACKAGES = "${PN} ${PN}-secondary" | 30 | SYSTEMD_PACKAGES = "${PN} ${PN}-secondary" |
40 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" | 31 | SYSTEMD_SERVICE_${PN} = "aktualizr.service" |
@@ -44,17 +35,22 @@ BBCLASSEXTEND =+ "native" | |||
44 | 35 | ||
45 | require garage-sign-version.inc | 36 | require garage-sign-version.inc |
46 | 37 | ||
47 | EXTRA_OECMAKE = "-DWARNING_AS_ERROR=OFF \ | 38 | EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DAKTUALIZR_VERSION=${PV}" |
48 | -DCMAKE_BUILD_TYPE=Release \ | 39 | |
49 | -DAKTUALIZR_VERSION=${PV} \ | 40 | GARAGE_SIGN_OPS = "${@ '-DGARAGE_SIGN_VERSION=%s' % d.getVar('GARAGE_SIGN_VERSION') if d.getVar('GARAGE_SIGN_VERSION') is not None else ''} \ |
50 | -DBUILD_LOAD_TESTS=OFF" | 41 | ${@ '-DGARAGE_SIGN_SHA256=%s' % d.getVar('GARAGE_SIGN_SHA256') if d.getVar('GARAGE_SIGN_SHA256') is not None else ''} \ |
51 | EXTRA_OECMAKE_append_class-target = " -DBUILD_OSTREE=ON \ | 42 | " |
52 | ${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'hsm', '-DBUILD_P11=ON', '', d)} " | 43 | |
53 | EXTRA_OECMAKE_append_class-native = " -DBUILD_SOTA_TOOLS=ON \ | 44 | PACKAGECONFIG ?= "ostree ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} ${@bb.utils.filter('SOTA_CLIENT_FEATURES', 'hsm serialcan ubootenv', d)}" |
54 | -DBUILD_OSTREE=OFF \ | 45 | PACKAGECONFIG_class-native = "sota-tools" |
55 | -DBUILD_SYSTEMD=OFF \ | 46 | PACKAGECONFIG[warning-as-error] = "-DWARNING_AS_ERROR=ON,-DWARNING_AS_ERROR=OFF," |
56 | -DGARAGE_SIGN_VERSION=${GARAGE_SIGN_VERSION} \ | 47 | PACKAGECONFIG[ostree] = "-DBUILD_OSTREE=ON,-DBUILD_OSTREE=OFF,ostree," |
57 | -DGARAGE_SIGN_SHA256=${GARAGE_SIGN_SHA256}" | 48 | PACKAGECONFIG[hsm] = "-DBUILD_P11=ON,-DBUILD_P11=OFF,libp11," |
49 | PACKAGECONFIG[sota-tools] = "-DBUILD_SOTA_TOOLS=ON ${GARAGE_SIGN_OPS},-DBUILD_SOTA_TOOLS=OFF,glib-2.0," | ||
50 | PACKAGECONFIG[systemd] = "-DBUILD_SYSTEMD=ON,-DBUILD_SYSTEMD=OFF,systemd," | ||
51 | PACKAGECONFIG[load-tests] = "-DBUILD_LOAD_TESTS=ON,-DBUILD_LOAD_TESTS=OFF," | ||
52 | PACKAGECONFIG[serialcan] = ",,,slcand-start" | ||
53 | PACKAGECONFIG[ubootenv] = ",,,u-boot-fw-utils aktualizr-uboot-env-rollback" | ||
58 | 54 | ||
59 | do_install_append () { | 55 | do_install_append () { |
60 | install -d ${D}${libdir}/sota | 56 | install -d ${D}${libdir}/sota |