Skip to contentSkip to conversation

cpulimit: introduce support for this package

PATCH In review BOUBAKER Bassem 2 participants 3 messages Mar 12, 2019 – Mar 14, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cpulimit: introduce support for this package

* Now, cpulimit recipe is put under recipes-support. Binary will be installed by the recipe under /usr/sbin

         # cpulimit -h
         Usage: cpulimit [OPTIONS...] TARGET
                 OPTIONS
                 -l, --limit=N          percentage of cpu allowed from 0 to 100 (required)
                 -v, --verbose          show control statistics
                 -z, --lazy             exit if there is no target process, or if it dies
                 -i, --include-children limit also the children processes
                 -h, --help             display this help and exit
                 TARGET must be exactly one of these:
                 -p, --pid=N            pid of the process (implies -z)
                 -e, --exe=FILE         name of the executable program file or path name
                 COMMAND [ARGS]         run this command and limit it (implies -z)

Report bugs to <[email protected]>.

---
 meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb
meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb new file +19 -0
new file mode 100644
index 0000000..8eaa928
@@ -0,0 +1,19 @@
+SUMMARY = "cpulimit is a tool which limits the CPU usage of a process"
+HOMEPAGE = "http://cpulimit.sourceforge.net"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86c1c0d961a437e529db93aa3bb32dc4"
+SRCREV ?= "f4d2682804931e7aea02a869137344bb5452a3cd"
+
+SRC_URI = "git://[email protected]/opsengine/cpulimit.git;protocol=https"
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+    oe_runmake all
+}
+do_install() {
+    install -d ${D}${sbindir}
+    install -m 0755 ${B}/src/${PN} ${D}${sbindir}/
+}
+
+CFLAGS += "${LDFLAGS}"
\ No newline at end of file
Signature · 1 line
2.7.4
#1 lore raw
Quoted 38 lines · BOUBAKER Bassem

* Now, cpulimit recipe is put under recipes-support. Binary will be installed by the recipe under /usr/sbin

         # cpulimit -h
         Usage: cpulimit [OPTIONS...] TARGET
                 OPTIONS
                 -l, --limit=N          percentage of cpu allowed from 0 to 100 (required)
                 -v, --verbose          show control statistics
                 -z, --lazy             exit if there is no target process, or if it dies
                 -i, --include-children limit also the children processes
                 -h, --help             display this help and exit
                 TARGET must be exactly one of these:
                 -p, --pid=N            pid of the process (implies -z)
                 -e, --exe=FILE         name of the executable program file or path name
                 COMMAND [ARGS]         run this command and limit it (implies -z)

Report bugs to <[email protected]>.

---
 meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb
meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb new file +9 -0
new file mode 100644
index 0000000..8eaa928
@@ -0,0 +1,19 @@
+SUMMARY = "cpulimit is a tool which limits the CPU usage of a process"
+HOMEPAGE = "http://cpulimit.sourceforge.net"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86c1c0d961a437e529db93aa3bb32dc4"
+SRCREV ?= "f4d2682804931e7aea02a869137344bb5452a3cd"
+
+SRC_URI = "git://[email protected]/opsengine/cpulimit.git;protocol=https"
+
+S = "${WORKDIR}/git"

meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb line 19

Quoted 10 lines
meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb new file +10 -0
+
+do_compile() {
+    oe_runmake all
+}
+do_install() {
+    install -d ${D}${sbindir}
+    install -m 0755 ${B}/src/${PN} ${D}${sbindir}/
+}
+
+CFLAGS += "${LDFLAGS}"

oooups didn't see it. will be fixed

Quoted 5 lines

\ No newline at end of file

Signature · 1 line
2.7.4

From 35e686b6cf443d4de44dd431ebea5cfadc9e5880 Mon Sep 17 00:00:00 2001
From: Bassem Boubaker <[email protected]>
Date: Fri, 8 Mar 2019 17:30:04 +0100
Subject: [PATCH] cpulimit: introduce support for this package

* Now, cpulimit recipe is put under recipes-support. Binary will be installed by the recipe under /usr/sbin

# cpulimit -h
Usage: cpulimit [OPTIONS...] TARGET
OPTIONS
-l, --limit=N percentage of cpu allowed from 0 to 100 (required)
-v, --verbose show control statistics
-z, --lazy exit if there is no target process, or if it dies
-i, --include-children limit also the children processes
-h, --help display this help and exit
TARGET must be exactly one of these:
-p, --pid=N pid of the process (implies -z)
-e, --exe=FILE name of the executable program file or path name
COMMAND [ARGS] run this command and limit it (implies -z)

Report bugs to <[email protected]>.

---
 meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb
meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb new file +22 -0
new file mode 100644
index 0000000..d0c524e
@@ -0,0 +1,22 @@
+DESCRIPTION = "cpulimit is a tool which limits the CPU usage of a process from bash prespective"
+HOMEPAGE = "http://cpulimit.sourceforge.net/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86c1c0d961a437e529db93aa3bb32dc4"
+
+PR = "r0"
+
+SRCREV ?= "f4d2682804931e7aea02a869137344bb5452a3cd"
+
+SRC_URI = "git://[email protected]/opsengine/cpulimit.git;protocol=https"
+
+SRC_URI[md5sum] = "4f805fe26c8cf28e8251d64d0ace21d4"
+SRC_URI[sha256sum] = "544516d0d80c685b1df1344a71c900e845270551cf210300fa4d13876e10817a"
+
+inherit autotools
+
+S = "${WORKDIR}/git"
+
+do_install() {
+        install -d ${D}${sbindir}
+        install -m 0755 ${S}/src/${PN} ${D}${sbindir}/
+}
\ No newline at end of file
Signature · 1 line
2.7.4
#2 lore raw

musl build fails.
https://errors.yoctoproject.org/Errors/Details/232895/

Quoted 62 lines · BOUBAKER Bassem via Openembedded-devel
Quoted 38 lines · BOUBAKER Bassem

* Now, cpulimit recipe is put under recipes-support. Binary will be installed by the recipe under /usr/sbin

         # cpulimit -h
         Usage: cpulimit [OPTIONS...] TARGET
                 OPTIONS
                 -l, --limit=N          percentage of cpu allowed from 0 to 100 (required)
                 -v, --verbose          show control statistics
                 -z, --lazy             exit if there is no target process, or if it dies
                 -i, --include-children limit also the children processes
                 -h, --help             display this help and exit
                 TARGET must be exactly one of these:
                 -p, --pid=N            pid of the process (implies -z)
                 -e, --exe=FILE         name of the executable program file or path name
                 COMMAND [ARGS]         run this command and limit it (implies -z)

Report bugs to <[email protected]>.

---
 meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb
meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb new file +9 -0
new file mode 100644
index 0000000..8eaa928
@@ -0,0 +1,19 @@
+SUMMARY = "cpulimit is a tool which limits the CPU usage of a process"
+HOMEPAGE = "http://cpulimit.sourceforge.net"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=86c1c0d961a437e529db93aa3bb32dc4"
+SRCREV ?= "f4d2682804931e7aea02a869137344bb5452a3cd"
+
+SRC_URI = "git://[email protected]/opsengine/cpulimit.git;protocol=https"
+
+S = "${WORKDIR}/git"

meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb line 19

Quoted 10 lines
meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb new file +10 -0
+
+do_compile() {
+    oe_runmake all
+}
+do_install() {
+    install -d ${D}${sbindir}
+    install -m 0755 ${B}/src/${PN} ${D}${sbindir}/
+}
+
+CFLAGS += "${LDFLAGS}"

oooups didn't see it. will be fixed

Quoted 5 lines

\ No newline at end of file

--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel