-
Notifications
You must be signed in to change notification settings - Fork 10
Compile OMFGB
First you need to initialize your build environment. For the most updated packages required for building OMFGB please visit:
http://source.android.com/source/initializing.html
and follow the sections listed as Installing the JDK and Installing required build packages. Currently only directions for Ubuntu and very close Ubuntu/Deb based distros will work exactly as described below. For other distributions such as Fedora and Arch variants, google will provide you with plenty of instruction on package names to install.
Create the Directories
You will need to set up some directories in your build environment.
To create them:
mkdir -p ~/bin
mkdir -p ~/OMFGB
==================================================
Install the Repository
Enter the following to download make executable the "repo" binary:
curl http://android.git.kernel.org/repo > ~/bin/repo
chmod a+x ~/bin/repo
You may need to reboot for these changes to take effect.
==================================================
Now enter the following to initialize the repository:
cd ~/OMFGB
repo init -u git://github.com/OMFGB/manifest.git
================================================== If you are wanting to sync for the HTC Thunderbolt (mecha) you must instead issue the line below instead of the line above otherwise it WILL compile but you will have NO data:
repo init -u git://github.com/OMFGB/manifest.git -b mecha
==================================================
Then to start the Sync. (This is gonna take awhile 2+ GB's to download.
-----repo sync -j99
==================================================
Configure Build
Now, your environment must be configured to build specifically for your device. To set up your build environment:
. build/envsetup.sh
lunch
A list of supported devices will be shown, Now choose the correct device.
=================================================
A special script was also written to help make the transfer between nightly builds and full builds, and will speed the process up a little bit.
. vendor/omfgb/switch.sh
An options menu will come up, choose from the menu and press enter. Then choose your device from the lunch menu.
==================================================
Compile!
Next, we will build the actual ROM.
make otapackage -j(number of core)
where (number of cores) is replaced by the number of core in integer format
--------------- EX. make otapackage -j4
The finished zip will be under ~/OMFGB/out/target/product//
Happy flashing!
==================================================