Ubuntu 10.10下Android 2.3编译小记

3:以ROOT用户登录,输入$apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

4:再输入: $ apt-get install lib64z1-dev libc6-dev-amd64 g++-multilib lib64stdc++6

5:安装JDK1.6

5.1将jdk-6u24-linux-i586.bin复制到home/james目录下,输入$ ./jkd-6u24-linux-i586.bin解压JDK

5.2终端输入$ gedit gedit /etc/bash.bashrc

5.3在bash.bashrc里面新增

export JAVA_HOME=/home/james/jdk1.6.0_24

export Android_JAVA_HOME=$JAVA_HOME

export PATH=$JAVA_HOME/bin:$PATH

5.4再输入$source /etc/bash.bashrc使环境变量生效

5.5再输入$ java -version查看JAVA版本,此步如果不能完成需要仔细检查,直到能正常查看JAVA版本

6:安装ARM-GCC编译器

6.1将rm-none-linux-guneabi-4.3.2.tar.bz2复制到/home/james目录

6.2输入$ tar –jvxf arm-none-linux-guneabi-4.3.2.tar.bz2

6.3编辑/etc/profile,增加

PATH=/root/ arm-none-linux-gnueabi-4.1.0/bin:$PATH

export PATH

6.4source /etc/profile

7:解压源码

将源码复制到home/james目录下,输入$ tar –jvxf gingerbread_0408.tar.bz2

8:. build/envsetup.sh

9:lunch后选10

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=2.3.1

TARGET_PRODUCT=full_tcc8800_evm

TARGET_BUILD_VARIANT=eng

TARGET_SIMULATOR=false

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=GRH78

============================================

10:配置内核为/home/james/gingerbread_0408/kernel# make tcc88xx_defconfig
11:编译内核 /home/james/gingerbread_0408/kernel# make
12:编译bootloader@ubuntu:/home/james/gingerbread_0408/bootable/bootloader/lk# make tcc8800_evm
13:屏蔽64位编译
build/core/main.mk
……
#mask by james
#ifneq (64,$(findstring 64,$(build_arch)))
#$(warning ************************************************************)
#$(warning You are attempting to build on a 32-bit system.)
#$(warning Only 64-bit build environments are supported beyond froyo/2.2.)
#$(warning ************************************************************)
#$(error stop)
#endif
……
14:编译ANDROID
  root@ubuntu:/home/james/gingerbread_0408# make -j4

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwxddz.html