exynos-linux-stable/buildS9+.sh

37 lines
981 B
Bash
Raw Permalink Normal View History

2019-09-22 23:06:10 +02:00
#!/bin/bash
. variables.sh
2019-09-22 23:06:10 +02:00
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-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
if [ -z "$2" ]
then
patch_kernelsu
fi
if [ -z "$3" ]
then
dts_erofs
else
dts_ext4
fi
2019-09-22 23:06:10 +02: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
cp -vr $CUR_DIR/arch/arm64/boot/dtb.img $ZIP_DIR/$DTB_NAME/star2lte/dtb.img