37 lines
No EOL
978 B
Bash
Executable file
37 lines
No EOL
978 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. variables.sh
|
|
|
|
clean_temp
|
|
|
|
cp -vr $CUR_DIR/arch/arm64/configs/exynos9810_defconfig $CUR_DIR/arch/arm64/configs/exynos9810_temp_defconfig
|
|
echo "" >> $CUR_DIR/arch/arm64/configs/exynos9810_temp_defconfig
|
|
cat $CUR_DIR/arch/arm64/configs/exynos9810-starxlte_defconfig >> $CUR_DIR/arch/arm64/configs/exynos9810_temp_defconfig
|
|
echo "" >> $CUR_DIR/arch/arm64/configs/exynos9810_temp_defconfig
|
|
cat $CUR_DIR/arch/arm64/configs/exynos9810-starlte_defconfig >> $CUR_DIR/arch/arm64/configs/exynos9810_temp_defconfig
|
|
|
|
if [ ! -z "$1" ]
|
|
then
|
|
if [ "$1" == "stock" ]; then
|
|
patch_stock
|
|
elif [ "$1" == "aosp" ]; then
|
|
patch_aosp
|
|
fi
|
|
fi
|
|
if [ -z "$2" ]
|
|
then
|
|
patch_kernelsu
|
|
fi
|
|
if [ -z "$3" ]
|
|
then
|
|
dts_erofs
|
|
else
|
|
dts_ext4
|
|
fi
|
|
|
|
make exynos9810_temp_defconfig -j$(nproc --all)
|
|
make -j$(nproc --all)
|
|
|
|
printf $KERNEL_NAME
|
|
cp -vr $CUR_DIR/arch/arm64/boot/Image $ZIP_DIR/$KERNEL_NAME/starlte/zImage
|
|
cp -vr $CUR_DIR/arch/arm64/boot/dtb.img $ZIP_DIR/$DTB_NAME/starlte/dtb.img |