0. Build sdk in Linux
$ cd mydroid
$ make PRODUCT-sdk-sdk


1. Install jdk in Windows to E:\Java\jdk1.6.0_21


2. Install cygwin:
- Download the latest version of cygwin from http://www.cygwin.com/
- Install cygwin
- Required packages:
autoconf, bison, curl, flex, gcc, gcc-g++, git, gnupg, make, gettext, gettext-devel, ncurses, libncurses-devel
mingw-zlib, python, zip, unzip
- Suggested extra packages:
diffutils, emacs, openssh, rsync, vim, wget.
- Packages that must not be installed: readline.

3. export PATH=$PATH:/cygdrive/e/Java/jdk1.6.0_21/bin/

4. download android source in cygwin
$ mkdir ~/mydroid
$ cd ~/mydriod
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b android2.2-r1.1
$ repo sync

5. Install textinfo
$ wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.9.tar.bz2
$ tar jvfx textinfo-4.9.tar.bz2
$ cd textsinfo
$ ./configure --prefix=/usr
$ make
$ make install

6. Install android toolchain from
$ wget http://android.git.kernel.org/pub/android-toolchain-20081019.tar.bz2
$ tar jvfx android-toolchain-20081019.tar.bz2
$ cd android-toolchain-20081019
$ ./configure --target=arm-eabi --prefix=XXX
$ make build
$ make install

7. Build windows sdk
$ copy android-sdk_eng.me_linux-x86.zip from Linux to out/host/linux-x86/sdk/
$ export SDK_NUMBER=${USER}-`date +%Y%m%d-%H%M%S`
$ cd mydroid
$ mkdir -p out/host/windows-x86/sdk
$ development/build/tools/make_windows_sdk.sh out/host/linux-x86/sdk/android-sdk_eng.me_linux-x86.zip out/host/windows-x86/sdk

Note:
1). Add acp to fucntion_build() in development/build/tool/make_windows_sdk.sh as below:
make \
acp aapt aidl \
etc1tool \
prebuilt \
dexdump dmtracedump \
hprof-conv \
mksdcard \
sdklauncher sqlite3 \
zipalign \
|| die "Build failed"

2). adb and fastboot have problem, so remove them in make_windows_sdk.sh
3). Remove cp *.dll in make_windows_sdk.sh, modify as below:
#cp -v out/host/windows-x86/bin/*.{exe,dll} "$TOOLS"/
cp -v out/host/windows-x86/bin/*.exe "$TOOLS"/
4). Because we can't build adb, so please copy adb.exe from downloaded windows sdk, and make a zipped file again.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 如何在Android和iOS设备上录制游戏?
  2. 详解 Android(安卓)的 Activity 组件
  3. 浅析Android线程模型一
  4. android全平台编译libyuv库实现YUV和RGB
  5. Android上的LocalSearch
  6. Android中的内存管理
  7. Android(安卓)资源(resource)学习小结
  8. Android(安卓)Instrumentation Testing
  9. Android在中国的发展分析
  10. Android音频开发(1):基础知识