mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
d06712b514
The following tests to verify weak dependencies have been implemented: 1) modprobe test to check that related weakdep modules are not loaded due to being a weakdep. 2) depmod test to check weakdep output. 3) user test to check that configuration files with weakdep are parsed correctly and related weakdep modules can be read correctly from user applications. Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com> Link: https://lore.kernel.org/r/20240530070836.9438-1-jtornosm@redhat.com [ Minor whitespace issues and define MODULE_WEAKDEP if it's not defined already ] Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com> |
||
---|---|---|
.. | ||
cache | ||
.gitignore | ||
dummy.pkcs7 | ||
dummy.sha1 | ||
dummy.sha256 | ||
Makefile | ||
Makefile.arch | ||
mod-fake-cciss.c | ||
mod-fake-hpsa.c | ||
mod-fake-scsi-mod.c | ||
mod-foo-a.c | ||
mod-foo-b.c | ||
mod-foo-c.c | ||
mod-foo.c | ||
mod-loop-a.c | ||
mod-loop-b.c | ||
mod-loop-c.c | ||
mod-loop-d.c | ||
mod-loop-e.c | ||
mod-loop-f.c | ||
mod-loop-g.c | ||
mod-loop-h.c | ||
mod-loop-i.c | ||
mod-loop-j.c | ||
mod-loop-k.c | ||
mod-loop.h | ||
mod-simple-i386.ko | ||
mod-simple-sparc64.ko | ||
mod-simple-x86_64.ko | ||
mod-simple.c | ||
mod-weakdep.c | ||
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.