• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.

Tutorial: Build OmniRom for Nexus 7

GethPrime

New member
Jan 13, 2011
3,374
2,520
0
How to build Omnirom for Nexus 7 (grouper)

Requirements:
* Decent computer with Ubuntu or Linux Mint
* Fast internet connection
* A brain

1. Open up a terminal and install all the required packages:

If you use 64bit:


sudo apt-get install bison build-essential curl flex git-core gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev

If you use 32bit:

sudo apt-get install bison build-essential curl flex git-core gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev

2. After those packages have been installed you are going to create the directories for the sources and repo tool.

mkdir omnirom
mkdir bin

3. Now your going to download the repo tool and chmod it so that it's executable:

chmod a+x ~/bin/repo

4. Add the /bin/repo tool to your bashrc file:

gedit ~/.bashrc
A editor should show up, now add this line at the end of the file and then save it:

export PATH=${PATH}:~/bin

5. Now it's time to initialize the repo:

cd omnirom
git config --global user.email "youremail"
git config --global user.name "yourname"
repo init -u git://github.com/omnirom/android.git -b android-4.3

6. Sync the sourcecode (will take a while):

repo sync -j32

7. Add the prebuilts for Nexus 7:

cd vendor
git clone git://github.com/TheMuppets/proprietary_vendor_asus.git -b cm-10.2 asus

8. Building the rom:

source build/envsetup.sh
breakfast grouper

9. After it's finished you will find the .zip file with the rom in the “out” folder.
 
Last edited:

patch_Adams

New member
May 21, 2013
1,248
2,070
0
northwoods USA
Hello. I want to build using local_manifests. I have synced already to the source, my device tree, and my vendor files. Where and which makefiles will I need to edit/create? And is there anything else I'll need to do/know? Thanks.
 

mrsvt

New member
May 7, 2013
2
0
0
Sorry for the thread resurrection, are these steps the same for building the omnirom 5.1.1 for nexus 7 grouper? Thanks in advance.
 

SlimShady's

Recognized Contributor
Dec 19, 2013
1,350
1,506
0
cd /world/europe/italy
Hi guys :) I'm building OmniROM 6.0.1 for LG L90 (w7).<br />
I got into an error: http://hastebin.com/dujufeyelu.pas<br />
Now the point is: I've Omnified all my device tree, tried everything but nothing...still got this error.<br />
I'm building on Ubuntu 14.04. I chatted into the IRC of Omni but no one replied me..And I thought here someone would give me an hand..<br />
This is my local_manifest in case you wanna see device/vendor/kernel trees: http://hastebin.com/siyivamudu.xml<br />
Thank you very much in advance. :)