diff mbox series

[meta-oe,3/3] tuna: add recipe

Message ID 20221128151916.3541948-4-erwann.roussy@savoirfairelinux.com
State Under Review
Headers show
Series Add tuna recipe and dependencies | expand

Commit Message

Erwann Roussy Nov. 28, 2022, 3:19 p.m. UTC
Tuna is a cui/gui tool for tuning of running processes.
It is useful to see and changed irq affinity on an embedded board.

The chosen revision of tuna is the last commit to this day and not the
last release. This is due to the python3-ethtool module which was
required in the last release but isn't anymore. Tuna now has a built-in
module instead.

Despite tuna's homepage's dependencies section, python3-inet_diag isn't
required anymore.

Signed-off-by: Erwann Roussy <erwann.roussy@savoirfairelinux.com>
---
 meta-oe/recipes-support/tuna/tuna_git.bb | 25 ++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-support/tuna/tuna_git.bb

Comments

Khem Raj Nov. 29, 2022, 10:07 p.m. UTC | #1
On Mon, Nov 28, 2022 at 7:21 AM Erwann Roussy
<erwann.roussy@savoirfairelinux.com> wrote:
>
> Tuna is a cui/gui tool for tuning of running processes.
> It is useful to see and changed irq affinity on an embedded board.
>
> The chosen revision of tuna is the last commit to this day and not the
> last release. This is due to the python3-ethtool module which was
> required in the last release but isn't anymore. Tuna now has a built-in
> module instead.
>
> Despite tuna's homepage's dependencies section, python3-inet_diag isn't
> required anymore.
>
> Signed-off-by: Erwann Roussy <erwann.roussy@savoirfairelinux.com>
> ---
>  meta-oe/recipes-support/tuna/tuna_git.bb | 25 ++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
>  create mode 100644 meta-oe/recipes-support/tuna/tuna_git.bb
>
> diff --git a/meta-oe/recipes-support/tuna/tuna_git.bb b/meta-oe/recipes-support/tuna/tuna_git.bb
> new file mode 100644
> index 000000000..f698b2ea2
> --- /dev/null
> +++ b/meta-oe/recipes-support/tuna/tuna_git.bb
> @@ -0,0 +1,25 @@
> +SUMMARY = "cui/gui tool for tuning of running processes"
> +HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Tuna"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
> +
> +SRC_URI = "git://git.kernel.org/pub/scm/utils/tuna/tuna.git;branch=main"
> +
> +SRCREV = "0681906e75e1c8166126bbfc2f3055e7507bfcb5"
> +
> +S = "${WORKDIR}/git"
> +
> +RDEPENDS:${PN} += " \
> +    python3-io \
> +    python3-linux-procfs \
> +    python3-logging \
> +    python3-schedutils \
> +    python3-six \
> +    "

it seems to depend on python3-linux-procfs which is in meta-python but
meta-oe does not depend on meta-python
as layer dependency, so perhaps it should be using dynamic layers or
perhaps should be moved to meta-python

> +
> +inherit setuptools3
> +
> +do_install:append() {
> +    install -m 0755 -d ${D}${bindir}
> +    install -m 0755 ${S}/tuna-cmd.py ${D}${bindir}/tuna
> +}
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#99829): https://lists.openembedded.org/g/openembedded-devel/message/99829
> Mute This Topic: https://lists.openembedded.org/mt/95312027/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/tuna/tuna_git.bb b/meta-oe/recipes-support/tuna/tuna_git.bb
new file mode 100644
index 000000000..f698b2ea2
--- /dev/null
+++ b/meta-oe/recipes-support/tuna/tuna_git.bb
@@ -0,0 +1,25 @@ 
+SUMMARY = "cui/gui tool for tuning of running processes"
+HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Tuna"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI = "git://git.kernel.org/pub/scm/utils/tuna/tuna.git;branch=main"
+
+SRCREV = "0681906e75e1c8166126bbfc2f3055e7507bfcb5"
+
+S = "${WORKDIR}/git"
+
+RDEPENDS:${PN} += " \
+    python3-io \
+    python3-linux-procfs \
+    python3-logging \
+    python3-schedutils \
+    python3-six \
+    "
+
+inherit setuptools3
+
+do_install:append() {
+    install -m 0755 -d ${D}${bindir}
+    install -m 0755 ${S}/tuna-cmd.py ${D}${bindir}/tuna
+}