Hi Timor,
yeah this an old thread :). Here is the current valid procedure which I use :
# Building the AOSP
mkdir aosp && cd aosp
repo sync
# This is building procedure for mips32
source build/envsetup.sh
lunch aosp_mips-eng && nice make -j<N>
# Building the kernel
NOTE:
Kernel code is managed on several branches for different architectures:
Goldfish emulators : android-goldfish-3.4 : ARM, MIPS32, x86
Ranchu emulators : android-goldfish-3.10 : ARM64, MIPS64, x86_64
# mips32 example :
git checkout remotes/origin/android-goldfish-3.4 -b android-goldfish-3.4
#Use the script from android for building
<AOSP_DIR>/prebuilts/qemu-kernel/build-kernel.sh --arch=mips
---------------------------------------------------
# Get the emulator sources
mkdir emu-master-dev && cd emu-master-dev
repo sync
# Build the emulators
cd external/qemu
./android-rebuild.sh
# Lunch appropriate combo to export necessary variables for the emulator to pick up
cd <AOSP_DIR>
source build/envsetup.sh
lunch aosp_mips-eng
cd <EMU_MASTER_DEV>/external/qemu
# Run the freshly built emulators
# Prerequisite is that you have already built the lunched combo (mips32)
./objs/emulator -show-kernel -gpu on -kernel /tmp/kernel-qemu/mips-3.4/kernel-qemu
Hope this helps.