Project Cyanogenmod for HTC Desire HD

From JoBaPedia
Jump to navigation Jump to search

Cyanogenmod for HTC Desire HD

Infos

Detailed description with even more followup links http://wiki.cyanogenmod.org/w/Build_for_ace

Info from Q&A here: http://forum.xda-developers.com/showthread.php?t=2533007

Info on other inofficial builds here: http://wiki.cyanogenmod.org/w/Unofficial_Ports#HTC_Desire_HD_.2F_Inspire_4G_.28Ace.29

Info on android initializing an android build environment: http://source.android.com/source/initializing.html

Info on Build tool "repo" (download, sha sum): http://source.android.com/source/initializing.html

Build 1st time

A lot of steps (like installing dev packages and android sdk) may be missing (since already done)

ssh joachim@job1

mkdir -p /dev/shm/cm11/ccache
mkdir /dev/shm/cm11/out

echo "export USE_CCACHE=1" >>~/.bashrc
echo "export CCACHE_DIR=/dev/shm/cm11/ccache" >>~/.bashrc
echo "export OUT_DIR_COMMON_BASE=/dev/shm/cm11/out" >>~/.bashrc

. ~/.bashrc

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

mkdir /data3/cm11
cd /data3/cm11

repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
mkdir -p .repo/local_manifests
wget https://github.com/AceEnablementProject/android/raw/cm-11.0/local_manifest.xml -O .repo/local_manifests/cm_ace.xml
repo sync
cd vendor/cm/
./get-prebuilts
cd ../../
# not sure about this. Needed once for ccache speedup according to http://source.android.com/source/initializing.html
prebuilts/misc/linux-x86/ccache/ccache -M 50G
. build/envsetup.sh
lunch cm_ace-userdebug
make bacon

Build 2nd time

cd /data3/cm11

wget https://github.com/AceEnablementProject/android/raw/cm-11.0/local_manifest.xml -O .repo/local_manifests/cm_ace.xml
repo sync
cd vendor/cm/
./get-prebuilts
cd ../../
. build/envsetup.sh
lunch cm_ace-userdebug
make bacon