Compiling from source Linux

fredvj edited this page Nov 12, 2012 · 10 revisions

First, please follow the steps that can be found in the CyanogenMod Wiki to Prepare the build environment.

Next you will have to clone the device definition for the Huawei Honor:

mkdir ~/android/system/device/huawei

git clone https://github.com/fredvj/device_huawei_u8860.git ~/android/system/device/huawei/u8860

cd ~/android/system/device/huawei/u8860

git checkout ics-testing

The Honor needs a special RIL class, so you will have to pull the branch from here:

cd ~/android/system/framework/base

git remote add fredvj https://github.com/fredvj/android_frameworks_base.git

git pull fredvj ics-testing

git checkout ics-testing

Download prebuilts CyanogenMod depends on:

~/android/system/vendor/cm/get-prebuilts

Extract vendor blobs that we need for our ROM:

~/android/system/device/huawei/u8860/extract-files.sh

Finally you can run the build:

cd ~/android/system

. build/envsetup.sh

lunch cm_u8860-eng

mka bacon

Once the build has finished (depending on your machine, this can take several hours), you will find the recovery image along with the ROM in:

~/android/system/out/target/product/u8860/