Skip to content

Commit

Permalink
small changes in build script
Browse files Browse the repository at this point in the history
made modules to be exported in a folder that can be used with nethunter kernel builder.
  • Loading branch information
Thiviyan committed Sep 4, 2020
1 parent 68339dd commit 1e20d62
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ echo "building kernel..."
make O="$BUILD" -j64

echo "building modules..."
make O="$BUILD" INSTALL_MOD_PATH="." INSTALL_MOD_STRIP=1 modules_install
rm $BUILD/lib/modules/*/build
rm $BUILD/lib/modules/*/source
make O="$BUILD" -j8 INSTALL_MOD_PATH=MODULES_OUT modules_install


mkdir -p $OUT/modules
mv "$BUILD/arch/arm64/boot/Image.gz-dtb" "$OUT/Image.gz-dtb"
find "$BUILD/lib/modules/" -name *.ko | xargs -n 1 -I '{}' mv {} "$OUT/modules"
mv "$BUILD/MODULES_OUT" "$OUT/modules"

echo "Image.gz-dtb & modules can be found in $BUILD"

0 comments on commit 1e20d62

Please sign in to comment.