Building from source
I thought it would be a good idea that I just give a quick run through on how this is compiled.
First we need a Linux environment, preferably Ubuntu >= 12.04 or a recent Debian
Follow the simple Howto here
, to just get an idea of the pre-requisites
To initialize the common cyanogenmod repos, run the following command
repo init -u git://github.com/CyanogenMod/android.git -b ics
then to get device specific repos for the HD2 you need to pull in a local manifest.
you can use this one
curl https://raw.github.com/milaq/android/ics/local_manifest_htc_leo.xml > .repo/local_manifest.xml
(you can of course tailor your own too)
then you need to sync the repositories
You can also run repo sync -j 4
, say if you had 4 cores to speed things up, you may also need to add a -f
, to make sure that it continues to the end even if you get any error messages. You may need to repeat this process 2 or 3 times to make sure everything is synced. This will take a long time to synchronise, so be patient.
next run the following command to gets some prebuilt apks (doesn't need to be done with every build)
so after this, you need to run the following commands
This has changed from
make -j4 bacon
lunch cyanogen_leo-eng to lunch cm_leo-userdebug, this is the new method from CyanogenMod team for CM9
In the end you will get a zip file in out/target/product/leo/full_leo-ota-eng.root.zip