I have been asked many times how do i build from source today I will attempt to tell you.
Preparation
First , you must be running at least Ubuntu 12.04 I recommend Ubuntu 12.10 you must use 64 bit.
Follow this guide on initializing a build environment for Ubuntu 12.10 Here
For Ubuntu 12.04 Here
Stop at Building cm-10 if your following guide for Ubuntu 12.04
Please don't continue until you follow the respective guide above
Setting up
Let's first create a directory in which we will build
Initialize the repo command
Putting the ~/bin directory in your path of execution
Downloading Source
Now we need to get the source code heres a few ROMs to try out
You can only choose one
Now we need to obtain device proprietary files they are stored in local_manifest.xml
copy and paste these lines in the file viewer that comes up and hit save
Now lets download the source
# = number of threads cpu has
Unfinished this is a good start for now:laugh:
Preparation
First , you must be running at least Ubuntu 12.04 I recommend Ubuntu 12.10 you must use 64 bit.
Follow this guide on initializing a build environment for Ubuntu 12.10 Here
For Ubuntu 12.04 Here
Stop at Building cm-10 if your following guide for Ubuntu 12.04
Please don't continue until you follow the respective guide above
Setting up
Let's first create a directory in which we will build
Code:
mkdir -p ~/bin
mkdir -p ~/android/system
Initialize the repo command
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Putting the ~/bin directory in your path of execution
Code:
export PATH=${PATH}:~/bin
Downloading Source
Code:
cd ~/android/system/
Now we need to get the source code heres a few ROMs to try out
Code:
repo init -u git://github.com/PAC-man/android.git -b cm-10.1
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo init -u https://github.com/TeamBAKED/platform_manifest.git -b jb-4.2
repo init -u git://github.com/ParanoidAndroid/manifest.git -b jellybean
repo init -u git://github.com/SlimRoms/platform_manifest.git -b jb4.2
You can only choose one
Now we need to obtain device proprietary files they are stored in local_manifest.xml
Code:
gedit ~/android/system/.repo/local_manifest.xml
copy and paste these lines in the file viewer that comes up and hit save
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_kernel_samsung_epicmtd" path="kernel/samsung/epicmtd" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_epicmtd" path="device/samsung/epicmtd" remote="github" revision="cm-10.1" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-10.1" />
</manifest>
Now lets download the source
Code:
Repo sync -j#
Unfinished this is a good start for now:laugh:
Last edited: