mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 08:07:24 +04:00
kmod-v4l2loopback differs between builds, e.g. on apm821xx/nand, as v4l2loopback.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 by calling make -C $(LINUX_DIR) directly, so none of the OpenWrt prefix maps apply, and since Linux 6.13 kbuild includes the kernel headers of external modules by their absolute path. Build through $(KERNEL_MAKE), which passes KERNEL_MAKE_FLAGS and with them the prefix maps of the build and staging directories, like the kernel packages of the main repository do. ARCH and CROSS_COMPILE come with KERNEL_MAKE_FLAGS as well. Signed-off-by: Paul Spooren <mail@aparcar.org>