From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: ruggero rossi via ptxdist <ptxdist@pengutronix.de>
Cc: Michael Olbrich <m.olbrich@pengutronix.de>,
Fabian Pfitzner <f.pfitzner@pengutronix.de>,
ruggero rossi <rugrossi@googlemail.com>
Subject: Re: [ptxdist] [APPLIED] kernel: fix modules.builtin.modinfo being executable
Date: Tue, 13 Jan 2026 15:57:29 +0100 [thread overview]
Message-ID: <pvoqmoxvw62d7evp2fa5lyxuku6e7fiemgb7cisuvbpg6uei6l@lvjx3p4nesbq> (raw)
In-Reply-To: <20260112163053.28f8406f@laptop-RR>
[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]
Hello,
On Mon, Jan 12, 2026 at 04:30:53PM +0100, ruggero rossi via ptxdist wrote:
> migrating to PTXDIST 2026.01.0, I found a problem compiling the kernel.
> In my (quite old) kernel, there are no modules.builtin.modinfo files,
> and ptxdist install fails.
>
> It seems that the reason is this patch.
>
> The following patch solved my problem:
>
> --- /usr/local/lib/ptxdist-2026.01.0/rules/kernel.make 2025-12-12
> 09:44:06.000000000 +0100 +++ kernel.make 2026-01-12
> 16:14:44.223920509 +0100 @@ -285,7 +285,11 @@
> @$(call targetinfo)
> ifdef PTXCONF_KERNEL_MODULES_INSTALL
> @$(call world/install, KERNEL)
> - @chmod -x $(KERNEL_PKGDIR)/lib/modules/*/modules.builtin.modinfo
> + @for fileName in
> $(KERNEL_PKGDIR)/lib/modules/*/modules.builtin.modinfo; do \
> + if "$fileName" ; then \
if "$fileName"
looks wrong to me. Either this gives you a "Permission denied" error, or
the file already has the x bit set :-)
The side effect is however that $? is 0 because the if swallows the
error code, so it indeed fixes the build (but probably with an error
message in the log).
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-01-13 14:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-10 16:22 [ptxdist] [PATCH] " Fabian Pfitzner
2025-12-12 14:52 ` [ptxdist] [APPLIED] " Michael Olbrich
2026-01-12 15:30 ` ruggero rossi via ptxdist
2026-01-13 9:05 ` Michael Olbrich
2026-01-13 9:48 ` ruggero rossi via ptxdist
2026-01-13 14:57 ` Uwe Kleine-König [this message]
2026-01-16 8:31 ` ruggero rossi via ptxdist
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=pvoqmoxvw62d7evp2fa5lyxuku6e7fiemgb7cisuvbpg6uei6l@lvjx3p4nesbq \
--to=u.kleine-koenig@baylibre.com \
--cc=f.pfitzner@pengutronix.de \
--cc=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=rugrossi@googlemail.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