Ice Cream Sandwich 4.0 Build Guidance
2011-12-02 13:56
218 查看
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-->
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.
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.
相关文章推荐
- Android 4.0(Ice Cream Sandwich, 简称ICS,冰激凌三明治)
- Android 4.0 Ice Cream Sandwich源码发布,source code release啦
- Android 4.0 Ice Cream Sandwich MediaFramework
- android 4.0 (Ice Cream Sandwich) 已经开源
- Android 4.0 Ice Cream Sandwich Tablet 平板全方位屏幕截图
- Windows XP SP2下获取Android 4.0的源代码(Ice Cream Sandwich 冰激凌三明治)
- Comparing Ice Cream Sandwich with iOS 5
- CyanogenMod | Android Community Rom based on Ice Cream Sandwich
- (OK) Building Ice Cream Sandwich (Android v4) for VirtualBox on EC2
- Building Ice Cream Sandwich (Android v4) for VirtualBox on EC2
- Ice Cream Sandwich编译指令。
- How to Implement Bluetooth Low Energy (BLE) in Ice Cream Sandwich
- Ice Cream Sandwich 中使用私有 API 修改 WiFi 代理服务器设置
- Ice Cream Sandwich系统将统一Android版本
- Why Ice Cream Sandwich Crashes your App
- 你期待的Ice Cream Sandwich长啥样儿
- hdoj2120 Ice_cream's word I(并查集,判断环的个数)
- hdoj-2122 Ice_cream’s world III
- HDOJ 2122 Ice_cream’s world III(最小生成树--prime 水)
- Codeforces Round #359 (Div. 2) A. Free Ice Cream