Skip to content

dsixda/android_device_samsung_celoxhd

Repository files navigation

Build Instructions for Celox HD

Follow the usual instructions to download sources for CM9, e.g.

1) mkdir ~/android/system
2) cd ~/android/system
3) curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
4) chmod a+x ~/bin/repo
5) repo init -u git://github.com/CyanogenMod/android.git -b ics

(You'll need to install some binaries, but those are the basic instructions. Google for the full setup details.)

Remain in ~/android/system for the rest of the commands.

Include the file .repo/local_manifest.xml to allow these additional repositories to be synced:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remote fetch="http://github.com/" name="gh" revision="master" />
  <project name="CyanogenMod/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" remote="github" revision="ics" />
  <project name="dsixda/android_device_samsung_celoxhd" path="device/samsung/celoxhd" revision="ics" />
  <project name="dsixda/android_kernel_samsung_msm8660-common" path="kernel/samsung/msm8660-common" revision="ics" />
  <project name="dsixda/android_vendor_samsung_celoxhd" path="vendor/samsung/celoxhd" revision="ics" />
</manifest>

Download or update all repositories:

repo sync -j4   

NOTE: The "4" may be replaced by # of CPU cores on your PC

Get all the prebuilts, like ROM Manager:

vendor/cm/get-prebuilts

You might need to update your cross-compiler path:

1) Open up kernel/samsung/msm8660-common/Makefile
2) Edit the line starting with 'CROSS-COMPILE' to point to: 
     ~/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

Optimize your Linux installation for future rebuilds:

echo "export USE_CCACHE=1" >> ~/.bashrc
prebuilt/linux-x86/ccache/ccache -M 20G
source ~/.bashrc

NOTE: 20GB cache here, but can be changed later

Ready to build!

. build/envsetup.sh
brunch cm_celoxhd-eng

Subsequent builds only require the brunch command above, but if you modified BoardConfig.mk, you'll need to clean out the build output folder before running brunch (in order to pick up its changes). In that case, run this before using brunch:

make clobber

OPTIONAL: If you want to build ClockworkMod:

. build/envsetup.sh
. build/tools/device/makerecoveries.sh cm_celoxhd-eng 

About

CyanogenMod device folder for Celox HD (Samsung Galaxy S2 HD LTE - SGH-I757M)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published