diff options
author | David 'Digit' Turner <digit@android.com> | 2010-08-24 09:13:31 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-08-24 09:14:24 -0700 |
commit | 18d7ef741a866a61f3a62a9f2440d9f126a25229 (patch) | |
tree | 1dc48014b5f6f21de4ae04366b77df61a9cd06b7 /docs | |
parent | 7fbf49776a98847a5f95325646f7eb5ff787423f (diff) | |
download | external_qemu-18d7ef741a866a61f3a62a9f2440d9f126a25229.zip external_qemu-18d7ef741a866a61f3a62a9f2440d9f126a25229.tar.gz external_qemu-18d7ef741a866a61f3a62a9f2440d9f126a25229.tar.bz2 |
update Android kernel build documentation.
Change-Id: Ia9aa6ce2cbdfd31bd5a51d1e27adf98fd6e4f4c7
Diffstat (limited to 'docs')
-rw-r--r-- | docs/KERNEL.TXT | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/docs/KERNEL.TXT b/docs/KERNEL.TXT index 7387e55..e174fe5 100644 --- a/docs/KERNEL.TXT +++ b/docs/KERNEL.TXT @@ -8,7 +8,7 @@ then: git clone git://android.git.kernel.org/kernel/common.git kernel-common cd kernel-common -git checkout origin/android-goldfish-2.6.27 +git checkout origin/android-goldfish-2.6.29 export CROSS_COMPILE=arm-eabi- export ARCH=arm @@ -18,8 +18,24 @@ make -j2 # build it => this generates a file named arch/arm/boot/zImage +NOTE: Branch android-goldfish-2.6.27 is obsolete now. Do not use it. + Now, you can use it with: emulator -kernel path/to/your/new/zImage <other-options> + +You can build an ARMv7-compatible kernel image by using goldfish_armv7_defconfg +in the above instructions (instead of goldfish_defconfig). Note that you will +need to enable ARMv7 emulation by using the -cpu cortex-a8 option, as in: + + emulator -kernel path/to/your/new/zImage <other-options> -qemu -cpu cortex-a8 + +As a special convenience, if the name of your kernel image ends in -armv7, then +the emulator binary will automatically enable ARMv7 emulation for you, so doing +the following should be equivalent + + emulator -kernel path/to/your/kernel-armv7 <other-options> + + Voila ! |