repo sync -c -j $(($(nproc) - 2)) -no-tags -no-clone-bundle repo init -b android-8.1.0_r1 -depth 1 -u
In the standard Android open source distribution the kernel is distributed as a pre-built binary in the mydroid/prebuilt/android-arm/kernel folder and the source code is not included. It has been a some time since last time I tested this but I think it should work. Note that I have used the default paths in the above description, you need to change them to what applies to your setup. The other option is to start the emulator with the kernel option set:Įmulator -kernel mydroid/kernel/common/arch/arm/boot/zImage To run the emulator with your kernel there are two alternatives, either copy it to the prebuilt kernel folder of the open source project to replace the standard kernel.The kernel built this way should end up in the arch/arm/boot folder of your kernel tree (where you put the code from git clone).Make ARCH=arm CROSS_COMPILE=mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi. Now build the kernel using the cross compilation tools distributed with the open source project:.if that doesn't work, try make ARCH=arm goldfish_armv7_defconfig.Generate the emulator configuration (qemu emulator runs arm code, i.e.Git checkout -t origin/android-goldfish-2.6.29 -b goldfish Check out the correct branch for working with the emulator, i.e.Get the Android kernel either by adding it to your repo manifest or manually by running:.The steps that are needed to successfully download, build and run a specific kernel on the emulator are as follows: Since August 2009 the kernel is no longer part of the standard repo manifest that you get when you follow the instructions to download the source code for the android open source project.