To get started with the building process, you'll need to get familiar with Git and Repo.
To initialize your local repository, use a command like this:
Make directory for the repo binary
$ mkdir ~/bin
Add directory for the repo binary to its path
$ PATH=~/bin:$PATH
Downloading repo binary and placing it in the proper directory
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
Giving the repo binary the proper permissions
$ chmod a+x ~/bin/repo
Creating directory for where the aimrom repo will be stored and synced
$ mkdir aim
$ cd aim
Now init repo
repo init -u git://github.com/AIMROM/manifest.git -b 10.0
Then to sync up:
repo sync -f --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
Additionally, you can define the number of parallel download repo should do:
repo sync -jX -f --force-sync --no-clone-bundle --no-tags
While X being the number of parallel downloads
From root directory of AIM type following commands in terminal
. build/envsetup.sh
lunch aim_$devicecodename-$BuildType
brunch $devicecodename
If your device code name is "goldfish", then:
. build/envsetup.sh
lunch aim_goldfish-userdebug
brunch goldfish
From the root directory of AIM type following commands in the terminal
cd $OUT/target/product/$devicecodename/$AIM*.zip