aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-03-05 00:20:16 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-03-05 00:23:37 +0100
commit5c25d3d60c64efb11709b625714ca1dac7c043f4 (patch)
treea00eef186baa5f3adb8e1631decfe1159893bd0d /docs
parent40ee75d90cdaaaec1006cbc91864b11dba09c351 (diff)
downloadexternal_qemu-5c25d3d60c64efb11709b625714ca1dac7c043f4.zip
external_qemu-5c25d3d60c64efb11709b625714ca1dac7c043f4.tar.gz
external_qemu-5c25d3d60c64efb11709b625714ca1dac7c043f4.tar.bz2
Add kernel-rebuilding script for the emulator.
Supports both arm and x86. Change-Id: Ib4665eece4433f0a611b5420ef29785eeb26de1a
Diffstat (limited to 'docs')
-rw-r--r--docs/KERNEL.TXT33
1 files changed, 32 insertions, 1 deletions
diff --git a/docs/KERNEL.TXT b/docs/KERNEL.TXT
index e174fe5..35d1f1f 100644
--- a/docs/KERNEL.TXT
+++ b/docs/KERNEL.TXT
@@ -1,6 +1,37 @@
HOW TO REBUILT THE ANDROID EMULATOR-SPECIFIC KERNEL:
====================================================
+I. Helper script:
+-----------------
+
+We now provide a helper script to rebuild the kernel,
+it is under distrib/rebuild-kernel.sh.
+
+You need the sources in android.git.kernel.org/kernel/common.git,
+in branch origin/archive/android-gldfish-2.6.29 (note the typo!)
+
+To rebuild the ARM kernel:
+
+ cd $KERNEL_SOURCES
+ /path/to/rebuild-kernel.sh --out=$ANDROID/prebuilt/android-arm/kernel
+
+To rebuild the x86 kernel:
+
+ cd $KERNEL_SOURCES
+ /path/to/rebuild-kernel.sh --arch=x86 --out=$ANDROID/prebuilt/android-x86/kernel
+
+Note that you will need to have your cross-toolchain in your path.
+If this is not the case, the script will complain and give you the
+expected name. Use --cross=<prefix> to specify a different toolchain.
+
+See rebuild-kernel.sh --help for more options and details.
+
+
+II. Rebuilding from scratch:
+----------------------------
+
+If you don't or can't use the script, here are manual instructions:
+
You need to have the Android toolchain in your path
(i.e. 'arm-eabi-gcc --version' must work)
@@ -8,7 +39,7 @@ then:
git clone git://android.git.kernel.org/kernel/common.git kernel-common
cd kernel-common
-git checkout origin/android-goldfish-2.6.29
+git checkout origin/archive/android-gldfish-2.6.29
export CROSS_COMPILE=arm-eabi-
export ARCH=arm