Project Cyanogenmod for HTC Desire HD: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Cyanogenmod for HTC Desire HD =
= Cyanogenmod for HTC Desire HD =


== Original documentation ==
== Infos ==


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


== Preparation ==
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


A lot of steps missing (since already done)
Info on android initializing an android build environment: http://source.android.com/source/initializing.html


* Install dev packages
Info on Build tool "repo" (download, sha sum): http://source.android.com/source/initializing.html
* Activate ccache and define separate build output
sudo mkdir -p /backup/cyanogenmod/ccache
sudo mkdir -p /backup/cyanogenmod/out
sudo chown -R joachim:users /backup/cyanogenmod
* edit ~/.bashrc
export USE_CCACHE=1
export CCACHE_DIR=/backup/cyanogenmod/ccache
export OUT_DIR_COMMON_BASE=/backup/cyanogenmod/out
* Get repo script
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
sha1sum ~/bin/repo
* Init repo
cd /suse-11.0/mspr/cyanogenmod/
mkdir -p cm11
cd cm11
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
cd ..
mkdir -p .repo/local_manifests


=== Prep again ===
== Build 1st time ==


Info from Q&A here: http://forum.xda-developers.com/showthread.php?t=2533007
A lot of steps (like installing dev packages and android sdk) may be missing (since already done)
Info on other inofficial builds here: http://wiki.cyanogenmod.org/w/Unofficial_Ports#HTC_Desire_HD_.2F_Inspire_4G_.28Ace.29


  ssh joachim@job1
  ssh joachim@job1
Line 59: Line 41:
  ./get-prebuilts
  ./get-prebuilts
  cd ../../
  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
  . build/envsetup.sh
  lunch cm_ace-userdebug
  lunch cm_ace-userdebug
  make bacon
  make bacon


== Not sure this is needed ==
== Build 2nd time ==
cd /suse-11.0/mspr/cyanogenmod/
repo init -u https://android.googlesource.com/platform/manifest
repo sync


== Step by step ==
  cd /data3/cm11
  cd /suse-11.0/mspr/cyanogenmod/
  wget https://github.com/AceEnablementProject/android/raw/cm-11.0/local_manifest.xml -O .repo/local_manifests/cm_ace.xml
  wget https://github.com/AceEnablementProject/android/raw/cm-11.0/local_manifest.xml -O .repo/local_manifests/cm_ace.xml
  repo sync
  repo sync

Latest revision as of 10:28, 19 June 2014

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