[Android Software/Hacking General [Developers Only]] Delanoister:
Building kernel tools :

git

ARM Compiler Toolchain

Kernel Source Code

Python

Valgrin

Java

*git : $ sudo apt-get install git

*java : $ apt-get install java (choose either of java version) and, type this command :

$ sudo apt-get install *java-version

*valgrin : $ sudo apt-get install valgrin

*python : $ sudo apt-get install python

*ARM toolchain :

Do a web search on code.google.com

or

u can use this (For Gioers)

*Kernel source code :

download from github.com

(For Gioers, u can download on here (Hyriand's source code) or here, (Phiexz's source code) here

or my source code

U can download kernel source code by typing this command on terminal :

git clone [URL="https://github.com/iksteen/android_kernel_samsung_galaxygio"][COLOR=#0066cc]https://github.com/iksteen/android_kernel_samsung_galaxygio[/COLOR][/URL]

---------------------------SKIP THIS STEP IF YOU JUST WANNA BUILD KERNEL---------------------

And, u need to repo first.

U can type these commands to do :

mkdir ~/bin
PATH=~/bin:$PATH

curl [URL="https://dl-ssl.google.com/dl/googlesource/git-repo/repo"][COLOR=#0066cc]https://dl-ssl.google.com/dl/googlesource/git-repo/repo[/COLOR][/URL] > ~/bin/repo
chmod a+x ~/bin/repo

mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY

repo init -u [URL="https://android.googlesource.com/platform/manifest"][COLOR=#0066cc]https://android.googlesource.com/platform/manifest[/COLOR][/URL] -b gingerbread

[example for GB, ICS source has been released. Just type command like this below for ICS :

repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

CM GB :

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

CM ICS :

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

*Choose your name & e-mail, and colour.

after u're done,

type this command :

repo sync -j2 ( for bandwidth min 10kbps max 20kbps )
repo sync -j4 ( for bandwidth min 20kbps max 40kbps )
repo sync -j8 ( for badnwitdh min 40kbps max 60kbps )
repo sync -j16 ( for bandwidth min 60kbps max 80kbps )
repo sync -j32 & -j64 ( for fast bandwidth )

or u can this repo mirror command :

mkdir -p ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

mkdir android-repo
cd android-repo
repo init -u https://android.googlesource.com/platform/manifest --mirror

then, type repo sync like I've said before

:)

Wait till done.

---------------------------------------------------------------------------------------------------------------

JUST CONTINUE DIRECTLY TO THIS BELOW STEP​

--------------------------------------------------------------------------------------------------------------------------------------------------------

And, u do next steps (For Gioers):

mkdir android
mkdir sources
mkdir .Galaxy_Gio_Sources

And if ya have downloaded all tools that they're needed,

u can do these steps :

Hold ctrl+H on your home.

Move your kernel source code to folder u created that it named .Galaxy_Gio_Sources

And, copas your ARM toolchain to source code folder.

Before do to the next step, u find the following lines on "Makefile" in source code folder :

[SIZE=3]#ARCH?= $(SUBARCH)[/SIZE]
[SIZE=3]CROSS_COMPILE=[/SIZE]

change them to

#ARCH?= arm
CROSS_COMPILE= ./arm-2009q3/bin/arm-none-linux-gnueabi-

After that,

type these commands :

cd android
cd sources

Then, type command on terminal :

ln -s /home/*name of your desktop/.Galaxy_Gio_Sources/android_kernel_samsung_galaxygio

#Pull kernel config from running phone
adb pull /proc/config.gz ~android/sources/android_kernel_samsung_galaxygio/arch/arm/configs
cd ~android/sources/android_kernel_samsung_galaxygio/arch/arm/configs
gunzip config.gz

and name it to be gio_rev03_defconfig

[/CODE]

or

U can grab config.gz on your HH with root explorer.
location >> proc/*config.gz
copas to sdcard.
Move to /android/sources/android_kernel_samsung_galaxygio/arch/arm/configs

or

copy boot.img or zImage which wanna be extracted its config to root folder kernel sourse tree.
and type this command from kernel source tree:
./scripts/extract-ikconfig boot.img > gio_rev03_defconfig

Command before do compile :

export CCOMPILER=~/arm-2009q3/bin/arm-none-linux-gnueabi-

or

export CCOMPILER=/home/*name of your desktop/android/sourcesarm-2009q3/bin/arm-none-linux-gnueabi-

next,

make ARCH=arm CROSS_COMPILE=$CCOMPILER gio_rev03_defconfig

then,

make ARCH=arm CROSS_COMPILE=$CCOMPILER

or directly w/o use export commands. Like these :

cd android
cd sources
cd android_kernel_samsung_galaxygio
chmod ugo+rwx bin

then,

make menuconfig
make ARCH=arm CROSS_COMPILE=/home/delano/android/sources/android_kernel_samsung_galaxygio/arm-2009q3/bin/arm-none-linux-gnueabi- [SIZE=3][COLOR=#000000][Example}[/COLOR][/SIZE]

or,

make menuconfig
make ARCH=arm CROSS_COMPILE=/home/delano/android/sources/android_kernel_samsung_galaxygio/arm-2009q3/bin/arm-none-linux-gnueabi- -j8 [SIZE=3][COLOR=#000000][Example}[/COLOR][/SIZE]

Here's an example while I was compiling :

[SIZE=3] CC kernel/bounds.s[/SIZE]
[SIZE=3] GEN include/generated/bounds.h[/SIZE]
[SIZE=3] CC arch/arm/kernel/asm-offsets.s[/SIZE]
[SIZE=3] GEN include/generated/asm-offsets.h[/SIZE]
[SIZE=3] CALL scripts/checksyscalls.sh[/SIZE]
[SIZE=3] CC scripts/mod/empty.o[/SIZE]
[SIZE=3] MKELF scripts/mod/elfconfig.h[/SIZE]
[SIZE=3] HOSTCC scripts/mod/file2alias.o[/SIZE]
[SIZE=3] HOSTCC scripts/mod/modpost.o[/SIZE]
[SIZE=3] HOSTCC scripts/mod/sumversion.o[/SIZE]
[SIZE=3] HOSTLD scripts/mod/modpost[/SIZE]
[SIZE=3] CC init/main.o[/SIZE]
[SIZE=3] CHK include/generated/compile.h[/SIZE]
[SIZE=3] CC init/version.o[/SIZE]
[SIZE=3] CC init/do_mounts.o[/SIZE]
[SIZE=3] CC init/do_mounts_rd.o[/SIZE]
[SIZE=3] CC init/do_mounts_initrd.o[/SIZE]
[SIZE=3] LD init/mounts.o[/SIZE]
[SIZE=3] CC init/initramfs.o[/SIZE]
[SIZE=3] CC init/calibrate.o[/SIZE]
[SIZE=3] LD init/built-in.o[/SIZE]
[SIZE=3] AS usr/initramfs_data.o[/SIZE]
[SIZE=3] LD usr/built-in.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/compat.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/elf.o[/SIZE]
[SIZE=3] AS arch/arm/kernel/entry-armv.o[/SIZE]
[SIZE=3] AS arch/arm/kernel/entry-common.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/irq.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/process.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/ptrace.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/return_address.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/setup.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/signal.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/sys_arm.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/stacktrace.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/time.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/traps.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/armksyms.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/module.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/sched_clock.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/sys_oabi-compat.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/pmu.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/perf_event.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/io.o[/SIZE]
[SIZE=3] LD arch/arm/kernel/built-in.o[/SIZE]
[SIZE=3] AS arch/arm/kernel/head.o[/SIZE]
[SIZE=3] CC arch/arm/kernel/init_task.o[/SIZE]
[SIZE=3] LDS arch/arm/kernel/vmlinux.lds[/SIZE]
[SIZE=3] CC arch/arm/mm/dma-mapping.o[/SIZE]
[SIZE=3] CC arch/arm/mm/extable.o[/SIZE]
[SIZE=3] CC arch/arm/mm/fault.o[/SIZE]
[SIZE=3] CC arch/arm/mm/init.o[/SIZE]
[SIZE=3] CC arch/arm/mm/iomap.o[/SIZE]
[SIZE=3] CC arch/arm/mm/fault-armv.o[/SIZE]
[SIZE=3] CC arch/arm/mm/flush.o[/SIZE]
[SIZE=3] CC arch/arm/mm/ioremap.o[/SIZE]
[SIZE=3] CC arch/arm/mm/mmap.o[/SIZE]
[SIZE=3] CC arch/arm/mm/pgd.o[/SIZE]
[SIZE=3] CC arch/arm/mm/mmu.o[/SIZE]
[SIZE=3] CC arch/arm/mm/vmregion.o[/SIZE]
[SIZE=3] CC arch/arm/mm/proc-syms.o[/SIZE]
[SIZE=3] CC arch/arm/mm/alignment.o[/SIZE]
[SIZE=3] AS arch/arm/mm/abort-ev6.o[/SIZE]
[SIZE=3] AS arch/arm/mm/pabort-v6.o[/SIZE]
[SIZE=3] AS arch/arm/mm/cache-v6.o[/SIZE]
[SIZE=3] CC arch/arm/mm/copypage-v6.o[/SIZE]
[SIZE=3] CC arch/arm/mm/context.o[/SIZE]
[SIZE=3] AS arch/arm/mm/tlb-v6.o[/SIZE]
[SIZE=3] AS arch/arm/mm/proc-v6.o[/SIZE]
[SIZE=3] CC arch/arm/mm/cache-l2x0.o[/SIZE]
[SIZE=3] LD arch/arm/mm/built-in.o[/SIZE]
[SIZE=3] CC arch/arm/common/clkdev.o[/SIZE]
[SIZE=3] LD arch/arm/common/built-in.o[/SIZE]
[SIZE=3] CC [M] arch/arm/common/cpaccess.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/io.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/dma.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/memory.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/clock.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/clock-voter.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/modem_notifier.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/cpufreq.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/nohlt.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/clock-debug.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/proc_comm.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/clock-pcom.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/internal_power_rail.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/vreg.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/mpp.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/pmic_debugfs.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/drop_caches.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/acpuclock.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/timer.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/irq-vic.o[/SIZE]
[SIZE=3] AS arch/arm/mach-msm/idle-v6.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smem_log.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_debug.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/remote_spinlock.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/socinfo.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/nand_partitions.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/pmic.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/rpc_hsusb.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/rpc_pmapp.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/rpc_fsusb.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_tty.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_qmi.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_pkt.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_nmea.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_rpcrouter.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_rpcrouter_device.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_rpc_sym.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_rpcrouter_servers.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_rpcrouter_clients.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/smd_rpcrouter_xdr.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/rpcrouter_smd_xprt.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/ping_mdm_rpc_client.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/proc_comm_test.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/ping_apps_server.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/oem_rapi_client.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/rpc_server_dog_keepalive.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/rpc_server_time_remote.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_driver.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_info.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_rm.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_video_verify_cmd.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_videoenc_verify_cmd.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_jpeg_verify_cmd.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_jpeg_patch_event.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_vfe_verify_cmd.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_vfe_patch_event.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/adsp_lpm_verify_cmd.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_out.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_in.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_mp3.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audmgr.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audpp.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audrec.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_evrc.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_qcelp.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_amrnb.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_aac.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_amrnb_in.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_wma.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_voicememo.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_pcm.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_amrwb.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/audio_wmapro.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/snd.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/qdsp5/snd_adie.o[/SIZE]
[SIZE=3] LD arch/arm/mach-msm/qdsp5/built-in.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/pm2.o[/SIZE]
[SIZE=3]arch/arm/mach-msm/pm2.c:1597: warning: type defaults to 'int' in declaration of 'what_clk'[/SIZE]
[SIZE=3]arch/arm/mach-msm/pm2.c:1598: warning: type defaults to 'int' in declaration of 'req_clk'[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/keypad-surf-ffa.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/board-msm7x27.o[/SIZE]
[SIZE=3]In file included from arch/arm/mach-msm/board-msm7x27.c:16:[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c: In function 'msm_fb_lcdc_power_save':[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c:994: warning: no return statement in function returning non-void[/SIZE]
[SIZE=3]In file included from arch/arm/mach-msm/board-msm7x27.c:16:[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c: In function 'msm7x2x_init_mmc':[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c:2727: warning: ISO C90 forbids mixed declarations and code[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-msm7x27.c: At top level:[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c:938: warning: 'msm_fb_lcdc_vreg' defined but not used[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c:942: warning: 'msm_fb_lcdc_vreg_rev02' defined but not used[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c:1377: warning: 'i2c_devices' defined but not used[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c:1465: warning: 'mus_i2c_devices' defined but not used[/SIZE]
[SIZE=3]arch/arm/mach-msm/board-gio.c:2212: warning: 'sdcc_gpio_init' defined but not used[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/devices-msm7x27.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/msm_vibrator.o[/SIZE]
[SIZE=3]arch/arm/mach-msm/msm_vibrator.c: In function 'vibrator_enable':[/SIZE]
[SIZE=3]arch/arm/mach-msm/msm_vibrator.c:273: warning: unused variable 'flags'[/SIZE]
[SIZE=3]arch/arm/mach-msm/msm_vibrator.c: At top level:[/SIZE]
[SIZE=3]arch/arm/mach-msm/msm_vibrator.c:181: warning: 'vibe_set_pwm_freq' defined but not used[/SIZE]
[SIZE=3]arch/arm/mach-msm/msm_vibrator.c:202: warning: 'set_pmic_vibrator' defined but not used[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/gpiomux-7x27.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/gpiomux-v1.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/gpiomux.o[/SIZE]
[SIZE=3] CC arch/arm/mach-msm/gpio.o[/SIZE]
[SIZE=3] LD arch/arm/mach-msm/built-in.o[/SIZE]
[SIZE=3] CC [M] arch/arm/mach-msm/reset_modem.o[/SIZE]
[SIZE=3] CC [M] arch/arm/mach-msm/dma_test.o[/SIZE]
[SIZE=3] CC arch/arm/vfp/vfpmodule.o[/SIZE]
[SIZE=3] AS arch/arm/vfp/entry.o[/SIZE]
[SIZE=3] AS arch/arm/vfp/vfphw.o[/SIZE]
[SIZE=3] CC arch/arm/vfp/vfpsingle.o[/SIZE]
[SIZE=3] CC arch/arm/vfp/vfpdouble.o[/SIZE]
[SIZE=3] LD arch/arm/vfp/vfp.o[/SIZE]
[SIZE=3] LD arch/arm/vfp/built-in.o[/SIZE]
[SIZE=3] CC arch/arm/perfmon/perf-function-hooks.o[/SIZE]
[SIZE=3] LD arch/arm/perfmon/built-in.o[/SIZE]
[SIZE=3] CC kernel/sched.o[/SIZE]
[SIZE=3]kernel/sched.c: In function 'sched_init':[/SIZE]
[SIZE=3]kernel/sched.c:7524: warning: ISO C90 forbids mixed declarations and code[/SIZE]
[SIZE=3]kernel/sched.c:7525: warning: initialization from incompatible pointer type[/SIZE]
[SIZE=3] CC kernel/fork.o[/SIZE]
[SIZE=3] CC kernel/exec_domain.o[/SIZE]
[SIZE=3] CC kernel/panic.o[/SIZE]
[SIZE=3] CC kernel/printk.o[/SIZE]
[SIZE=3] CC kernel/cpu.o[/SIZE]
[SIZE=3] CC kernel/exit.o[/SIZE]
[SIZE=3] CC kernel/itimer.o[/SIZE]
[SIZE=3] CC kernel/time.o[/SIZE]
[SIZE=3] CC kernel/softirq.o[/SIZE]
[SIZE=3] CC kernel/resource.o[/SIZE]
[SIZE=3] CC kernel/sysctl.o[/SIZE]
[SIZE=3] CC kernel/sysctl_binary.o[/SIZE]
[SIZE=3] CC kernel/capability.o[/SIZE]
[SIZE=3] CC kernel/ptrace.o[/SIZE]
[SIZE=3] CC kernel/timer.o[/SIZE]
[SIZE=3] CC kernel/user.o[/SIZE]
[SIZE=3] CC kernel/signal.o[/SIZE]
[SIZE=3] CC kernel/sys.o[/SIZE]
[SIZE=3] CC kernel/kmod.o[/SIZE]
[SIZE=3] CC kernel/workqueue.o[/SIZE]
[SIZE=3] CC kernel/pid.o[/SIZE]
[SIZE=3] CC kernel/rcupdate.o[/SIZE]
[SIZE=3] CC kernel/extable.o[/SIZE]
[SIZE=3] CC kernel/params.o[/SIZE]
[SIZE=3] CC kernel/posix-timers.o[/SIZE]
[SIZE=3] CC kernel/kthread.o[/SIZE]
[SIZE=3] CC kernel/wait.o[/SIZE]
[SIZE=3] CC kernel/kfifo.o[/SIZE]
[SIZE=3] CC kernel/sys_ni.o[/SIZE]
[SIZE=3] CC kernel/posix-cpu-timers.o[/SIZE]
[SIZE=3] CC kernel/mutex.o[/SIZE]
[SIZE=3] CC kernel/hrtimer.o[/SIZE]
[SIZE=3] CC kernel/rwsem.o[/SIZE]
[SIZE=3] CC kernel/nsproxy.o[/SIZE]
[SIZE=3] CC kernel/srcu.o[/SIZE]
[SIZE=3] CC kernel/semaphore.o[/SIZE]
[SIZE=3] CC kernel/notifier.o[/SIZE]
[SIZE=3] CC kernel/ksysfs.o[/SIZE]
[SIZE=3] CC kernel/pm_qos_params.o[/SIZE]
[SIZE=3] CC kernel/sched_clock.o[/SIZE]
[SIZE=3] CC kernel/cred.o[/SIZE]
[SIZE=3] CC kernel/async.o[/SIZE]
[SIZE=3] CC kernel/range.o[/SIZE]
[SIZE=3] CC kernel/groups.o[/SIZE]
[SIZE=3] CC kernel/freezer.o[/SIZE]
[SIZE=3] CC kernel/profile.o[/SIZE]
[SIZE=3] CC kernel/stacktrace.o[/SIZE]
[SIZE=3] CC kernel/irq/handle.o[/SIZE]
[SIZE=3] CC kernel/irq/manage.o[/SIZE]
[SIZE=3] CC kernel/irq/spurious.o[/SIZE]
[SIZE=3] CC kernel/irq/resend.o[/SIZE]
[SIZE=3] CC kernel/irq/chip.o[/SIZE]
[SIZE=3] CC kernel/irq/devres.o[/SIZE]
[SIZE=3] CC kernel/irq/autoprobe.o[/SIZE]
[SIZE=3] CC kernel/irq/proc.o[/SIZE]
[SIZE=3] CC kernel/irq/pm.o[/SIZE]
[SIZE=3] LD kernel/irq/built-in.o[/SIZE]
[SIZE=3] CC kernel/power/main.o[/SIZE]
[SIZE=3] CC kernel/power/console.o[/SIZE]
[SIZE=3] CC kernel/power/process.o[/SIZE]
[SIZE=3] CC kernel/power/suspend.o[/SIZE]
[SIZE=3] CC kernel/power/nvs.o[/SIZE]
[SIZE=3] CC kernel/power/wakelock.o[/SIZE]
[SIZE=3] CC kernel/power/portlist.o[/SIZE]
[SIZE=3] CC kernel/power/userwakelock.o[/SIZE]
[SIZE=3] CC kernel/power/earlysuspend.o[/SIZE]
[SIZE=3] CC kernel/power/consoleearlysuspend.o[/SIZE]
[SIZE=3] CC kernel/power/poweroff.o[/SIZE]
[SIZE=3] LD kernel/power/built-in.o[/SIZE]
[SIZE=3] CC kernel/time/timekeeping.o[/SIZE]
[SIZE=3] CC kernel/time/ntp.o[/SIZE]
[SIZE=3] CC kernel/time/clocksource.o[/SIZE]
[SIZE=3] CC kernel/time/jiffies.o[/SIZE]
[SIZE=3] CC kernel/time/timer_list.o[/SIZE]
[SIZE=3] CC kernel/time/timecompare.o[/SIZE]
[SIZE=3] CC kernel/time/timeconv.o[/SIZE]
[SIZE=3] CC kernel/time/clockevents.o[/SIZE]
[SIZE=3] CC kernel/time/tick-common.o[/SIZE]
[SIZE=3] CC kernel/time/tick-oneshot.o[/SIZE]
[SIZE=3] CC kernel/time/tick-sched.o[/SIZE]
[SIZE=3] CC kernel/time/timer_stats.o[/SIZE]
[SIZE=3] LD kernel/time/built-in.o[/SIZE]
[SIZE=3] CC kernel/trace/trace_clock.o[/SIZE]
[SIZE=3] CC kernel/trace/ring_buffer.o[/SIZE]
[SIZE=3] LD kernel/trace/built-in.o[/SIZE]
[SIZE=3] CC kernel/futex.o[/SIZE]
[SIZE=3] CC kernel/rtmutex.o[/SIZE]
[SIZE=3] CC kernel/up.o[/SIZE]
[SIZE=3] CC kernel/uid16.o[/SIZE]
[SIZE=3] CC kernel/module.o[/SIZE]
[SIZE=3] CC kernel/kallsyms.o[/SIZE]
[SIZE=3] CC kernel/cgroup.o[/SIZE]
[SIZE=3] CC kernel/cgroup_freezer.o[/SIZE]
[SIZE=3] CC kernel/configs.o[/SIZE]
[SIZE=3] CC kernel/res_counter.o[/SIZE]
[SIZE=3] CC kernel/softlockup.o[/SIZE]
[SIZE=3] CC kernel/rcutree.o[/SIZE]
[SIZE=3] CC kernel/relay.o[/SIZE]
[SIZE=3] CC kernel/utsname_sysctl.o[/SIZE]
[SIZE=3] CC kernel/elfcore.o[/SIZE]
[SIZE=3] CC kernel/slow-work.o[/SIZE]
[SIZE=3] CC kernel/perf_event.o[/SIZE]
[SIZE=3] LD kernel/built-in.o[/SIZE]
[SIZE=3] CC mm/bootmem.o[/SIZE]
[SIZE=3] CC mm/filemap.o[/SIZE]
[SIZE=3] CC mm/mempool.o[/SIZE]
[SIZE=3] CC mm/oom_kill.o[/SIZE]
[SIZE=3] CC mm/fadvise.o[/SIZE]
[SIZE=3] CC mm/maccess.o[/SIZE]
[SIZE=3] CC mm/page_alloc.o[/SIZE]
[SIZE=3] CC mm/page-writeback.o[/SIZE]
[SIZE=3] CC mm/readahead.o[/SIZE]
[SIZE=3] CC mm/swap.o[/SIZE]
[SIZE=3] CC mm/truncate.o[/SIZE]
[SIZE=3] CC mm/vmscan.o[/SIZE]
[SIZE=3] CC mm/shmem.o[/SIZE]
[SIZE=3] CC mm/prio_tree.o[/SIZE]
[SIZE=3] CC mm/util.o[/SIZE]
[SIZE=3] CC mm/mmzone.o[/SIZE]
[SIZE=3] CC mm/vmstat.o[/SIZE]
[SIZE=3] CC mm/backing-dev.o[/SIZE]
[SIZE=3] CC mm/page_isolation.o[/SIZE]
[SIZE=3] CC mm/mm_init.o[/SIZE]
[SIZE=3] CC mm/mmu_context.o[/SIZE]
[SIZE=3] CC mm/fremap.o[/SIZE]
[SIZE=3] CC mm/highmem.o[/SIZE]
[SIZE=3] CC mm/madvise.o[/SIZE]
[SIZE=3] CC mm/memory.o[/SIZE]
[SIZE=3] CC mm/mincore.o[/SIZE]
[SIZE=3] CC mm/mlock.o[/SIZE]
[SIZE=3] CC mm/mmap.o[/SIZE]
[SIZE=3] CC mm/mprotect.o[/SIZE]
[SIZE=3] CC mm/mremap.o[/SIZE]
[SIZE=3] CC mm/msync.o[/SIZE]
[SIZE=3] CC mm/rmap.o[/SIZE]
[SIZE=3] CC mm/vmalloc.o[/SIZE]
[SIZE=3] CC mm/pagewalk.o[/SIZE]
[SIZE=3] CC mm/init-mm.o[/SIZE]
[SIZE=3] CC mm/page_io.o[/SIZE]
[SIZE=3] CC mm/swap_state.o[/SIZE]
[SIZE=3] CC mm/swapfile.o[/SIZE]
[SIZE=3] CC mm/thrash.o[/SIZE]
[SIZE=3] CC mm/dmapool.o[/SIZE]
[SIZE=3] CC mm/ashmem.o[/SIZE]
[SIZE=3] CC mm/slab.o[/SIZE]
[SIZE=3] CC mm/percpu_up.o[/SIZE]
[SIZE=3] LD mm/built-in.o[/SIZE]
[SIZE=3] CC fs/open.o[/SIZE]
[SIZE=3] CC fs/read_write.o[/SIZE]
[SIZE=3] CC fs/file_table.o[/SIZE]
[SIZE=3] CC fs/super.o[/SIZE]
[SIZE=3] CC fs/char_dev.o[/SIZE]
[SIZE=3] CC fs/stat.o[/SIZE]
[SIZE=3] CC fs/exec.o[/SIZE]
[SIZE=3] CC fs/pipe.o[/SIZE]
[SIZE=3] CC fs/namei.o[/SIZE]
[SIZE=3] CC fs/fcntl.o[/SIZE]
[SIZE=3] CC fs/ioctl.o[/SIZE]
[SIZE=3] CC fs/readdir.o[/SIZE]
[SIZE=3] CC fs/select.o[/SIZE]
[SIZE=3] CC fs/fifo.o[/SIZE]
[SIZE=3] CC fs/dcache.o[/SIZE]
[SIZE=3] CC fs/inode.o[/SIZE]
[SIZE=3] CC fs/attr.o[/SIZE]
[SIZE=3] CC fs/bad_inode.o[/SIZE]
[SIZE=3] CC fs/file.o[/SIZE]
[SIZE=3] CC fs/filesystems.o[/SIZE]
[SIZE=3] CC fs/namespace.o[/SIZE]
[SIZE=3] CC fs/seq_file.o[/SIZE]
[SIZE=3] CC fs/xattr.o[/SIZE]
[SIZE=3] CC fs/libfs.o[/SIZE]
[SIZE=3] CC fs/fs-writeback.o[/SIZE]
[SIZE=3] CC fs/pnode.o[/SIZE]
[SIZE=3] CC fs/drop_caches.o[/SIZE]
[SIZE=3] etc[/SIZE]

compiled kernel location >

arch/arm/boot/*zimage

And, if u wanna know how to repack your kernel image (zImage), go check to this thread!

just change a kernel image (boot.img-kernel) with your kernel image (zImage).

wanna clean?

try this command :

$ make ARCH=arm
CROSS_COMPILE=~/android/sources/cm-kernel/CodeSourcery/Sourcery_G++/bin/arm-none-eabi-
clean

and you'll get log like these

CLEAN arch/arm/boot/compressed
CLEAN arch/arm/boot
CLEAN /home/delano/android/sources/cm-kernel
CLEAN arch/arm/kernel
CLEAN drivers/char
CLEAN kernel
CLEAN lib
CLEAN usr
CLEAN .tmp_versions
CLEAN vmlinux System.map .tmp_kallsyms1.o .tmp_kallsyms1.S
.tmp_kallsyms2.o .tmp_kallsyms2.S .tmp_vmlinux1 .tmp_vmlinux2
.tmp_System.map

Thx to

Hyriand for his kernel source code

Andika Edo Prabowo, Waqas, tj_styles

and

Yanuar Harry for their support