Skip to content

Commit 629f7b7

Browse files
kramel-build: add modules building make flags
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
1 parent 47d5f80 commit 629f7b7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

kramel-build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,13 @@ build_kernel() {
291291
msg "|| Started Compilation ||"
292292
make -j"$PROCS" O=out \
293293
"${MAKE[@]}" 2>&1 | tee error.log
294+
make -j"$PROCS" O=out \
295+
"${MAKE[@]}" modules_prepare
296+
make -j"$PROCS" O=out \
297+
"${MAKE[@]}" modules INSTALL_MOD_PATH="$KERNEL_DIR"/out/modules
298+
make -j"$PROCS" O=out \
299+
"${MAKE[@]}" modules_install INSTALL_MOD_PATH="$KERNEL_DIR"/out/modules
300+
find "$KERNEL_DIR"/out/modules -type f -iname '*.ko' -exec cp {} AnyKernel3/modules/system/lib/modules/ \;
294301

295302
BUILD_END=$(date +"%s")
296303
DIFF=$((BUILD_END - BUILD_START))

0 commit comments

Comments
 (0)