Files
Paul Spooren beda530aac kernel: map the directory of external modules out of __FILE__ on 6.12
Kernel modules from the packages feed still differ between builds on
targets with Linux 6.12, e.g. kmod-jool-netfilter on tegra:

  /builder/shared-workdir/build/build_dir/.../jool-4.1.15/src/mod/common/xlator.c

These packages build through make -C $(LINUX_DIR) M=... without the
OpenWrt prefix maps. On 6.12, kbuild compiles external modules from the
absolute M= path and maps only the kernel tree, so __FILE__ keeps the
absolute path of the module sources. Linux 6.13 maps the module
directory itself, which is why 6.18 only needed the kernel tree mapped
(206-kbuild-map-the-kernel-tree-for-external-modules.patch).

Add a pending patch for 6.12 that maps the directory of external
modules. It comes after the map of the kernel tree and before KCFLAGS,
so modules built through KERNEL_MAKE keep their current output.

On a 6.12 tree, __FILE__ of an external module changes from its
absolute path to the path relative to the module directory.

Link: https://github.com/openwrt/openwrt/pull/25875
Signed-off-by: Paul Spooren <mail@aparcar.org>
2026-10-13 21:12:54 +02:00
..