From: "Thomas Weißschuh" <linux@weissschuh.net>
To: Peter Jung <admin@ptr1337.dev>
Cc: jose.fernandez@linux.dev, Christian Heusel <christian@heusel.eu>,
Nathan Chancellor <nathan@kernel.org>,
Masahiro Yamada <masahiroy@kernel.org>,
Nicolas Schier <nicolas@fjasle.eu>,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
bpf@vger.kernel.org
Subject: Re: [PATCH] kbuild: add resolve_btfids to pacman PKGBUILD
Date: Sun, 3 Nov 2024 04:39:38 +0000 [thread overview]
Message-ID: <ce5b3247-c682-47f1-b503-154b5d48bffc@t-8ch.de> (raw)
In-Reply-To: <20241102120533.1592277-1-admin@ptr1337.dev>
On 2024-11-02 13:05:26+0100, Peter Jung wrote:
> If the config is using DEBUG_INFO_BTF, it is required to,
> package resolve_btfids with.
This sentence sounds weird.
> Compiling dkms modules will fail otherwise.
Maybe we should add it to scripts/package/install-extmod-build so it
also works for all the other package types?
> Add a check, if resolve_btfids is present and then package it, if required.
>
> Signed-off-by: Peter Jung <admin@ptr1337.dev>
> ---
> scripts/package/PKGBUILD | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/scripts/package/PKGBUILD b/scripts/package/PKGBUILD
> index f83493838cf9..4010899652b8 100644
> --- a/scripts/package/PKGBUILD
> +++ b/scripts/package/PKGBUILD
> @@ -91,6 +91,11 @@ _package-headers() {
> "${srctree}/scripts/package/install-extmod-build" "${builddir}"
> fi
>
> + # required when DEBUG_INFO_BTF_MODULES is enabled
> + if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then
I would prefer to actually test for DEBUG_INFO_BTF_MODULES instead of
file existence. This file may be stale when the option got disabled.
> + install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
> + fi
> +
> echo "Installing System.map and config..."
> mkdir -p "${builddir}"
> cp System.map "${builddir}/System.map"
> --
> 2.47.0
>
next prev parent reply other threads:[~2024-11-03 4:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-02 12:05 Peter Jung
2024-11-03 4:39 ` Thomas Weißschuh [this message]
2024-11-03 9:47 ` Masahiro Yamada
2024-11-04 14:44 ` Peter Jung
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=ce5b3247-c682-47f1-b503-154b5d48bffc@t-8ch.de \
--to=linux@weissschuh.net \
--cc=admin@ptr1337.dev \
--cc=bpf@vger.kernel.org \
--cc=christian@heusel.eu \
--cc=jose.fernandez@linux.dev \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=nathan@kernel.org \
--cc=nicolas@fjasle.eu \
/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
all inboxes | Powered by JetHome®