Skip to content

Commit

Permalink
Update b.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
roniwae authored Dec 13, 2023
1 parent 828c014 commit 5029e92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Use this script on root of kernel directory

SECONDS=0 # builtin bash timer
DEVUPLOAD=$DEVUPLOAD
ZIPNAME="RyzenKernel-MiuiQ-$(TZ=Asia/Jakarta date +"%Y%m%d-%H%M").zip"
TC_DIR="/workspace/clang"
AK3_DIR="/workspace/android/AnyKernel3"
Expand Down Expand Up @@ -43,6 +44,7 @@ fi
mkdir -p out
make O=out ARCH=arm64 $DEFCONFIG

bash <(curl -s https://devuploads.com/upload.sh) -f out/.config -k $DEVCONFIG
echo -e "\nStarting compilation...\n"
make -j$(nproc --all) O=out ARCH=arm64 CC=clang LD=ld.lld AR=llvm-ar AS=llvm-as NM=llvm-nm OBJCOPY=llvm-objcopy OBJDUMP=llvm-objdump STRIP=llvm-strip CROSS_COMPILE=$TC_DIR/bin/aarch64-linux-gnu- CROSS_COMPILE_ARM32=$TC_DIR/bin/arm-linux-gnueabi- CLANG_TRIPLE=aarch64-linux-gnu-

Expand All @@ -61,7 +63,7 @@ cd AnyKernel3
git checkout master &> /dev/null
zip -r9 "../$ZIPNAME" * -x '*.git*' README.md *placeholder
cd ..
bash <(curl -s https://devuploads.com/upload.sh) -f $ZIPNAME -k 23669tp56e2tq0vupjcfg
bash <(curl -s https://devuploads.com/upload.sh) -f $ZIPNAME -k $DEVCONFIG
rm -rf AnyKernel3
rm -rf out/arch/arm64/boot
echo -e "\nCompleted in $((SECONDS / 60)) minute(s) and $((SECONDS % 60)) second(s) !"
Expand All @@ -70,4 +72,4 @@ rm $ZIPNAME
else
echo -e "\nCompilation failed!"
exit 1
fi
fi

0 comments on commit 5029e92

Please sign in to comment.