forked from LineageOS/android_kernel_samsung_apq8084
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathenv_setup.sh
More file actions
executable file
·40 lines (30 loc) · 1.04 KB
/
env_setup.sh
File metadata and controls
executable file
·40 lines (30 loc) · 1.04 KB
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
#!/bin/bash
# check if ccache installed, if not install
if [ ! -e /usr/bin/ccache ]; then
echo "You must install 'ccache' to continue.";
sudo apt-get install ccache
fi
# check if xmllint installed, if not install
if [ ! -e /usr/bin/xmllint ]; then
echo "You must install 'xmllint' to continue.";
sudo apt-get install libxml2-utils
fi
# kernel
export ARCH=arm;
export SUB_ARCH=arm;
# build script
#export USER=`whoami`;
#export TMPFILE=`mktemp -t`;
# system compiler
export CROSS_COMPILE=/home/kevintm78/Toolchains/arm-eabi-4.9/bin/arm-eabi-
# Colorize and add text parameters
export red=$(tput setaf 1) # red
export grn=$(tput setaf 2) # green
export blu=$(tput setaf 4) # blue
export cya=$(tput setaf 6) # cyan
export txtbld=$(tput bold) # Bold
export bldred=${txtbld}$(tput setaf 1) # red
export bldgrn=${txtbld}$(tput setaf 2) # green
export bldblu=${txtbld}$(tput setaf 4) # blue
export bldcya=${txtbld}$(tput setaf 6) # cyan
export txtrst=$(tput sgr0) # Reset