From: "'Isaac True' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Isaac True <itrue@emlix.com>
Subject: [PATCH 1/3] linux-custom: add linux-tools package
Date: Wed, 26 Nov 2025 09:59:01 +0100 [thread overview]
Message-ID: <20251126090202.3091051-6-itrue@emlix.com> (raw)
In-Reply-To: <20251126090202.3091051-5-itrue@emlix.com>
Add an additional package to the linux-custom recipe which can be used
to deliver tools built from the kernel sources, such as perf.
Signed-off-by: Isaac True <itrue@emlix.com>
---
meta/recipes-kernel/linux/files/debian/control.tmpl | 10 ++++++++++
.../recipes-kernel/linux/files/debian/isar/common.tmpl | 2 ++
meta/recipes-kernel/linux/linux-custom.inc | 1 +
3 files changed, 13 insertions(+)
diff --git a/meta/recipes-kernel/linux/files/debian/control.tmpl b/meta/recipes-kernel/linux/files/debian/control.tmpl
index ee87cf92..1c253530 100644
--- a/meta/recipes-kernel/linux/files/debian/control.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/control.tmpl
@@ -69,3 +69,13 @@ Conflicts: linux-kbuild-${KERNEL_NAME_PROVIDED}
Description: ${KERNEL_NAME_PROVIDED} Linux kbuild scripts and tools for @KR@
This package provides kernel kbuild scripts and tools for @KR@
This is useful for people who need to build external modules
+
+Package: linux-tools-${KERNEL_NAME_PROVIDED}
+Build-Profiles: <kernel>
+Architecture: any
+Multi-Arch: foreign
+Depends: ${perl:Depends}, ${shlib:Depends}
+Description: ${KERNEL_NAME_PROVIDED} Linux tools for @KR@
+ This package provides kernel tools for @KR@.
+ .
+ This is useful for people who want to run things like perf.
diff --git a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl
index f9cc2f02..a104784a 100644
--- a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl
+++ b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl
@@ -12,6 +12,7 @@ KERNEL_PKG_LIBC_HEADERS=linux-libc-dev
KERNEL_PKG_LIBC_HEADERS_CROSS=linux-libc-dev-${DISTRO_ARCH}-cross
KERNEL_PKG_KERN_KBUILD=linux-kbuild-${KERNEL_NAME_PROVIDED}
KERNEL_PKG_KERN_KBUILD_CROSS=${KERNEL_PKG_KERN_KBUILD}-${DISTRO_ARCH}-cross
+KERNEL_PKG_TOOLS=linux-tools-${KERNEL_NAME_PROVIDED}
# Force creating debian package with valid host arch for -native build
# Use a cross build to comply with arch specific kernel defconfigs
@@ -38,6 +39,7 @@ deb_libc_hdr_dir=${deb_top_dir}/${KERNEL_PKG_LIBC_HEADERS}
deb_libc_hdr_cross_dir=${deb_top_dir}/${KERNEL_PKG_LIBC_HEADERS_CROSS}
deb_kern_kbuild_dir=${deb_top_dir}/${KERNEL_PKG_KERN_KBUILD}
deb_kern_kbuild_cross_dir=${deb_top_dir}/${KERNEL_PKG_KERN_KBUILD_CROSS}
+deb_tools_dir=${deb_top_dir}/${KERNEL_PKG_TOOLS}
# Array of packages to be generated
declare -A kern_pkgs
diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc
index 391bd6fa..cd0a6f6a 100644
--- a/meta/recipes-kernel/linux/linux-custom.inc
+++ b/meta/recipes-kernel/linux/linux-custom.inc
@@ -160,6 +160,7 @@ RECIPE_PROVIDES = " \
linux-libc-dev-${DISTRO_ARCH}-cross \
linux-image-${KERNEL_NAME_PROVIDED}-dbg \
linux-kbuild-${KERNEL_NAME_PROVIDED} \
+ linux-tools-${KERNEL_NAME_PROVIDED} \
${BPN}-pseudo-native \
"
# When cross-profile is active:
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251126090202.3091051-6-itrue%40emlix.com.
next prev parent reply other threads:[~2025-11-26 9:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-26 8:59 [PATCH 0/3] linux-custom: add linux-tools package and perf 'Isaac True' via isar-users
2025-11-26 8:59 ` 'Isaac True' via isar-users [this message]
2025-11-26 8:59 ` [PATCH 2/3] linux-custom: build perf and add it to linux-tools 'Isaac True' via isar-users
2025-11-26 9:09 ` 'Isaac True' via isar-users
2025-11-26 8:59 ` [PATCH 3/3] doc: custom_kernel: add perf and linux-tools 'Isaac True' via isar-users
2025-11-26 9:46 ` [PATCH 0/3] linux-custom: add linux-tools package and perf 'Florian Bezdeka' via isar-users
2025-11-26 9:59 ` 'Isaac True' via isar-users
2025-11-26 10:30 ` 'Florian Bezdeka' via isar-users
2025-11-27 7:17 ` 'Jan Kiszka' via isar-users
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251126090202.3091051-6-itrue@emlix.com \
--to=isar-users@googlegroups.com \
--cc=itrue@emlix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox