]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - Makefile.am
libkmod, depmod, modprobe: Make directory for kernel modules configurable
[thirdparty/kmod.git] / Makefile.am
index 2a54c25bd631806d5a931713cd345db944fa2d79..4062d81227dfa68ec20463dc8f642d2fbb00424d 100644 (file)
@@ -20,6 +20,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir) \
        -DSYSCONFDIR=\""$(sysconfdir)"\" \
        -DDISTCONFDIR=\""$(distconfdir)"\" \
+       -DMODULE_DIRECTORY=\""$(module_directory)"\" \
        ${zlib_CFLAGS}
 
 AM_CFLAGS = $(OUR_CFLAGS)
@@ -220,7 +221,7 @@ EXTRA_DIST += testsuite/setup-rootfs.sh
 MODULE_PLAYGROUND = testsuite/module-playground
 ROOTFS = testsuite/rootfs
 ROOTFS_PRISTINE = $(top_srcdir)/testsuite/rootfs-pristine
-CREATE_ROOTFS = $(AM_V_GEN) $(top_srcdir)/testsuite/setup-rootfs.sh $(ROOTFS_PRISTINE) $(ROOTFS) $(MODULE_PLAYGROUND) $(top_builddir)/config.h $(sysconfdir)
+CREATE_ROOTFS = $(AM_V_GEN) MODULE_DIRECTORY=$(module_directory) $(top_srcdir)/testsuite/setup-rootfs.sh $(ROOTFS_PRISTINE) $(ROOTFS) $(MODULE_PLAYGROUND) $(top_builddir)/config.h $(sysconfdir)
 
 build-module-playground:
        $(AM_V_GEN)if test "$(top_srcdir)" != "$(top_builddir)"; then \