[XDA Assist] joek85:
Thank you sir.Great guide really and very helpful,but this guide is for CM,i am downloading cm-12.1 nut you know it takes long time since my connection is pretty slow.In the meanwhile i am trying to build my existing AOSP wish i've already downloaded.

let's forget about this tablet.

I also downloaded the GT-I9300 files from opensource samsung site "GT-I9300_JB_Opensource.zip" and here is what it includes :

2 folders : Kernel , Platform.

2 files : README_Kernel.txt , README_Platform.txt.

The Platform folder contains :build,external,framework,vendor and build.sh.

Inside README_Kernel there is :

1. How to Build

- get Toolchain

From android git server , codesourcery and etc ..

- arm-eabi-4.4.3

- edit Makefile

edit "CROSS_COMPILE" to right toolchain path(You downloaded).

EX) CROSS_COMPILE= $(android platform directory you download)/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

Ex) CROSS_COMPILE=/usr/local/toolchain/arm-eabi-4.4.3/bin/arm-eabi- // check the location of toolchain

$ make arch=arm m0_00_defconfig

$ make

2. Output files

- Kernel : arch/arm/boot/zImage

- module : drivers/*/*.ko

3. How to Clean

$ make clean

################################################################################

Inside README_Platform :

How to build Mobule for Platform

- It is only for modules are needed to using Android build system.

- Please check its own install information under its folder for other module.

[Step to build]

1. Get android open source.

: version info - Android 4.3

( Download site : http://source.android.com )

2. Copy module that you want to build - to original android open source

If same module exist in android open source, you should replace it. (no overwrite)

# It is possible to build all modules at once.

3. You should add module name to 'PRODUCT_PACKAGES' in 'build\target\product\core.mk' as following case.

case 1) e2fsprog : should add 'e2fsck' to PRODUCT_PACKAGES

case 2) libexifa : should add 'libexifa' to PRODUCT_PACKAGES

case 3) libjpega : should add 'libjpega' to PRODUCT_PACKAGES

case 4) KeyUtils : should add 'libkeyutils' to PRODUCT_PACKAGES

ex.) [build\target\product\core.mk] - add all module name for case 1 ~ 4 at once

PRODUCT_PACKAGES += \

e2fsck \

libexifa \

libjpega \

libkeyutils

4. excute build command

./build.sh user

Inside build.sh :

#!/bin/bash

################################################################################

#

# Build Script

#

# Copyright Samsung Electronics(C), 2010

#

################################################################################

################################################################################

# Useage

# : ./build.sh [mod]

#

# Example

# : ./build.sh eng

################################################################################

if	[ "" = "$1" ]

then

echo --------------------------------------------------------------------------------

echo - Useage

echo - : ./build.sh [mod]

echo -

echo - Example

echo - : ./build.sh eng

echo --------------------------------------------------------------------------------

exit

fi

export CPU_NUMBER=16

export TARGET_BUILD_VARIANT=$1

################################################################################

# Common Path

################################################################################

TOP_DIR=$PWD

# set root path

export PLATFORMPATH="$TOP_DIR"

cd $PLATFORMPATH

make update-api

make -j$CPU_NUMBER PRODUCT-generic-$TARGET_BUILD_VARIANT

So i ignored build.sh and cd my jellybean source and did make -j8 PRODUCT-generic-eng.

it built sucessfully , now i have inside out/target/product/generic/ system.img and ramdisk.img and userdata.img.

But here is the question : Why Samsung does build it this way?why does not do it the normal way like CM does?

As i know that the generic build is for emulator right? so why samsung build a generic build?

Now after i have those imgs and the kernel Zimage , am i ready to go?am i on the right track?

If so ,how to flash the device?

I am sorry for bothering , thank you for your help.