android-x86 소스 빌드

0. 참조 사이트 

1. 소스 다운로드
1). Branch 종류
- froyo-x86
- Based on Android 2.2 release (Froyo).
- gingerbread-x86
- Based on Android 2.3 release (Gingerbread).
- honeycomb-x86
- Based on Android 3.2 release (Honeycomb).
- ics-x86
- Based on Android 4.0 release (Ice Cream Sandwich).

2). 다운로드
- repo 명령어 준비
- android source download할 수 있는 repo 미리 준비 되어 있어야 함
$ mkdir android-x86
$ cd android-x86
2-1). 공식 사이트
$ repo init -u http://git.android-x86.org/manifest -b $branch
$ repo sync 
2-2) SourceForge 사이트 
$ repo init -u git://android-x86.git.sf.net/gitroot/android-x86/x86/platform/manifest.git -b $branch
$ repo sync
- 위에서 SourceForge에 있는 소스로 테스트 수행

2. 빌드
-$ make -j4 iso_img TARGET_PRODUCT=eeepc
- ISO 이미지 생성
 - out/target/product/eeepc/eeepc.iso

 
3. 커널만 수정 후 빌드

1). Build & image
$ make iso_img TARGET_PRODUCT=eeepc_x86
- device/asus/eeepc/eeepc_defconfig 사용됨
- Binary output
- out/target/product/eeepc/kernel
- out/ta1rget/product/eeepc/system/lib/modules/
- out/target/product/eeepc/eeepc.iso

- To build the kernel and its modules alone
$ make kernel TARGET_PRODUCT=eeepc

2). Build a customized kernel
$ make iso_img TARGET_PRODUCT=eeepc TARGET_KERNEL_CONFIG=my_defconfig

3). Customize the kernel configuration
$. build/envsetup.sh
$ lunch eeepc-eng
$ make -C kernel O=$OUT/obj/kernel ARCH=x86 menuconfig

4). 커널 컴파일 시 주의 사항
- DO NOT issue make menuconfig in the kernel/ directory directly. If you do so, the build rules may be broken. In this case, try this way to recover it (on the top of android-x86 tree):
$ make -C kernel distclean
$ rm -rf $OUT/obj/kernel

5). Use a prebuilt kernel
- If you have a workable prebuilt kernel binary for your hardware, you can generate the iso with it:
$ make iso_img TARGET_PRODUCT=eeepc TARGET_PREBUILT_KERNEL=<path to the prebuilt kernel>

댓글

이 블로그의 인기 게시물

SSH 연결 Delay 해결

[ELK] search guard를 이용한 보안 설정 (사용자 권한)

공공데이터(openapi) 사용법 (특정 정류소, 버스의 남은 좌석 확인 하기)