Skip to content

Commit

Permalink
Adapt to shared libraries changes in aktualizr
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Bonnans <[email protected]>
  • Loading branch information
lbonn committed Jan 9, 2020
1 parent 2881b4a commit 824f6c2
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions recipes-sota/aktualizr/aktualizr_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=815ca599c9df247a0c7f619bab123dad"

DEPENDS = "boost curl openssl libarchive libsodium sqlite3 asn1c-native"
DEPENDS_append = "${@bb.utils.contains('PTEST_ENABLED', '1', ' coreutils-native net-tools-native ostree-native aktualizr-native ', '', d)}"
RDEPENDS_${PN}_class-target = "aktualizr-configs aktualizr-hwid lshw"
RDEPENDS_${PN}_class-target = "${PN}-configs ${PN}-hwid lshw"
RDEPENDS_${PN}-host-tools = "aktualizr aktualizr-cert-provider ${@bb.utils.contains('PACKAGECONFIG', 'sota-tools', 'garage-deploy garage-push', '', d)}"
DEPENDS_garage-push = " ${PN}-sotatools-lib"

RDEPENDS_${PN}-ptest += "bash cmake curl net-tools python3-core python3-misc python3-modules openssl-bin sqlite3 valgrind"

Expand All @@ -30,8 +31,8 @@ SRC_URI = " \
SRC_URI[garagesign.md5sum] = "3e1ae6d49cc66fda37cef47f849d9609"
SRC_URI[garagesign.sha256sum] = "8d49b83efa222db2f092ee14348459ee1bfd048552b57c3cb5ab48db8e347d82"

SRCREV = "2403384097448042c825c485e905deb130ce9fcc"
BRANCH ?= "master"
SRCREV = "c8379e3d1f8495bc7859c57ccab874feb62a6c6b"
BRANCH ?= "feat/dyn-library"

S = "${WORKDIR}/git"

Expand Down Expand Up @@ -140,7 +141,7 @@ python split_hosttools_packages () {

PACKAGES_DYNAMIC = "^aktualizr-.* ^garage-.*"

PACKAGES =+ "${PN}-resource-control ${PN}-examples ${PN}-secondary ${PN}-configs ${PN}-host-tools"
PACKAGES =+ "${PN}-host-tools ${PN}-lib ${PN}-resource-control ${PN}-configs ${PN}-examples ${PN}-secondary ${PN}-secondary-lib ${PN}-sotatools-lib"

ALLOW_EMPTY_${PN}-host-tools = "1"

Expand All @@ -150,6 +151,10 @@ FILES_${PN} = " \
${systemd_unitdir}/system/aktualizr.service \
"

FILES_${PN}-lib = " \
${libdir}/libaktualizr_lib.so \
"

FILES_${PN}-resource-control = " \
${systemd_system_unitdir}/aktualizr.service.d/10-resource-control.conf \
"
Expand All @@ -169,6 +174,16 @@ FILES_${PN}-secondary = " \
${systemd_unitdir}/system/aktualizr-secondary.service \
"

FILES_${PN}-secondary-lib = " \
${libdir}/libaktualizr_secondary_lib.so \
"

FILES_${PN}-sotatools-lib = " \
${libdir}/libsota_tools_lib.so \
"

FILES_${PN}-dev = ""

BBCLASSEXTEND = "native"

# vim:set ts=4 sw=4 sts=4 expandtab:

0 comments on commit 824f6c2

Please sign in to comment.