mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 04:38:14 +04:00
Kernel modules from the packages feed differ between builds on 6.18, e.g. kmod-v4l2loopback, kmod-jool-netfilter, kmod-pf-ring and kmod-usb-serial-dmx_usb_module: -/builder/shared-workdir/build/build_dir/.../linux-6.18.52/include/linux/ucopysize.h +/tmp/rebuilderd-openwrt.Xebb8P/src/build_dir/.../linux-6.18.52/include/linux/ucopysize.h These packages call make -C $(LINUX_DIR) M=... without KERNEL_MAKE_FLAGS, so they get none of the OpenWrt prefix maps. With 6.12 that did not matter, since srctree stayed "." and the kernel headers were included by a relative path. Since 6.13 srctree holds the absolute path of the kernel tree for external modules, while kbuild only maps srcroot, the module directory. Add a pending patch that maps the kernel tree for external modules too. It is added before the map of srcroot and before KCFLAGS, and GCC uses the last matching map, so modules built through KERNEL_MAKE_FLAGS keep their current output. Link: https://github.com/openwrt/openwrt/pull/25356 Signed-off-by: Paul Spooren <mail@aparcar.org>