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.
<?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>
repo sync -j4
NOTE: The "4" may be replaced by # of CPU cores on your PC
vendor/cm/get-prebuilts
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-
echo "export USE_CCACHE=1" >> ~/.bashrc
prebuilt/linux-x86/ccache/ccache -M 20G
source ~/.bashrc
NOTE: 20GB cache here, but can be changed later
. 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
. build/envsetup.sh
. build/tools/device/makerecoveries.sh cm_celoxhd-eng