How to Build Cyanogenmod 10.2 for Samsung Galaxy S Plus

Install repo utility

Create the directory $HOME/bin if it does not exist yet: mkdir $HOME/bin

Fetch the repo utility code: curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > $HOME/bin/repo

Make the repo utility script executable by running: chmod a+rx $HOME/bin/repo

Add the $HOME/bin directory to your PATH (if not already present): export PATH=${PATH}:$HOME/bin

Check out Cyanogenmod 10.2 Source Code

Create a directory to hold the CM 10.2 source code:

mkdir /work/CM10.2
cd /work/CM10.2

Now check out the source code using:

repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
repo sync

Get prebuilt apps

Navigate to the vendor/cm directory and run get-prebuilts:

(cd vendor/cm; ./get-prebuilts)

Get Galaxy S Plus specific code

Run the following command to checkout the Samsung Galaxy S Plus specific directory:

(cd device/samsung; git clone git://github.com/AriesVE-DevCon-TEAM/android_device_samsung_ariesve.git -b cm-10.2 ariesve)

This will check out the code into the directory device/samsung/ariesve

Run the following command to fetch the vendor code (into vendor/samsung/ariesve):

mkdir vendor/samsung
(cd vendor/samsung; git clone git://github.com/ivendor/android_vendor_samsung_ariesve.git -b jellybean ariesve)

Run the following command to fetch the Samsung Galaxy S Plus kernel source code:

(cd kernel/samsung; git clone https://github.com/AriesVE-DevCon-TEAM/samsung-kernel-msm7x30.git -b cm-10.2 msm7x30)

Fixing problems with repository

Execute the following commands to fix problems in the CM10.2 repositories:

cp hardware/qcom/media/mm-core/inc/QCMediaDefs.h frameworks/av/media/libstagefright/
cp hardware/qcom/media/mm-core/inc/QCMetaData.h frameworks/av/media/libstagefright/
cp hardware/qcom/media/mm-core/inc/QOMX_AudioExtensions.h frameworks/av/media/libstagefright/
cp hardware/qcom/media/mm-core/inc/OMX_QCOMExtns.h frameworks/av/media/libstagefright/
cp hardware/qcom/media/mm-core/inc/QCMediaDefs.h frameworks/av/media/libmediaplayerservice

Building

Prepare your shell for building the code by running:

. build/envsetup.sh

Now start the build by running:

brunch ariesve

-- Ivo van Geel - 28 Nov 2013

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | More topic actions
Topic revision: r4 - 15 Jul 2017 - IvoVanGeel
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 2010-2019 by LANIS