-
Notifications
You must be signed in to change notification settings - Fork 1
/
android-environment
54 lines (46 loc) · 1.24 KB
/
android-environment
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
# Prepare Android Build Environment
#
# 2020-04-27 by Yank555.lu
clear
# Add user bin support
PATH=~/bin:$PATH
export PATH
# Set up cache to build Android ROMs
export USE_CCACHE=1
export CCACHE_DIR=/home/ccache
export CCACHE_EXEC=$(which ccache)
export CCACHE_NLEVELS=4
export CCACHE_COMPILERCHECK=content
export CCACHE_NOHASHDIR=true
export LC_ALL=C
# Set out dir
export OUT_DIR_COMMON_BASE=/home/out
# Define aliases to ease things up
alias cdout='cd /home/out'
alias cdroms='cd /home/source'
alias makeclean='make clean'
alias envsetup='source build/envsetup.sh;croot'
echo "Available Aliases"
echo "-----------------"
echo " "
echo " cdout : go to root of out folder"
echo " cdroms : go to root of rom sources folder"
echo " makeclean : remove previous compilation data"
echo " envsetup : source build environment config in current path"
echo " "
echo "Current config"
echo "--------------"
echo " "
echo " CCACHE DIR : $CCACHE_DIR"
echo " CCACHE EXEC : $CCACHE_EXEC"
echo " OUT DIR : $OUT_DIR_COMMON_BASE"
echo " "
echo "Docker image build timestamp"
echo "----------------------------"
echo " "
echo " `cat $HOME/.docker.image.timestamp`"
echo " "
echo "Available sources"
echo "-----------------"
echo " "
l /home/source