Ice Cream Sandwich 4.0 Build Guidance

来源:互联网 发布:我的世界双持js 编辑:程序博客网 时间:2024/06/15 23:43

Build Server:CentOS 6.0 X86_64

TargetAndroid Version:  Ice Cream Sandwich 4.0

JDK: 1.6.0_29

OS Image Download site: http://mirrors.163.com/centos/6.0/isos/x86_64/CentOS-6.0-x86_64-bin-DVD1.iso

Android Source Code Download Page: http://source.android.com/

JDK Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html

 

1. Build yourenvironment, install the OS and patch the essential packages.

linuxdba--> yum install make glibc libstdc++ bison flexncurses zlib libc git compat-gcc gcc binutils curl ncurses-devel ncurses-libssquashfs libGL libXrender libX11

Download JDKand install.

2. Downloadthe Repo script and ensure it is executable:

linuxdba--> curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo >/usr/bin/repo

linuxdba--> chmod +x  /usr/bin/repo

3. Createyour build home directory/working directory.

linuxdba--> mkdir /android_ics

linuxdba--> cd /android_ics

4. Init therepo client.

4.1 Downloadthe "master" code.

linuxdba-->  repo init-u https://android.googlesource.com/platform/manifest

4.2 Downloadone branch other than "master", specify it with -b:

linuxdba--> repo init -uhttps://android.googlesource.com/platform/manifest -b android-4.0.1_r1

5. Downloadsource code.

linuxdba--> repo sync

6. Initializethe environment with the build/envsetup.sh.

linuxdba--> source build/envsetup.sh

includingdevice/samsung/maguro/vendorsetup.sh

includingdevice/samsung/tuna/vendorsetup.sh

including device/ti/panda/vendorsetup.sh

including sdk/bash_completion/adb.bash

7. Choose onetarget to build with lunch

linuxdba--> lunch

You're building on Linux

Lunch menu... pick a combo:

    1. full-eng

    2. full_x86-eng

    3. vbox_x86-eng

    4. full_maguro-userdebug

    5. full_tuna-userdebug

    6. full_panda-eng

 

Which would you like? [full-eng] 2

 

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

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.1

TARGET_PRODUCT=full_x86

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=x86

TARGET_ARCH_VARIANT=x86-atom

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=ITL41D

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

8. Start to build by "make", you could enhance the task with a parallel argument"-jN"

linuxdba--> make

or

linuxdba--> make -j2, make -j4..... (for multi CPU/PROCESSOR)

9. ENJOY.

 

Any comments welcome, please contact linuxdba@qq.com, thx.

原创粉丝点击