Skip to content

Commit 3f7ec76

Browse files
committed
resource-tuner: add BitBake recipe to recipe-support layer
Add initial BitBake recipe for resource-tuner in the recipe-support layer. The recipe is included as part of the boot-essential package group. This commit also incorporates review feedback from the initial submission. Signed-off-by: Jagadeesh Pagadala <[email protected]>
1 parent 1e3b0f7 commit 3f7ec76

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

recipes-bsp/packagegroups/packagegroup-qcom.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ RDEPENDS:${PN}-boot-essential = " \
1515
qrtr \
1616
rmtfs \
1717
tqftpserv \
18+
resource-tuner \
1819
"
1920

2021
RDEPENDS:${PN}-boot-additional:append:aarch64 = " \
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
HOMEPAGE = "https://github.com/qualcomm/resource-tuner"
2+
SUMMARY = "Userspace daemon for dynamic resource management via cgroups"
3+
DESCRIPTION = "Resource Tuner is a lightweight userspace daemon that monitors system \
4+
resources and enforces policies using Linux kernel interfaces such as cgroups and sysfs."
5+
6+
LICENSE = "BSD-3-Clause"
7+
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=2998c54c288b081076c9af987bdf4838"
8+
9+
SRC_URI = "git://github.com/qualcomm/resource-tuner.git;protocol=https;branch=main"
10+
SRCREV = "562e2e19472b6c5c51886a22869bc4c4973b4a6f"
11+
S = "${UNPACKDIR}/${PN}-${PV}"
12+
13+
DEPENDS += "libyaml systemd"
14+
15+
inherit cmake pkgconfig systemd
16+
17+
EXTRA_OECMAKE += "${S}/Build"
18+
19+
PACKAGECONFIG ??= "signals cli state-detector tests"
20+
PACKAGECONFIG[signals] = "-DBUILD_SIGNALS=ON,-DBUILD_SIGNALS=OFF"
21+
PACKAGECONFIG[cli] = "-DBUILD_CLI=ON,-DBUILD_CLI=OFF"
22+
PACKAGECONFIG[state-detector] = "-DBUILD_STATE_DETECTOR=ON,-DBUILD_STATE_DETECTOR=OFF"
23+
PACKAGECONFIG[tests] = "-DBUILD_TESTS=ON,-DBUILD_TESTS=OFF"
24+
25+
SYSTEMD_SERVICE:${PN} = "resource-tuner.service"
26+
27+
do_install:append() {
28+
install -d ${D}/etc/resource-tuner/common
29+
install -m 0644 ${S}/Core/Configs/*.yaml ${D}/etc/resource-tuner/common/
30+
install -m 0644 ${S}/Signals/Configs/*.yaml ${D}/etc/resource-tuner/common/
31+
32+
install -d ${D}/etc/resource-tuner/custom
33+
install -d ${D}/etc/resource-tuner/tests/Configs/ResourceSysFsNodes
34+
install -m 0644 ${S}/Tests/Configs/*.yaml ${D}/etc/resource-tuner/custom/
35+
install -m 0644 ${S}/Tests/Configs/ResourceSysFsNodes/*.txt ${D}/etc/resource-tuner/tests/Configs/ResourceSysFsNodes/
36+
}
37+
38+
FILES:${PN} += "${libdir}"
39+
FILES:${PN} += "/etc/resource-tuner/**"
40+
SOLIBS = ".so"

0 commit comments

Comments
 (0)