From 912504eba022944d7060b56b6ae3ee2c798ef34d Mon Sep 17 00:00:00 2001 From: y82t2z Date: Tue, 10 Dec 2024 05:01:33 +0700 Subject: [PATCH] Revert "update" This reverts commit 4be15210372c2f061725c50b9bf9c0dc4c0f3547. --- compile.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ download-clang.sh | 4 ++-- 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 compile.sh diff --git a/compile.sh b/compile.sh new file mode 100644 index 0000000..eab9c65 --- /dev/null +++ b/compile.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash + +BASE_DIR="$PWD" +cd kernel +KERNEL_DIR="$PWD" +AK3_DIR=$BASE_DIR/AnyKernel3 + +[[ ! -d "$AK3_DIR" ]] && echo -e "(X) Please Provide AnyKernel3 !" && exit +export PATH="$BASE_DIR/clang/bin:$PATH" && +export PATH="../clang/bin:$PATH" +TC="Zyc Clang" +TARGET=alioth +CODENAME=POCO-F3 +KERNEL_NAME=ALIOTH + +K_IMG=$KERNEL_DIR/out/arch/arm64/boot/Image +K_DTBO=$KERNEL_DIR/out/arch/arm64/boot/dtbo.img +K_DTB=$KERNEL_DIR/out/arch/arm64/boot/dtb + +export ARCH=arm64 +export SUBARCH=arm64 +export KBUILD_BUILD_USER=y82t2z +export KBUILD_BUILD_HOST=Neko-CI +export TZ=Asia/Bangkok + +send_msg(){ + curl -s -X POST \ + https://api.telegram.org/bot"$TOKEN"/sendMessage \ + -d chat_id="$CHATID" \ + -d text="$1" \ + -d "parse_mode=html" \ + -d "disable_web_page_preview=true" +} + +send_file(){ + curl -s -X POST \ + https://api.telegram.org/bot"$TOKEN"/sendDocument \ + -F chat_id="$CHATID" \ + -F document=@"$1" \ + -F caption="$2" \ + -F "parse_mode=html" \ + -F "disable_web_page_preview=true" +} \ No newline at end of file diff --git a/download-clang.sh b/download-clang.sh index fe39ba9..5df4669 100644 --- a/download-clang.sh +++ b/download-clang.sh @@ -1,6 +1,6 @@ mkdir clang cd clang -bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") -S -bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") --patch=glibc +wget -nv -i <(wget -qO- https://raw.githubusercontent.com/ZyCromerZ/Clang/refs/heads/main/Clang-main-link.txt) -O clang.tar.gz +tar -xvf clang.tar.gz echo "Downloaded Clang Successful" cd ../ \ No newline at end of file