Add script to regenerate defconfigs
Usefull later on
This commit is contained in:
parent
3d8ac9044d
commit
693c6d04ee
1 changed files with 33 additions and 0 deletions
33
regenerate.sh
Executable file
33
regenerate.sh
Executable file
|
@ -0,0 +1,33 @@
|
|||
#!/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
|
Loading…
Add table
Reference in a new issue