mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 10:07:40 +04:00
kmod-usb-serial-dmx_usb_module differs between builds, e.g. on apm821xx/nand, as dmx_usb.ko carries the absolute path of the kernel tree: /builder/shared-workdir/build/build_dir/.../linux-6.18.52/include/linux/ucopysize.h The module is built through its own Makefile, which runs make -C $(KERNELPATH) M=... without any of the OpenWrt prefix maps, and since Linux 6.13 kbuild includes the kernel headers of external modules by their absolute path. That Makefile only wraps kbuild, so call kbuild through $(KERNEL_MAKE) directly, like the kernel packages of the main repository do. This passes KERNEL_MAKE_FLAGS and with them ARCH, CROSS_COMPILE and the prefix maps of the build and staging directories. The options only used by the wrapper (TARGET, TOOLPREFIX, TOOLPATH, LDOPTS) are dropped. Signed-off-by: Paul Spooren <mail@aparcar.org>