1. Prepare the compiling environment
Sudo apt-Get install build-essential ncurses-Dev
2. Get kernel source
Git clone git: // android.git.kernel.org/kernel/common.git
Git checkout origin/Android-goldfish-2.6.29-B goldfish
3. Get prebuilt Source
Git clone git: // android.git.kernel.org/platform/prebuilt.git
4. export environment variable
Export Path = $ path:/home/falson/mydroid_prebuilt/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin
Export arch = arm
5. Set cross-compilation Parameters
Open the MAKEFILE file in the kernel directory and point cross_compile to the arm-Eabi compiler in the prebuilt you just downloaded.
Cross_compile? = Arm-Eabi-
Set
Ldflags_build_id = $ (patsubst-wl $ (comma) %, % ,/
$ (Call LD-option,-wl $ (comma)-Build-ID ,))
Comment out this line and add an empty ldflags_build_id definition, as shown below:
Ldflags_build_id =
6. Obtain the Kernel configuration file from the SDK bound with 1.5 _ R1.
Start the simulator and run the ADB pull command (this command is used to copy files from the device to the local device.
ADB pull/proc/config.gz ~ /
Gunzip config.gz
MV config ~ /Sources/goldfish-kernel/. config
Make
7. To start the simulator, you must first compile the simulator and SDK
Download all projectsCode
Sudo apt-Get install Git-core curl
Curl http://android.git.kernel.org/repo> ~ /Bin/Repo
Chmod A + x ~ /Bin/Repo
Cd ~ /Mydroid
Repo sync
Make
Make SDK
All generated tools are in ~ /Mydroid/out/host/Under linux-x86/bin
The generated system image is in ~ /Mydroid/out/target/product/generic
The generated SDK tool directory is in ~ /Mydroid/out/host/linux-x86/SDK/android-sdk_eng.falson_linux-x86/tools under
Generate AVD: Android create AVD-T 1-N falsonavd Based on the SDK
Use Android list target to view all target lists
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/knock/archive/2010/03/09/5359388.aspx