Giter Site home page Giter Site logo

cm_device_lge_e510's Introduction

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 inside android-sdk-platform-tools, and the UDev rules, that are in android-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, link python2 to python (this won't work if you have python3 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.