Compiling AOSP Master (7 N) for Raspberry Pi 3

912 views
Skip to first unread message

AnAngryDroid

unread,
May 9, 2017, 8:37:27 PM5/9/17
to Android-rpi
Sorry if this is a stupid question (I'm rather new to the AOSP Development...thing...) but recently I've been messing around with the AOSP Master branch. However, as of yesterday when I tried to compile for the Raspberry Pi 3 using this, lunch hasn't been working when I try to select it (if this isn't the correct lunch combo or anything of the sort then feel free to tell me...). I've been getting this error when trying to use 'lunch rpi3-eng':

> build/core/envsetup.mk:224: *** No config file found for TARGET_DEVICE rpi3.  Stop.

I've looked in the envsetup.mk on and round line 224, but I don't really see anything of importance around it...Then again, I could be completely wrong.

(Oh, and trust me, I've invested a few hours worth of Googling what's wrong...Nobody else seems to have the exact same error.....)


With that, I have no way to smoothly transition out so...yeah.

Ryan Kasper

unread,
May 29, 2017, 3:23:14 PM5/29/17
to Android-rpi
What do you have in device/brcm/rpi3 (from root of your Android source dir)

device contais the files/folder to build for a myriad of devices - and if rpi3 has not been correctly extracted there it won't get picked up by envsetup - when you make any changes be sure to re-run:
source build/envsetup.sh
To repopulate the list of supported build targets. You can run lunch with no arguments to the the full list - and select a number

AnAngryDroid

unread,
May 29, 2017, 7:45:09 PM5/29/17
to Android-rpi

I see what I did now -- I didn't have the files in the correct location.

Instead of having them in device/brcm/rpi3, I instead had them in the stock device/device_brcm_rpi3
Looking at it now, it was quite obvious, seeing as it was right in the URL >.<

Thanks for pointing it out for me!
Reply all
Reply to author
Forward
0 new messages