forked from exynos-linux-stable/starlte
-
Notifications
You must be signed in to change notification settings - Fork 12
/
buildS9.sh
executable file
·37 lines (31 loc) · 978 Bytes
/
buildS9.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/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