Steps To Compile TCC9301 Android Source

Below steps are base on Linux Mint 12 (Lisa gnome) with jdk-6u32
1.Install some packages as below:
$sudo apt-get install bison g++ flex gperf gcc
Now gcc/g++ version is 4.6.1

2.Extract  TCC9301 Android2.3.3 package;

3.Set Env, follow below sub-steps:

$. build/envsetup.sh
$lunch 23

3.Compile lk.rom:
Turn to bootable/bootloader/lk, type in below words:
$make tcc9300_evm

4.Compile kernel, type in : make tcc9300st_defconfig

5.Compile At Top Tree, type: make in top of Android Source Code  

5-1.If error : passing ‘const android::RefBase::weakref_impl’
Open frameworks/base/libs/utils/Android.mk
Change:
 LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
To:
LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) –fpermissive

5-2.If error: "_FORTIFY_SOURCE" redefined [-Werror]
Open build/core/combo/HOST_linux-x86.mk
Change:
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
To:
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

That's All.
Refer to:
http://www.cnblogs.com/dwayne/archive/2011/11/16/2251734.html


你可能感兴趣的:(Steps To Compile TCC9301 Android Source)