Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions recipes-support/resource-tuner/resource-tuner_0.2.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOMEPAGE = "https://github.com/qualcomm/resource-tuner"
SUMMARY = "Userspace daemon for dynamic System resource management"
DESCRIPTION = "Resource Tuner is a lightweight userspace daemon that monitors system \
resources and enforces policies using Linux kernel interfaces such as cgroups and sysfs."

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2998c54c288b081076c9af987bdf4838"

SRC_URI = "git://github.com/qualcomm/resource-tuner.git;protocol=https;branch=main"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add ;tag=v${PV} to the SRC_URI?

SRCREV = "681a19ba3f6731f3acf1e1022fcd94298eecff82"

inherit cmake pkgconfig systemd

DEPENDS += "libyaml systemd"

PACKAGECONFIG ??= "cli signals state-detector tests"
PACKAGECONFIG[cli] = "-DBUILD_CLI=ON,-DBUILD_CLI=OFF"
PACKAGECONFIG[signals] = "-DBUILD_SIGNALS=ON,-DBUILD_SIGNALS=OFF"
PACKAGECONFIG[state-detector] = "-DBUILD_STATE_DETECTOR=ON,-DBUILD_STATE_DETECTOR=OFF"
PACKAGECONFIG[tests] = "-DBUILD_TESTS=ON,-DBUILD_TESTS=OFF"

FILES:${PN} += "${sysconfdir}/resource-tuner/*"
SYSTEMD_SERVICE:${PN} = "resource-tuner.service"

PACKAGE_BEFORE_PN += "${PN}-tests"
FILES:${PN}-tests += "${sysconfdir}/resource-tuner/tests/* \
${bindir}/RestuneComponentTests \
${bindir}/RestuneIntegrationTests \
${libdir}/libRestuneTestUtils.so* \
${libdir}/libRestunePlugin.so* "
Loading