Provision AOSP development environment on Ubuntu 12.04 LTS 64-bit with puppet.
-
Make sure you have Virtualbox, Vagrant (1.5.0 or higher) on your machine.
-
Download or clone this repo.
$ git clone https://github.com/chitacan/aosp-env
$ cd aosp-env
- Update machine configurations.
config.vm.network "forwarded_port", guest: 22, host: 2020, auto_correct: true
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", (1024*16).to_s]
vb.customize ["modifyvm", :id, "--cpus", 8 ]
vb.customize ["modifyvm", :id, "--cpuexecutioncap", 80 ]
end
- Modify AOSP version on
Vagrantfile
config.vm.provision "puppet" do |puppet|
puppet.facter = {
"aospversion" => "android-5.0.2_r1"
}
end
- Fire up !!
$ vagrant up
$ vagrant ssh
vagrant$ cd workspace/android-5.0.2_r1
vagrant$ repo sync
vagrant$ . build/envsetup
vagrant$ lunch
vagrant$ make