QMI-RIL » qmi_build_envsetup.sh
1 |
export REPLICANT_BASE=/YOUR/BASE/DIR |
---|---|
2 |
|
3 |
export PREFIX=${REPLICANT_BASE}/out/target/product/i9305/system |
4 |
export SYSROOT=${REPLICANT_BASE}/prebuilts/ndk/current/platforms/android-21/arch-arm |
5 |
export TOOLCHAIN_PATH=${REPLICANT_BASE}/toolchain/gcc/arm/arm-linux-androideabi/install |
6 |
export TOOLCHAIN_PREFIX=arm-linux-androideabi |
7 |
export CROSS_PREFIX=${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX} |
8 |
|
9 |
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig |
10 |
export BUILD_SYSTEM=x86_64-linux-gnu |
11 |
|
12 |
# build flags
|
13 |
export CFLAGS="--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${PREFIX}/include -fPIE -DANDROID -Wno-multichar" |
14 |
export CXXFLAGS=${CFLAGS} |
15 |
export CPPFLAGS="--sysroot=${SYSROOT} -I${SYSROOT}/usr/include -I${TOOLCHAIN_PATH}/include -DANDROID -DNO_XMALLOC -mandroid" |
16 |
export LDFLAGS="-Wl,-rpath-link=-I${SYSROOT}/usr/lib -L${PREFIX}/lib -L${SYSROOT}/usr/lib -L${TOOLCHAIN_PATH}/lib -pie" |
17 |
export LIBS="-lc" |
18 |
|
19 |
# Non-exhaustive lists of compiler + binutils
|
20 |
export AR=${CROSS_PREFIX}-ar |
21 |
export AS=${CROSS_PREFIX}-as |
22 |
export LD=${CROSS_PREFIX}-ld |
23 |
export NM=${CROSS_PREFIX}-nm |
24 |
export CC=${CROSS_PREFIX}-gcc |
25 |
export CXX=${CROSS_PREFIX}-g++ |
26 |
export CPP=${CROSS_PREFIX}-cpp |
27 |
export CXXCPP=${CROSS_PREFIX}-cpp |
28 |
export STRIP=${CROSS_PREFIX}-strip |
29 |
export RANLIB=${CROSS_PREFIX}-ranlib |
30 |
export STRINGS=${CROSS_PREFIX}-strings |
- « Previous
- 1
- 2
- 3
- Next »