kmod/testsuite/module-playground
Lucas De Marchi 23603f1f83 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.
2015-05-31 15:38:47 -03:00
..
cache build: cache modules from playground 2015-05-31 15:38:47 -03:00
.gitignore build: cache modules from playground 2015-05-31 15:38:47 -03:00
Makefile build: cache modules from playground 2015-05-31 15:38:47 -03:00
Makefile.arch module-playground: allow to cross-compile modules 2015-02-21 11:40:27 -02:00
README testsuite: leave arch-specific modules in tree 2015-02-21 15:05:25 -02:00
dummy.sha1 testsuite: port signature-check modules to module-playground 2015-02-21 15:51:42 -02:00
dummy.sha256 testsuite: port signature-check modules to module-playground 2015-02-21 15:51:42 -02:00
mod-fake-cciss.c testsuite: port modules-order-compressed to module-playground 2015-02-19 19:50:16 -02:00
mod-fake-hpsa.c testsuite: port modules-order-compressed to module-playground 2015-02-19 19:50:16 -02:00
mod-fake-scsi-mod.c testsuite: port modules-order-compressed to module-playground 2015-02-19 19:50:16 -02:00
mod-foo-a.c testsuite: port test-dependencies to module-playground 2015-02-03 01:12:13 -02:00
mod-foo-b.c testsuite: port test-dependencies to module-playground 2015-02-03 01:12:13 -02:00
mod-foo-c.c testsuite: port test-dependencies to module-playground 2015-02-03 01:12:13 -02:00
mod-foo.c testsuite: port test-dependencies to module-playground 2015-02-03 01:12:13 -02:00
mod-loop-a.c testsuite: port detect-loop test to module-playground 2015-02-09 14:07:31 -02:00
mod-loop-b.c testsuite: port detect-loop test to module-playground 2015-02-09 14:07:31 -02:00
mod-loop-c.c testsuite: port detect-loop test to module-playground 2015-02-09 14:07:31 -02:00
mod-loop-d.c testsuite: port detect-loop test to module-playground 2015-02-09 14:07:31 -02:00
mod-loop-e.c testsuite: port detect-loop test to module-playground 2015-02-09 14:07:31 -02:00
mod-loop.h testsuite: port detect-loop test to module-playground 2015-02-09 14:07:31 -02:00
mod-simple-i386.ko testsuite: leave arch-specific modules in tree 2015-02-21 15:05:25 -02:00
mod-simple-sparc64.ko testsuite: leave arch-specific modules in tree 2015-02-21 15:05:25 -02:00
mod-simple-x86_64.ko testsuite: leave arch-specific modules in tree 2015-02-21 15:05:25 -02:00
mod-simple.c testsuite: beef up module-playground in the build system 2015-02-03 01:09:17 -02:00

README

Pre-compiled modules
====================

Some modules are pre-compiled due to needing cross-compilers present on the
build/dev machine which is inconvenient. Makefile is ready to compile them again
in case they are missing:

1) Prepare the linux kernel trees to build external modules, i.e.:

   kernel $ make ARCH=<arch> CROSS_COMPILER=<cross-compiler-prefix> defconfig
   kernel $ make ARCH=<arch> CROSS_COMPILER=<cross-compiler-prefix> modules_prepare

   For each architecture. See the Makefile to check which are the supported architectures.

2) Export the variables below to point to the right place:

   KDIR_<arch>:                for each architecture it needs to point to a
                               kernel tree configured as in (1)

   CROSS_COMPILER_<arch:       for each architecture it needs to point to the
			       correct toolchain prefix. Leave it blank if a
			       cross-compiler is not needed (example: you are
			       building a 32b module with a multilib compiler).


3) Remove every %-<arch>.ko. After this the build system will recreate them.