2019-09-22 23:06:10 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-01-12 00:07:19 +03:00
|
|
|
. variables.sh
|
2019-09-22 23:06:10 +02:00
|
|
|
|
2023-01-12 00:07:19 +03:00
|
|
|
clean_temp
|
2022-12-25 20:48:03 +03:00
|
|
|
|
2022-11-28 23:09:30 +03:00
|
|
|
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-star2lte_defconfig >> $CUR_DIR/arch/arm64/configs/exynos9810_temp_defconfig
|
2023-05-03 15:14:33 +03:00
|
|
|
|
|
|
|
if [ ! -z "$1" ]
|
|
|
|
then
|
|
|
|
if [ "$1" == "stock" ]; then
|
|
|
|
patch_stock
|
|
|
|
elif [ "$1" == "aosp" ]; then
|
|
|
|
patch_aosp
|
|
|
|
fi
|
|
|
|
fi
|
2023-05-22 01:34:01 +03:00
|
|
|
if [ -z "$2" ]
|
|
|
|
then
|
|
|
|
patch_kernelsu
|
|
|
|
fi
|
2023-06-05 10:23:43 +03:00
|
|
|
if [ -z "$3" ]
|
|
|
|
then
|
|
|
|
dts_erofs
|
|
|
|
else
|
|
|
|
dts_ext4
|
|
|
|
fi
|
2019-09-22 23:06:10 +02:00
|
|
|
|
2023-08-11 14:36:19 +03:00
|
|
|
make exynos9810_temp_defconfig -j$(nproc --all)
|
2019-09-22 23:06:10 +02:00
|
|
|
make -j$(nproc --all)
|
|
|
|
|
2023-05-03 15:14:33 +03:00
|
|
|
printf $KERNEL_NAME
|
|
|
|
cp -vr $CUR_DIR/arch/arm64/boot/Image $ZIP_DIR/$KERNEL_NAME/star2lte/zImage
|
2023-05-22 01:34:01 +03:00
|
|
|
cp -vr $CUR_DIR/arch/arm64/boot/dtb.img $ZIP_DIR/$DTB_NAME/star2lte/dtb.img
|