Build Image for emulator
You'll need to build the whole source using

source build/envsetup.sh
lunch
make -j4 # change 4 to the number of cores+1


and then make a SD card image, detailed instructions for example here: http://nilvec.com/testing-an-android-image-built-from-source/