Build for mako

From Omni
Jump to: navigation, search

The following are the directions for building Omni for the Google Nexus 4 (mako)

Set up build environment

First, follow the steps to set up your general Android build environment.


Getting mako-specific files

. build/envsetup.sh
breakfast mako

This will download automatically the files required to build for the Nexus 4.

Mako proprietary blobs

Cyanogenmod Blobs

For mako's specific proprietary blobs/drivers, if you're running CyanogenMod on your Nexus 4, see their wiki on the procedure for extracting those to your sources tree. http://wiki.cyanogenmod.org/w/Build_for_mako#Extract_proprietary_blobs

Stock Blobs

If you're running "vanilla" android, you can get those form official google's website: https://developers.google.com/android/nexus/drivers#makojwr66y unzip each of the files into the same directory and run the extract-*.sh files. When this is finished you will have a vendor directory with all the necessary proprietary files. Copy this to your build directory and update with the following commands.

 cp -R vendor ~/android/omni
 # fix the makefile name - not sure why omni expects the file to be mako-vendor.mk
 cd ~/android/omni/vendor/lge/mako
 cp device-vendor.mk mako-vendor.mk

Building without those binaries won't fail, but the build itself will be broken.

Build Omni

cd ~/android/omni;

First do a repo sync to ensure you have the latest version of Omni's sources. Two options, either

repo sync -j4

sync without any problem (timeout), either you'll need to use only one download thread.

repo sync -j1

Then simply prepare the build

. build/envsetup.sh 

Only to use after initial build has been complete

export USE_CCACHE=1

Then simply launch the build

brunch mako

Installable File

Installable Zip file will be located in:

 out/target/product/mako/omni-4.3.1-<date>-mako-HOMEMADE.zip

Flash this file with TWRP or other recovery.