On Tue, 13 Jan 2026 15:57:29 +0100
Uwe Kleine-König <[email protected]> wrote:
> Hello,
>
> if "$fileName"
>
> looks wrong to me. Either this gives you a "Permission denied" error, or
> the file already has the x bit set :-)
you are right. For some reason the [ -f ... ] disappeared.
However the observation of Michael Olbrich
> I don't like patterns like this, because it silently fails if there is a
> typo. And we know, that this is only needed for 6.18 or later. And all
> 6.x versions install this file. So maybe wrap it with:
>
> ifeq ($(KERNEL_VERSION_MAJOR),6)
> ...
> endif
>
made this workaround unnecessary. The patch now should be:
-- /usr/local/lib/ptxdist-2026.01.0/rules/kernel.make 2025-12-12
09:44:06.000000000 +0100
+++ kernel.make 2026-01-13 10:36:36.840222985 +0100
@@ -285,8 +285,10 @@
@$(call targetinfo)
ifdef PTXCONF_KERNEL_MODULES_INSTALL
@$(call world/install, KERNEL)
+ifeq ($(KERNEL_VERSION_MAJOR),6)
@chmod -x $(KERNEL_PKGDIR)/lib/modules/*/modules.builtin.modinfo
endif
+endif
@$(call world/dtb, KERNEL)
@$(call world/dtbo, KERNEL)
@$(call touch)
reducing the changes against the original to a very minimum.
Best regards
Ruggero