Ubuntu 14.04 Set up and Build Guide

Have Ubuntu 14.04 setup, fully operation, and up to date. Hard Machine or Virtual, makes no difference. Must meet the minimum specs for compiling. Info from Google HERE Understand terminal command line entry as this is all command line processors. You are not here to ask for help with Linux, only the Android build process!

Code: sudo apt-get install openjdk-7-jdk

Code: sudo apt-get install git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386

Code: mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

Code: sudo gedit .bashrc export PATH=~/bin:$PATH <-(add to end of bashrc)

Code: git config --global user.email "[email protected]" git config --global user.name "yourpreferredusername"

Code: mkdir ~/AOSP cd ~/AOSP repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.0_r1 repo sync

Code: source build/envsetup.sh

Code: lunch

Code: make -j8 otapackage

Feel free to ask any questions about the build process. Do not ask questions about Ubuntu!(Adds the required packages at the time of this posting)(Syncs Google Repository with your local machine)(After you do this close Terminal and re-open to institute changes (easy way))(One day you may make commits so think about that when choosing your info!)(Download source... Sit back and grab a pop and a sandwich...)I use AOSP as my directory name. You can use what you want. You could use "aosp" or "Source" or "android" or "whateveryoulike"(Needed for things like GPS and Bluetooth, they are not Open Source like android) (Install proprietary binaries from here in the root of AOSP folder (or whatever you called yours))See Build Notes and ramblings from me in post #3!