forked from DerTeufel/samsung-kernel-aries
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmine.sh
64 lines (49 loc) · 1.33 KB
/
mine.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
rm arch/arm/boot/zImage
rom=""
mem="XL"
handy="i9000"
build="Devil2_0.56b""$rom"_"$handy"
scheduler="CFS"
color="CMC"
light="BLN"
if [ "$mem" = "cm" ]
then
version="$build"_"$scheduler"_"$light"_"$color"
else
version="$build"_"$scheduler"_"$light"_"$color"_"$mem"
fi
# export KBUILD_BUILD_VERSION="$build"_"$scheduler"_"$color"
sed "/Devil/c\ \" ("$version")\"" init/version.c > init/version.neu
mv init/version.c init/version.backup
mv init/version.neu init/version.c
echo "building kernel"
if [ "$handy" = "i9000" ]
then
make aries_galaxysmtd_defconfig
fi
if [ "$handy" = "cappy" ]
then
make aries_captivatemtd_defconfig
fi
if [ "$handy" = "vibrant" ]
then
make aries_vibrantmtd_defconfig
fi
make -j4
echo "creating boot.img"
if [ "$handy" = "i9000" ] || [ "$handy" = "cappy" ] || [ "$handy" = "vibrant" ]
then
release/build-scripts/mkshbootimg.py release/boot.img arch/arm/boot/zImage release/ramdisks/galaxys_ramdisk/ramdisk.img release/ramdisks/galaxys_ramdisk/ramdisk-recovery.img
fi
if [ "$rom" = "sense" ]
then
release/build-scripts/mkshbootimg.py release/boot.img arch/arm/boot/zImage release/ramdisks/sense/ramdisk.img release/ramdisks/sense/ramdisk-recovery.img
fi
echo "..."
echo "boot.img ready"
rm arch/arm/boot/zImage
echo "launching packaging script"
. ./packaging.inc
release "${version}"
echo "all done!"