[Galaxy Ace S5830 General] SpaceCaker:
Hello Experienced Cooper users

today i shall guide you to compile ur own Cyanogenmod rom ;)

ive adapted this guide to work for cooper

and removed some useless parts wich i self didnt used and still compiled succesfull rom ;)

U MUST RUN A LINUX DISTRO

ok we shall begin now:

1. making the correct directory's

cd~
mkdir android
mkdir cyanogenmod7

those are the 2 main directorys i will use Note* remember each command is 1 line ;)

Installing Java6 (JDK)

in terminal type / copy paste from here

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk

Install Required dependencies/add-ons

32 bit Linux Mint 14

sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool

copy and paste it all in terminal

64 bit Linux Mint 14

sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind lib32readline-gplv2-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32z-dev pngcrush schedtool

copy and paste it all in terminal

Synching the Source Code of CM7

cd ~
mkdir bin

paste/type those lines in terminal

now type/paste this in terminal and REBOOT SYSTEM

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

after reboot u can use the Repo Commands

now cd to ur directory we created in the begin

first do

cd~

then do

cd android/cyanogenmod7

once done that initialize repo

paste/type this in terminal

repo init -u git://github.com/CyanogenMod/android.git -b gingerbread

Note: if you wanna have a smaller download and only download specific sources for Cooper ;) try to sync my moddified and reduced repo this still is cm but will not sync all the extra useless files then sync

repo init -u git://github.com/spacecaker/android_cooper.git -b gingerbread

and do

repo sync -j4

now u will need to wait

this will sync the approx 10/15 GB source codes

takes about 1/10 hours to sync depending on connection

now lets sync our device configs ;)

once everything has been synched and still in the

cd android/cyanogenmod7

directory

type

cd device
mkdir samsung
cd samsung

now

type/paste

git clone https://github.com/vo-1/android_device_samsung_cooper cooper

once that is synched

do to go to the the root of Cyanogenmod7 directory

cd ..
cd ..

now we will get the vendor of our cooper device

do type/paste in terminal

cd vendor
mkdir samsung
cd samsung

and sync the cooper vendor

git clone https://github.com/vo-1/android_vendor_samsung_cooper cooper

now do

cd ..

and type

~/android/cyanogenmod7/vendor/cyanogen/get-rommanager

now lets build ;)

this is how i personally build it on my way but takes more time

i will tell u first my way then original way

do type/paste in terminal

. build/envsetup.sh

brunch cooper

then it will compile it and make a zip file for you aswell wich is findable in out folder

Note it takes long time

or do

lunch cm_cooper-eng
make -j4 bacon

what did i skip ?

i personally skipped ADB and SDK because i run Linux in a Virtual machine

Hope you guys will enjoy this guide ;)

Special thanks to

Vo-1

dastin1015 <- for some basic parts of the guide