build android os on osx
TRANSCRIPT
Build Android OS on OS XPietro Alberto Rossi
Android Open Source Project
Before startMac
A lot of RAM!
A lot of disk storage!
Python
GNU Make 3.82
JDK 5/6/7
Git 1.9
Build EnvironmentChoose a Branch
Build EnvironmentSettings Mac
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg
function mountAndroid { hdiutil attach ~/android.dmg -mountpoint /Volumes/android; }~/.bash_profile
POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg
ulimit -S -n 1024
Download Source CodeRepomkdir ~/bin PATH=~/bin:$PATH curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo
mkdir WORKING_DIRECTORY cd WORKING_DIRECTORY
repo init -u https://android.googlesource.com/platform/manifest -b android-2.3_r1repo sync
BuildInit Environment
Choose Target
source build/envsetup.sh
lunch
BuildBuild the code
Emulator
make -j4
emulator
CCache
export USE_CCACHE=1 export CCACHE_DIR=/<path_of_your_choice>/.ccache prebuilts/darwin-x86/ccache/ccache -M 50G
Live Build
Do not build Android on MAC!!