mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-12 06:57:57 +04:00
configure.in of drv_tapi and drv_vmmc compiles the whole configure command line into the module. drv_tapi_linux.c prints it through a proc file. The command line holds the absolute paths of the build machine, among them --enable-kernelbuild, --with-ifxos-incl, --enable-tapiincl, CPPFLAGS and LDFLAGS, so the module depends on the directory it was built in. Measured in the published snapshot modules of lantiq/xway: drv_tapi.ko and drv_vmmc.ko both hold --enable-kernelbuild=/builder/shared-workdir/build/build_dir/... The existing 020-not-leak-cflags.patch covers the Kbuild CFLAGS, not this string. Drop every argument that holds a path and keep the feature flags. The loop repeats the idiom the file already uses for CONFIGURE_OPTIONS. Signed-off-by: John Crispin <john@phrozen.org>