Instructions for compiling CyanogenMod 9 for the LG Optimus Hub e510 on Arch Linux
We need the base-devel
group installed and:
- The
android-sdk
, the SDK tools such as adb which are insideandroid-sdk-platform-tools
, and the UDev rules, that are inandroid-udev
. Everything is in the AUR. jdk6
. In the AUR, too.- Python 2. The package is
python2
but I'm sure you already have it installed. Then, linkpython2
topython
(this won't work if you havepython3
installed):ln /usr/bin/python2 /usr/bin/python
. If you need to install Python 3 later, remove that link before doing so. schedtool
.gperf
.zip
.
Create a new user to isolate the build environment:
# adduser android
# su - android
Prepare the compilation directories:
$ mkdir bin
$ mkdir -p android/system
Configure git (you don't need to enter your own data):
$ git config --global user.email "[email protected]"
$ git config --global user.name "Your Name"
Download the script that will help us building the ROM:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > bin/repo
$ chmod +x bin/repo
$ echo 'PATH=$PATH:~/bin' >> .bashrc && source .bashrc
And now, start downloading CM9. This will take a while since it's almost 10GB:
$ cd ~/android/system
$ repo init -u git://github.com/CyanogenMod/android.git -b ics
$ repo sync -j4
Once you have downloaded CM9, you have to specify our own e510 ICS repositories.
Create a file called .repo/local_manifest.xml
and copy this inside:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/lge/e510" name="wodim/cm_device_lge_e510" remote="github" revision="ics" />
<project path="vendor/lge" name="wodim/cm_vendor_lge" remote="github" revision="ics" />
<project path="kernel/lge/msm7x27" name="wodim/lge-kernel-msm7x27" remote="github" revision="ics" />
</manifest>
And then continue downloading:
$ repo sync -j4
$ . build/envsetup.sh && breakfast e510
Then download the CM9 prebuilts:
$ vendor/cm/get-prebuilts
And finally start compiling:
$ . build/envsetup.sh && brunch e510