mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
build: ignore srcdir layout on install
Kbuild would install the .ko module files relative to their source directory, i.e. extensions/xt_quota.ko -> /lib/modules/%/extra/xt_quota.ko extensions/ACCOUNT/xt_ACCOUNT.ko -> /lib/modules/%/extra/ACCOUNT/xt_ACCOUNT.ko Add a hack to Makefile.am so that it all goes into extra/ only, without any further subdirectories created. This is strictly a hack as it pokes with Kbuild internals. Putting the ext-mod-dir override into extensions/Kbuild would not do, it is overridden by $linux/scripts/Makefile.modinst, so a higher priority override is needed (make command line by means of Makefile.am invoking make).
This commit is contained in:
@@ -10,7 +10,7 @@ modules:
|
||||
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${MAKE} ${_kcall} modules; fi;
|
||||
|
||||
modules_install:
|
||||
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${MAKE} ${_kcall} INSTALL_MOD_PATH=${DESTDIR} modules_install; fi;
|
||||
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${MAKE} ${_kcall} INSTALL_MOD_PATH=${DESTDIR} ext-mod-dir='$${INSTALL_MOD_DIR}' modules_install; fi;
|
||||
|
||||
clean_modules:
|
||||
${AM_V_silent}if [ -n "${kbuilddir}" ]; then ${MAKE} ${_kcall} clean; fi;
|
||||
|
Reference in New Issue
Block a user