Compiling AOSP
Before your images run successfully, y ou need to import the proprietary drivers. So if you want to compile gingerbread and let’s say you need to run it on a Nexus 1, you need to take an original Nexus 1 with gingerbread and import the drivers. To do this connect the original Nexus One to your build machine and run “ /device/htc/passion/extract-files.sh. If you dont have a device with you, drivers can be downloaded as well. Go to https://developers.google.com/android/nexus/drivers and grab the tar files from there. Untar them in the root folder of your android source and run all of them. This should create a vendor folder with the device you need.