forked from coolya/android_kernel_samsung
-
Notifications
You must be signed in to change notification settings - Fork 8
/
compile.sh
executable file
·44 lines (32 loc) · 1.31 KB
/
compile.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
#!/bin/sh
PARAM=$1
if [ "${PARAM}" == "DEBUG" ]; then
echo '##################### DEBUG VERSION #################'
sed -i 's/# CONFIG_FRAMEBUFFER_CONSOLE is not set/CONFIG_FRAMEBUFFER_CONSOLE=y/' .config
sed -i 's/# CONFIG_CMDLINE_FORCE is not set/CONFIG_CMDLINE_FORCE=y/' .config
DEBUG=1
else
sed -i 's/CONFIG_FRAMEBUFFER_CONSOLE=y/# CONFIG_FRAMEBUFFER_CONSOLE is not set/' .config
sed -i 's/CONFIG_CMDLINE_FORCE=y/# CONFIG_CMDLINE_FORCE is not set/' .config
DEBUG=0
fi
RELVER=`cat .version`
##let RELVER=RELVER+1
#ensure there is no more old bcm4329 module
rm drivers/net/wireless/bcm4329/bcm4329.ko drivers/net/wireless/bcmdhd/bcm4329.ko
if [ "${PARAM}" == "DAILY" ]; then
FOLDER=daily
else
FOLDER=experimental
fi
. ./setenv.sh
echo "building kernel with voodoo color"
sed -i 's/^.*FB_VOODOO.*$//' .config
echo 'CONFIG_FB_VOODOO=y
# CONFIG_FB_VOODOO_DEBUG_LOG is not set' >> .config
make -j8
echo "creating boot.img with voodoo color"
../../android/system/device/samsung/aries-common/mkshbootimg.py release/boot.img arch/arm/boot/zImage ../../android/system/out/target/product/galaxysmtd/ramdisk.img ../../android/system/out/target/product/galaxysmtd/ramdisk-recovery.img
echo "launching packaging script with voodoo color"
./release/doit.sh ${RELVER}v
mv release/CM7_FuguMod* ../../public_html/CM7_galaxysmtd/${FOLDER}/