Build your own CyanogenMod ROM!

Build your own CyanogenMod ROM

CM compiler

If you’re a Cyanogenmod fan and want to learn how to go about building your own ROM, then you may want to take a look at the Cyanogenmod compiler.  From what it looks like this may be the easiest way to compile and build your own CM rom to date…. I know what I’ll be doing all weekend (sorry Megan and the kids).  Once you set up your computer (the instructions even cover that part), you can download a set of scripts that do all the hard work for you.  When it’s all said and done, you’ll have a nice little package you can flash via recovery, and have your own home-brewed CyanogenMod.

This may be the longest and hardest way to go about getting the latest CM build on your phone but may be the most fun.  This is the closest thing to a “one click” ROM builder that I’ve ever seen (and I’m ALL about one click anything)…..  I could also see a few people getting their phones in trouble due to this nifty new tool.  With that all being said here are the step by step directions by lithid over at XDA.  NICE JOB lithid!

Unread  Yesterday, 06:45 PM
  • Tweet this post
  • # 1
Default[CMC] Cyanogenmod Compiler [Alpha] [Dec 28 2011]

Cyanogenmod Compiler (CMC)
Build cyanogenmod with a cli interface.

Note to users: This is simple enough. Using bash, I created a cli interface to control and manage your repo, add/remove a few things, and compile cm. I am only able to test this with my phone. So I am putting this out here for others to test with as well. It is not fully optimized, code is being actively worked on daily. There most certainly will be bugs, but I have been trying to find as many as I can by myself. Looking for some help from the community for feedback and support.

If you are wondering how you can use this software its easy. You can clone my repo for now. and run the CMCompiler script:

Code:
git clone https://github.com/lithid/CMC.git
cd CMC
./CMCompiler

Features:
– Check for repo installation on startup / or create a repo
– Add and remove devices quickly and easily.
– Remove all non english languages.
– Remove live wallpapers
– Remove cm wallpapers
– Check if adb is running or not.
– Update the repo
– Compile cyanogenmod
– Built in color themes. > http://goo.gl/cED8t
– Plugin support. (More information on this to come)
– local config file for saving settings or manually editing them.
– Odex plugin built into the package. This will take your connected cyanogemod installed phone and odex the rom on the phone.

Known Issues:
– There is nothing under the menu option 99. This is a placeholder for information about me and the compiler. If you select it it will just exit you out of the script.
– There is no checking for installed software. You will need to install the needed packages on your own to compile. Check post 2 for needed software.
– I have only tested this with ubuntu 11.04.
– Removing the CM wallpapers from the build only works with gingerbread for now. Everything else is working as expected for me.
– I don’t check for open ports on your network, so there might be issues connecting to the repos and syncing. I have not built error checking for that.

Features to come:
– Check for installed tools and tell you which are still needed
– Installer/Remover
– Updated information about CMC and plugin support.
– Pure AOSP via plugin
– Adb installer
– Better error checking support.
– Check for errors during compile and point to places to fix.
– Edit the name of your kanged rom!
– I will also take requests!

Please any issue that should arise, I apologize in advanced. Please let me know with as much detail as possible to replicate the issue and I will resolve it.

You can follow me on google+ I tend to talk about it a bit on there as well.

__________________

Software for compiling on ubuntu:
32 bit:
Code:
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool

64 bit:

Code:
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib

If you are on ubuntu 11.04 or higher please keep this in mind:

Originally Posted by Novek  View Post lib32readline5-dev has been replaced by lib32readline-gplv2-dev on 11.10
And “gcc-4.3-multilib g++-4.3-multilib” aren’t used from 11.04 and up – not needed.

 

Loading Disqus Comments ...
Loading Facebook Comments ...