[Xperia Arc General] rebelos:
Building Instructions : For CyanogenMod :: AOKP :: Carbon roms :: Beanstalk

Unofficial

thanks mikeioannia for initial CM guide :)

To get started with Android/CyanogenMod, you'll need to get familiar with Git and Repo.

To initialize your local repository using the CyanogenMod trees, use a command like this:

first create folder named " cm "

mkdir cm

enter into cm

cd ~/cm

For CM - 11.0 kitkat 4.4.x

[COLOR="black"]repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0[/COLOR]

Then to sync up:

[COLOR="black"]repo sync[/COLOR]

Please see the CyanogenMod Wiki for building instructions.

For more information on this Github Organization and how it is structured, please read the wiki article.

Create and edit semc.xml in .repo:

[COLOR="black"]gedit .repo/local_manifests/semc.xml[/COLOR]

Add this to the semc.xml:

For CM 11.0 KitKat 4.4.x

copy paste semc.xml for kikat 4.4 from here : https://raw.github.com/LegacyXperia/local_manifests/cm-11.0/semc.xml

then

[COLOR="Black"]repo sync[/COLOR]

For 4.4 apply patches from 4.4

1.

cd ~/cm/frameworks/av

-> copy paste patch #1 press enter

2.

cd ~/cm/frameworks/native

-> copy paste patch #2 press enter

-> copy paste patch #3 press enter

-> copy paste patch #4 press enter

3.

cd ~/cm/system/netd

-> copy paste patch #5 press enter

[COLOR="black"]. build/envsetup.sh (notice the period and space)
vendor/cm/get-prebuilts
[/COLOR]

then

brunch <device>

Special thanks to scott.hart.bti for his hard work -

From terminal

1. type

[COLOR="black"]cd[/COLOR]

.

This will bring you to your root folder.

2. type

[COLOR="black"]mkdir beanstalk[/COLOR]

.

This will create a folder named beanstalk.

3. type

[COLOR="black"]cd beanstalk[/COLOR]

.

This will take you to the beanstalk directory created from previous step

4. type

[COLOR="black"]repo init -u git://github.com/scotthartbti/android.git -b kk44[/COLOR]

.

This will setup the folders to be synced.

5. For Beanstalk KitKat 4.4.x

copy paste semc.xml for kikat 4.4 from here : https://raw.github.com/LegacyXperia/local_manifests/cm-11.0/semc.xml

then

[COLOR="Black"]repo sync[/COLOR]

apply patches for 4.4

1.

cd ~/beanstalk/frameworks/av

-> copy paste patch #1 press enter

2.

cd ~/beanstalk/frameworks/native

-> copy paste patch #2 press enter

-> copy paste patch #3 press enter

-> copy paste patch #4 press enter

2.

cd ~/beanstalk/system/netd

-> copy paste patch #5 press enter

9. Outside of terminal, navigate to beanstalk/vendor/cm. Double click on the get-prebuilts file and select run in terminal. This will fetch necessary files needed to build and place them where they need to be.

10. Type

[COLOR="Black"]. build/envsetup.sh && brunch <device>[/COLOR]

11. Previous step will start building beanstalk for your device. The process takes anywhere from 1 - 3 hours depending on your computer.

12. Once completed, it will say package complete and you will have a beanstalk named zip file in your out folder.

Unofficial

Special thanks to spleef and ktempleman for laying this out

This set of instructions is unverified. If you build successfully or have build issues, please post here so we can confirm or fix what isn't working

First:

[COLOR="Black"]mkdir aokp[/COLOR]

then

[COLOR="black"]cd aokp[/COLOR]

then

[COLOR="black"]repo init -u https://github.com/AOKP/platform_manifest.git -b kitkat[/COLOR]

after it does its thing

[COLOR="black"]mkdir .repo/local_manifests
touch .repo/local_manifests/semc.xml
gedit .repo/local_manifests/semc.xml[/COLOR]

copy paste semc.xml for kikat 4.4 from here : https://raw.github.com/LegacyXperia/local_manifests/cm-11.0/semc.xml

save and exit then

[COLOR="black"]repo sync[/COLOR]

after everything syncs

apply patches for 4.4

1.

cd ~/aokp/frameworks/av

-> copy paste patch #1 press enter

2.

cd ~/aokp/frameworks/native

-> copy paste patch #2 press enter

-> copy paste patch #3 press enter

-> copy paste patch #4 press enter

2.

cd ~/aokp/system/netd

-> copy paste patch #5 press enter

[COLOR="black"]gedit vendor/aokp/vendorsetup.sh[/COLOR]

and add this to the bottom:

[COLOR="black"]add_lunch_combo aokp_device-userdebug[/COLOR]

save and exit.. then

[COLOR="black"]. build/envsetup.sh[/COLOR]

[COLOR="black"]brunch device[/COLOR]

For more on AOKP building, try here: http://aokp.co/learn/so-you-want-to-build-aokp-jb-ubuntu-1204

And Here: https://github.com/AOKP

Unofficial

Getting Started

To get started with the Carbon-Dev sources, you'll need to get familiar with Git and Repo.

Create the Directories

You will need to set up some directories in your build environment.

To create them run:

[COLOR="black"]mkdir -p ~/carbon[/COLOR]

Install the Repository

You may need to reboot for these changes to take effect. Now enter the following to initialize the repository:

[COLOR="black"]cd ~/carbon[/COLOR]

Repositories:

Before you continue --> run this in the terminal

[COLOR="black"]repo init -u https://github.com/CarbonDev/android.git -b kk[/COLOR]

after it does its thing

[COLOR="black"]mkdir .repo/local_manifests
touch .repo/local_manifests/semc.xml
gedit .repo/local_manifests/semc.xml[/COLOR]

copy paste semc.xml for kikat 4.4 from here : https://raw.github.com/LegacyXperia/local_manifests/cm-11.0/semc.xml

save and exit then

[COLOR="black"]repo sync[/COLOR]

after everything syncs

apply patches for 4.4

1.

cd ~/carbon/frameworks/av

-> copy paste patch #1 press enter

2.

cd ~/carbon/frameworks/native

-> copy paste patch #2 press enter

-> copy paste patch #3 press enter

-> copy paste patch #4 press enter

3.

cd ~/carbon/system/netd

-> copy paste patch #5 press enter

[COLOR="black"]gedit vendor/carbon/vendorsetup.sh[/COLOR]

and add this to the bottom:

[COLOR="black"]add_lunch_combo carbon_device-userdebug[/COLOR]

save and exit.. then

[COLOR="black"]. build/envsetup.sh[/COLOR]

[COLOR="black"]brunch device[/COLOR]

To get started with AORP, you'll need to get familiar with Git and Repo.

To initialize your local repository using the AORP trees, use a command like this:

first create folder named " AORP "

mkdir AORP

enter into AORP

cd ~/AORP

For kitkat 4.4.x

[COLOR="black"]repo init -u git://github.com/AORP/android.git -b kk[/COLOR]

Then to sync up:

[COLOR="black"]repo sync[/COLOR]

Please see the CyanogenMod Wiki for building instructions.

For more information on this Github Organization and how it is structured, please read the wiki article.

Create and edit semc.xml in .repo:

[COLOR="black"]gedit .repo/local_manifests/semc.xml[/COLOR]

Add this to the semc.xml:

For CM 11.0 KitKat 4.4.x

copy paste semc.xml for kikat 4.4 from here : https://raw.github.com/LegacyXperia/local_manifests/cm-11.0/semc.xml

then

[COLOR="Black"]repo sync[/COLOR]

For 4.4 apply patches from 4.4

1.

cd ~/AORP/frameworks/av

-> copy paste patch #1 press enter

2.

cd ~/AORP/frameworks/native

-> copy paste patch #2 press enter

-> copy paste patch #3 press enter

-> copy paste patch #4 press enter

3.

cd ~/AORP/system/netd

-> copy paste patch #5 press enter

[COLOR="black"]. build/envsetup.sh (notice the period and space)
vendor/cm/get-prebuilts
[/COLOR]

then

brunch <device>

Next Tutorial is Strictly Not for beginners

Building with Linaro 4.8 toolchain

Checkout these toolchains customised for arm v7 and scorpion Cpu here http://xdaforums.com/showthread.php?t=2098133

thanks [MENTION=4825437]Christopher83[/MENTION]

Go into Terminal and navigate to the root folder of your source tree, then:

[COLOR="Black"]prebuilts/gcc/linux-x86/arm/[/COLOR]

Run:

[COLOR="black"]wget http://releases.linaro.org/13.06/components/toolchain/gcc-linaro/4.8/gcc-linaro-4.8-2013.06.tar.bz2[/COLOR]

Run:

[COLOR="black"]bunzip2 *.tar.bz2[/COLOR]

Run:

[COLOR="black"]tar -xvf *.tar[/COLOR]

Using your file manager, navigate to the root folder of your source tree again.

Navigate To "/build", in your root folder.

Run:

[COLOR="black"]gksudo gedit envsetup.sh[/COLOR]

change the line in bold, to look exactly like this one:

[COLOR="black"]case $ARCH in
x86) toolchaindir=x86/i686-linux-android-4.6/bin
;;
[B]arm) toolchaindir=arm/gcc-linaro-4.8-2013.06[/B] [COLOR="Red"]<--------[/COLOR]
;;
mips) toolchaindir=mips/mipsel-linux-android-4.6/bin
;;
*)
echo "Can't find toolchain for unknown architecture: $ARCH"
toolchaindir=xxxxxxxxx
;;
esac
[/COLOR]

Exit out and open new. Initialize and build. That's it! Makes you wonder why you never did it before, right?

Not so fast. You may have build issues, you may not. I had a few lengthy sets of errors in gsm calltracker and another .java file that was solved by using Meld and making it look exactly like a successful build's file. More as I learn.......

Thanks to infected_ for this tut; his post can be found here: [/COLOR]

http://xdaforums.com/showpost.php?p=42976693&postcount=12

This is a work in progress. Many more pieces of information will be added and this is meant to be an ever-changing thread. If you see something that is outdated or incorrect, please let me know ASAP, so I can make the correction. Also, make sure that any info offered can be and has been confirmed as functional.

Thanks to:

CyanogenMod

scott.hart.bti

Team Carbon

david279

MallardDuck

ktempleton

AdhvanIt

matthew0776

spleef

M4570D0N

car vs driver

mikeioannina

BMP777