[Samsung Galaxy Fit GT 5670] speed_bot:
Hello guys i'm here with my first guide of how to build cyanmobile from source for galaxy fit ......

As you all might know cyanmobile went opensource thanks to squadzone now we can compile it from source with our own modifiactions.....

Requirements

1)Linux machine (recommended 64bit and ubuntu) with atleast 50gb free space

2)Common sense of how to use google and fix errors

3)Basic knowledge of git and its commands

4)A possibilty of bricking your fit

5)A fast and stable internet connection

now lets get started

Assuming we have linux installed

installing required build packages

from terminal

sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool

Note:- All the packages are important dont skip any of them

now making the directories to download the source

mkdir -p ~/bin
mkdir -p ~/android/system

here mkdir stands for make directory

~ refers to your home folder (incase if you are a beginner)

Next

making the repo command executable

copy paste this terminal

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo

Reboot your system after executing this

This defines the repo command or the repo command usable on your machine

chmod is giving permissions to the folder a+x is the permissions given don't go deep into this.

Next

Downloading the source

i will be referring execute to copy pasting in the terminal

repo init -u git://github.com/CyanMobile/android_cyanmobile.git -b gingerbread

now

repo sync

alternatives

repo sync -jx

here x can be anything depends on your internet speed ther will x number of simultaneous download if you use the arguement

like if you use

repo sync -j4

There will 4 downloads going on simulatneously

Next after the source has been downloaded you will find someting like this...

syncing working tree 100

now you have the source downloaded

Preparing the build environment

install java jdk6 or jdk 5 using this tutorial

http://codingforme.wordpress.com/2012/05/14/installing-oracle-java-jdk-6-or-7-on-ubuntu-12-04/

Install the android sdk following this tutorial

http://www.howtoforge.com/setting-up-an-android-app-build-environment-with-eclipse-android-sdk-phonegap-ubuntu-11.04

not testsed on jdk 7 so better use 6 or 5

fix its path using "export PATH=$PATH:"ur sdk path""

ur sdk path depends on where you install it

install adb using this guide

http://xdaforums.com/showthread.php?t=921169

Connect your phone with usb debugging enabled and execute this

preferable do this when you are on a cm based rom ..

adb devices

if you see something like this its working for you

List of devices attached
S5670efac482b	device

now go to device > samsung > beni execute extract-files.sh as root use sudo and drag that to terminal and hit enter

now cd into the root of your source folder

cd ~/android/system

then

source buid/envsetup.sh

lunch

you will see all the build properties something like this

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.8
TARGET_PRODUCT=cyanogen_beni
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv6-vfp
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD

now type make -jx otapackage

x depends on your hardware more it is faster the build

you will find the built one in out/samsung/beni /cm--xxx.zip

Flash it and enjoy

credits

wilfredcool007

vishwanthptl

sakindia123

yajnab

ravi h basawa

adit_pat

squadzone

google

xda

without these guys it wouldnt be possible pree thanks for them plz