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