Android Source 에서 Windows 용 SDK 빌드하기
Android Source 에서 Windows 용 SDK 빌드하기
(android-4.1.1_r6 기준)
1. 안드로이드 소스 받기
안드로이드 &커널 소스 다운 받기(구글 안드로이드, 각 제조사 오픈소스)
http://olpost.com/v/3531216 참조
$ mkdir jb_4.1
$ cd jb_4.1
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.1_r6
$ repo sync
2. Windows 용 SDK build
Linux 장비에서 MinGw 를 통해서 Windows 용 SDK 를 빌드합니다.
1) Mingw for Linux, Tofrodos 받기
$ sudo apt-get install mingw32 tofrodos
2) Build
$ . build/envsetup.sh
$ lunch sdk-eng
$ make win_sdk
3. Goldfish Kernel Build
1) Goldfish Kernel 다운로드
$ git clone https://android.googlesource.com/kernel/goldfish.git kernel
$ cd kernel
$ git checkout --track -b android-goldfish-2.6.29 remotes/origin/android-goldfish-2.6.29
2) Kernel 빌드
$ make ARCH=arm goldfish_armv7_defconfig
$ make ARCH=arm CROSS_COMPILE=~/android/jb_4.1/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
$ make
$ cp arch/arm/boot/zImage ./kernel-qemu