2025-01-05 16:27:53 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Config
|
|
|
|
OUTDIR="$(pwd)/out"
|
|
|
|
|
|
|
|
# Kernel-side
|
|
|
|
BUILD_ARGS="KBUILD_BUILD_USER=Ksawlii KBUILD_BUILD_HOST=FireAsFuck"
|
|
|
|
|
|
|
|
export CROSS_COMPILE="$PARENT_DIR/clang-r536225/bin/aarch64-linux-gnu-"
|
|
|
|
export CC="$PARENT_DIR/clang-r536225/bin/clang"
|
|
|
|
|
|
|
|
export PLATFORM_VERSION=12
|
|
|
|
export ANDROID_MAJOR_VERSION=s
|
|
|
|
export PATH="$PARENT_DIR/build-tools/path/linux-x86:$PARENT_DIR/clang-r536225/bin:$PATH"
|
|
|
|
export TARGET_SOC=s5e8825
|
|
|
|
export LLVM=1 LLVM_IAS=1
|
|
|
|
export ARCH=arm64
|
|
|
|
|
|
|
|
if [ ! -d "$PARENT_DIR/clang-r536225" ]; then
|
|
|
|
git clone -j$(nproc --all) https://gitlab.com/crdroidandroid/android_prebuilts_clang_host_linux-x86_clang-r536225.git -b 15.0 "$PARENT_DIR/clang-r536225" --depth=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d "$PARENT_DIR/build-tools" ]; then
|
|
|
|
git clone https://android.googlesource.com/platform/prebuilts/build-tools "$PARENT_DIR/build-tools" --depth=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Non ksu
|
|
|
|
make -j$(nproc --all) -C $(pwd) O=out $BUILD_ARGS a53x_defconfig >/dev/null
|
|
|
|
mv $OUTDIR/.config $(pwd)/arch/arm64/config/a53x_defconfig
|
|
|
|
|
|
|
|
# KSU
|
|
|
|
make -j$(nproc --all) -C $(pwd) O=out $BUILD_ARGS a53x-ksu_defconfig >/dev/null
|
|
|
|
mv $OUTDIR/.config $(pwd)/arch/arm64/config/a53x-ksu_defconfig
|
2025-01-06 22:11:53 +01:00
|
|
|
|
|
|
|
# Commit
|
|
|
|
git add $(pwd)/arch/arm64/config/a53x_defconfig $(pwd)/arch/arm64/config/a53x-ksu_defconfig
|
|
|
|
git commit -m "defconfigs: Regenerate with regenerate.sh" -m "regenerate.sh: Best work frfr"
|