-
Notifications
You must be signed in to change notification settings - Fork 0
/
agcc.default
71 lines (55 loc) · 1.63 KB
/
agcc.default
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
65
66
67
68
69
70
#!/bin/bash
#################################
# need to adapt
# env setup
################################
#Root folder
HOME=$HOME
#JVM location
JAVA_HOME=$HOME/jdk1_5/
#Device system image
SYS_ROOT=$HOME/cmod/out/target/product/dream_sapphire/system
#Android source code
SYS_DEV=$HOME/cmod/
#Code Sourcery Toolchain location
TOOLCHAIN_ROOT=$HOME/cmod/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/
###################################
# Include Locations
# No need to change
###################################
BASE=$SYS_DEV/frameworks/base
# C-Runtime
LIBC=$SYS_DEV/bionic/libc
# Math library
LIBM=${SYS_DEV}/bionic/libm
# Location of some required GCC compiler libraries
TC=${SYS_DEV}/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/lib/gcc/arm-eabi/4.4.0/
# ? Kernel headers
KERNEL=${SYS_DEV}/kernel-msm/
# GNU GZIP
LIBZ=${SYS_DEV}/external/zlib
# XML Expat parser
EXPAT=${SYS_DEV}/external/expat/lib
# Includes
AND_INC=" -I$JAVA_HOME/include"
AND_INC+=" -I${JAVA_HOME}/include/linux"
AND_INC+=" -I${LIBC}/include "
AND_INC+=" -I${LIBC}/arch-arm/include"
AND_INC+=" -I${LIBC}/kernel/arch-arm/include "
AND_INC+=" -I${LIBM}/include"
AND_INC+=" -I${BASE}/include"
AND_INC+=" -I${TC}/include"
AND_INC+=" -I${KERNEL}/include"
AND_INC+=" -I${KERNEL}/arch/arm/include -I${KERNEL}/arch/arm/mach-ebsa110/include"
AND_INC+=" -I${SYS_DEV}/system/core/include"
AND_INC+=" -I${LIBZ}"
AND_INC+=" -I${EXPAT}"
#############################################
# Toolchain compiler command
#############################################
CROSS=arm-eabi-
GCC=${CROSS}gcc
# Uncomment for debugging
echo ${GCC} -nostdinc $AND_INC $@
# Go!
${GCC} -nostdinc ${AND_INC} "$@"