Compiling CyanogenMod 9
I initally added instructions here for compiling ColdFusionX as I was helping to maintain the project. Now that it looks like we’ll get an official CM9 for ZTE Blade, its been deprecated, so here’s the CM9 build instructions. It takes about 50mins to compile (including kernel) which is only about 10mins more than CM7+kernel would have taken on my 12Gb RAM, 3.2GHz Intel Core i5 Linux box with SSD.
- Download CM9 (use
repo sync
to update) this is about 15Gb worth:
mkdir -p ~/cm9/vendor/zte/blade
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
cd ~/cm9
repo init -u git://github.com/CyanogenMod/android.git -b ics
- Download ZTE proprietary libs (use
git pull
to update) and copy into place. you’ll probably only have to do this once as they don’t get updated often:
cd
git clone https://github.com/koush/proprietary_vendor_zte.git -b ics
rsync -av --delete ~/proprietary_vendor_zte/blade/ ~/cm9/vendor/zte/blade/ --exclude='.git*'
- Compile the rom – the first time you do this it will download the kernel source (you can add
CM_EXTRAVERSION=-whatever
on the end of the export line):
cd ~/cm9/vendor/cm/
./get-prebuilts
cd ~/cm9/
export USE_CCACHE=1 CM_SNAPSHOT=1
. build/envsetup.sh
lunch cm_blade-userdebug
make bacon -j8