mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2024-11-15 06:53:44 +08:00
aa9f6d89e7
KDIR is not related to the what we configure in kmod's build. It's only
used in kmod to locate where the distro's kernel source/headers is,
which may be different from what we are configuring the (under
development) kmod with.
Remove the setting from meson/autotools and figure it out inside the
module-playground Makefile what should be used. For advanced use cases,
KDIR= can be passed to override the location.
For our own tests, which includes testing with a different module_directory,
scripts/setup-rootfs.sh will copy the module to the desired location
according to the map defined in the script.
Fixes:
|
||
---|---|---|
.. | ||
.gitignore | ||
dummy.pkcs7 | ||
dummy.sha1 | ||
dummy.sha256 | ||
Kbuild | ||
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.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.