Home | History | Annotate | Download | only in module-playground
      1 Pre-compiled modules
      2 ====================
      3 
      4 Some modules are pre-compiled due to needing cross-compilers present on the
      5 build/dev machine which is inconvenient. Makefile is ready to compile them again
      6 in case they are missing:
      7 
      8 1) Prepare the linux kernel trees to build external modules, i.e.:
      9 
     10    kernel $ make ARCH=<arch> CROSS_COMPILER=<cross-compiler-prefix> defconfig
     11    kernel $ make ARCH=<arch> CROSS_COMPILER=<cross-compiler-prefix> modules_prepare
     12 
     13    For each architecture. See the Makefile to check which are the supported architectures.
     14 
     15 2) Export the variables below to point to the right place:
     16 
     17    KDIR_<arch>:                for each architecture it needs to point to a
     18                                kernel tree configured as in (1)
     19 
     20    CROSS_COMPILER_<arch:       for each architecture it needs to point to the
     21 			       correct toolchain prefix. Leave it blank if a
     22 			       cross-compiler is not needed (example: you are
     23 			       building a 32b module with a multilib compiler).
     24 
     25 
     26 3) Remove every %-<arch>.ko. After this the build system will recreate them.
     27