summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2015-05-31 15:38:47 -0300
committerLucas De Marchi <lucas.demarchi@intel.com>2015-05-31 15:38:47 -0300
commit23603f1f837caeff45c6960722c2cad690db801d (patch)
tree313f1b145e53cad2555fffb00139477ded99783d /Makefile.am
parent7266ec43371fff8304e730b24729b2c6a95d75c4 (diff)
downloadkmod-23603f1f837caeff45c6960722c2cad690db801d.tar.gz
kmod-23603f1f837caeff45c6960722c2cad690db801d.tar.bz2
kmod-23603f1f837caeff45c6960722c2cad690db801d.zip
build: cache modules from playground
Now that we are able to build our own test modules, also allow to use cached modules so a) kernel headers are not required and b) distro maintainers are happy. It's still need a "--disable-test-modules" in the configure since the default is enabled. There's no license problems anymore since all modules come from our own repository, we ship the sources and the modules can be easily rebuilt.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 9457655..b991936 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -230,7 +230,12 @@ build-module-playground:
cp -r $(top_srcdir)/$(MODULE_PLAYGROUND) $(top_builddir)/$(MODULE_PLAYGROUND) && \
find $(top_builddir)/$(MODULE_PLAYGROUND) -type d -exec chmod +w {} \; ; \
fi
+if BUILD_MODULES
$(MAKE) -C $(MODULE_PLAYGROUND)
+else
+ $(MAKE) -C $(MODULE_PLAYGROUND) FAKE_BUILD=1
+endif
+
rootfs: build-module-playground
$(CREATE_ROOTFS)