Project Cyanogenmod for HTC Desire HD: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
 
(12 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


A lot of steps 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


* Install dev packages
Info on android initializing an android build environment: http://source.android.com/source/initializing.html
* Activate ccache and define separate build output
 
  sudo mkdir -p /backup/cyanogenmod/ccache
Info on Build tool "repo" (download, sha sum): http://source.android.com/source/initializing.html
  sudo mkdir -p /backup/cyanogenmod/out
 
  sudo chown -R joachim:users /backup/cyanogenmod
== Build 1st time ==
* edit ~/.bashrc
 
  export USE_CCACHE=1
A lot of steps (like installing dev packages and android sdk) may be missing (since already done)
  export CCACHE_DIR=/backup/cyanogenmod/ccache
 
  export OUT_DIR_COMMON_BASE=/backup/cyanogenmod/out
ssh joachim@job1
* Get repo script
  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
  curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
  chmod a+x ~/bin/repo
  chmod a+x ~/bin/repo
  sha1sum ~/bin/repo
   
 
mkdir /data3/cm11
== Not sure this is needed ==
cd /data3/cm11
  cd /suse-11.0/mspr/cyanogenmod/
  repo init -u https://android.googlesource.com/platform/manifest
  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
  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


== Preparation ==
== Build 2nd time ==
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


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