View difference between Paste ID: 55718DCg and QX9fqDSL
SHOW: | | - or go back to the newest paste.
1
This Script OUTDATED. Use latest from below link.
2
3-
#server 
3+
https://raw.githubusercontent.com/LegacyServer/Scripts/master/script_build.sh
4-
virtualenv2 venv
4+
5-
source venv/bin/activate
5+
6-
export LC_ALL=C
6+
7-
cd art
7+
8-
git fetch http://review.cyanogenmod.org/CyanogenMod/android_art refs/changes/24/120824/2 && git cherry-pick FETCH_HEAD
8+
# Clone this script in your ROM Repo using following commands.
9-
cd ..
9+
# $ cd rom_repo
10
# $ curl link > script_build.sh
11
12
# Some User's Details. Please fill it by your own details.
13-
export CCACHE_DIR=/home/ccache
13+
# Replace "legacy" with your own SSH Username in lowercase
14-
export KBUILD_BUILD_USER=LegacyBOT
14+
username=legacy
15-
export KBUILD_BUILD_HOST=TheLegacyServer
15+
16
# colors
17
export TERM=xterm
18-
prebuilts/misc/linux-x86/ccache/ccache -M 490G
18+
19
    red=$(tput setaf 1)             #  red
20
    grn=$(tput setaf 2)             #  green
21
    blu=$(tput setaf 4)             #  blue
22
    cya=$(tput setaf 6)             #  cyan
23
    txtrst=$(tput sgr0)             #  Reset
24-
cd /home/deepak/cm
24+
25
26-
lunch cm_$device-userdebug
26+
if [ "$use_ccache" = "yes" ];
27-
make bacon -j8
27+
then
28
echo -e ${blu}"CCACHE is enabled for this build" ${txtrst}
29
export USE_CCACHE=1
30
export CCACHE_DIR=/home/ccache/$username
31
prebuilts/misc/linux-x86/ccache/ccache -M 50G
32
fi
33
34
if [ "$use_ccache" = "clean" ];
35
then
36
export CCACHE_DIR=/home/ccache/$username
37
ccache -C
38
wait
39
echo -e ${grn}"CCACHE Cleared" ${txtrst};
40
fi
41
42
# clean
43
if [ "$make_clean" = "yes" ];
44
then
45
make clean && make clobber
46
wait
47
echo -e ${cya}"OUT dir from your repo deleted" ${txtrst};
48
fi
49
50
51
# build
52
. build/envsetup.sh
53
lunch lineage_$device-userdebug
54
make $target_command -j8