[HTC Pico (Explorer)] Gamersab:
1.

cd android

2.

cd kernel

3.

gedit Makefile

CROSS_COMPILE	?= /home/gamersab/android/toolchains/arm-eabi-4.4.3/bin/arm-eabi-

4.

make pico_defconfig

Output:

HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
warning: (MTD_MSM_NAND && MTD_DOC2000 && MTD_DOC2001 && MTD_DOC2001PLUS) selects MTD_NAND_IDS which has unmet direct dependencies (MTD && MTD_NAND)
warning: (MTD_MSM_NAND && MTD_DOC2000 && MTD_DOC2001 && MTD_DOC2001PLUS) selects MTD_NAND_IDS which has unmet direct dependencies (MTD && MTD_NAND)
#
# configuration written to .config
#

5.

make -j3

(I have AMD tri-core processor whose fourth core is locked)

After 3-5 mins

Output:

CC lib/decompress_inflate.o
CC lib/decompress_unlzma.o
CC net/ipv4/netfilter/nf_nat_proto_unknown.o
CC lib/decompress_unlzo.o
CC lib/decompress_unxz.o
CC net/ipv4/netfilter/nf_nat_proto_common.o
CC lib/dump_stack.o
CC lib/extable.o
CC lib/find_next_bit.o
CC net/ipv4/netfilter/nf_nat_proto_tcp.o
CC lib/idr.o
CC net/ipv4/netfilter/nf_nat_proto_udp.o
CC lib/int_sqrt.o
CC net/ipv4/netfilter/nf_nat_proto_icmp.o
CC lib/ioremap.o
CC lib/irq_regs.o
CC lib/is_single_threaded.o
CC net/ipv4/netfilter/nf_defrag_ipv4.o
CC lib/klist.o
CC [M] drivers/net/wireless/bcmdhd/dhd_linux_sched.o
CC lib/kobject.o
CC net/ipv4/netfilter/nf_nat_amanda.o
CC [M] drivers/net/wireless/bcmdhd/dhd_cdc.o
CC net/ipv4/netfilter/nf_nat_ftp.o
CC lib/kobject_uevent.o
CC [M] drivers/net/wireless/bcmdhd/bcmsdh_sdmmc.o
CC net/ipv4/netfilter/nf_nat_h323.o
CC lib/kref.o
CC lib/md5.o
CC lib/memcopy.o
CC lib/memory_alloc.o
CC net/ipv4/netfilter/nf_nat_irc.o
CC [M] drivers/net/wireless/bcmdhd/bcmsdh.o
CC lib/plist.o
CC lib/prio_heap.o
CC lib/prio_tree.o
CC net/ipv4/netfilter/nf_nat_pptp.o
CC [M] drivers/net/wireless/bcmdhd/bcmsdh_linux.o
CC lib/proportions.o
CC net/ipv4/netfilter/nf_nat_sip.o
CC lib/radix-tree.o
CC [M] drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.o
CC [M] drivers/net/wireless/bcmdhd/bcmevent.o
CC lib/ratelimit.o
CC lib/rbtree.o
CC net/ipv4/netfilter/nf_nat_tftp.o
CC [M] drivers/net/wireless/bcmdhd/dhd_bta.o
CC lib/reciprocal_div.o
CC lib/rwsem.o
CC net/ipv4/netfilter/nf_nat_proto_dccp.o
CC lib/sha1.o
CC [M] drivers/net/wireless/bcmdhd/wl_android.o
CC lib/show_mem.o
CC net/ipv4/netfilter/nf_nat_proto_gre.o
CC lib/string.o
CC net/ipv4/netfilter/nf_nat_proto_udplite.o
CC lib/timerqueue.o
CC lib/vsprintf.o
CC net/ipv4/netfilter/nf_nat_proto_sctp.o
CC [M] drivers/net/wireless/bcmdhd/wldev_common.o
CC net/ipv4/netfilter/ip_tables.o
CC [M] drivers/net/wireless/bcmdhd/wl_linux_mon.o
GEN lib/crc32table.h
AR lib/lib.a
CC lib/crc32.o
CC [M] drivers/net/wireless/bcmdhd/wl_cfg80211.o
CC net/ipv4/netfilter/iptable_filter.o
LD lib/built-in.o
CC net/ipv4/netfilter/iptable_mangle.o
LD net/ipv4/netfilter/iptable_nat.o
CC net/ipv4/netfilter/iptable_raw.o
CC net/ipv4/netfilter/ipt_ah.o
CC net/ipv4/netfilter/ipt_ecn.o
LD drivers/nfc/built-in.o
LD drivers/platform/msm/built-in.o
LD drivers/platform/built-in.o
CC net/ipv4/netfilter/ipt_LOG.o
CC net/ipv4/netfilter/ipt_MASQUERADE.o
CC drivers/power/power_supply_core.o
CC net/ipv4/netfilter/ipt_NETMAP.o
CC drivers/power/power_supply_sysfs.o
CC net/ipv4/netfilter/ipt_REDIRECT.o
LD drivers/power/power_supply.o
LD drivers/power/built-in.o
CC drivers/regulator/core.o
CC net/ipv4/netfilter/ipt_REJECT.o
CC net/ipv4/netfilter/arp_tables.o
CC net/ipv4/netfilter/arpt_mangle.o
CC drivers/regulator/dummy.o
LD drivers/regulator/built-in.o
CC drivers/rtc/rtc-lib.o
CC net/ipv4/netfilter/arptable_filter.o
CC drivers/rtc/hctosys.o
LD net/ipv4/netfilter/nf_conntrack_ipv4.o
LD net/ipv4/netfilter/nf_nat.o
LD net/ipv4/netfilter/built-in.o
CC drivers/rtc/class.o
CC net/ipv4/inet_diag.o
CC drivers/rtc/interface.o
CC drivers/rtc/rtc-dev.o
CC net/ipv4/tcp_diag.o
CC [M] drivers/net/wireless/bcmdhd/wl_cfgp2p.o
CC drivers/rtc/rtc-proc.o
CC net/ipv4/tcp_cubic.o
CC drivers/rtc/rtc-sysfs.o
CC drivers/rtc/alarm.o
CC net/ipv4/xfrm4_policy.o
CC drivers/rtc/alarm-dev.o
CC net/ipv4/xfrm4_state.o
CC [M] drivers/net/wireless/bcmdhd/dhd_cfg80211.o
CC drivers/rtc/offmode-alarm.o
CC net/ipv4/xfrm4_input.o
CC drivers/rtc/rtc-msm.o
CC net/ipv4/xfrm4_output.o
CC [M] drivers/net/wireless/bcmdhd/wl_iw.o
LD drivers/rtc/rtc-core.o
LD drivers/rtc/built-in.o
CC drivers/scsi/scsi.o
LD net/ipv4/built-in.o
CC net/ipv6/af_inet6.o
CC drivers/scsi/hosts.o
CC drivers/scsi/scsi_ioctl.o
CC net/ipv6/anycast.o
CC drivers/scsi/constants.o
CC net/ipv6/ip6_output.o
CC drivers/scsi/scsicam.o
LD [M] drivers/net/wireless/bcmdhd/bcmdhd.o
CC drivers/net/msm_rmnet.o
CC drivers/scsi/scsi_error.o
CC [M] drivers/net/kineto_gan.o
LD drivers/net/built-in.o
CC drivers/staging/staging.o
CC net/ipv6/ip6_input.o
CC drivers/staging/android/binder.o
CC drivers/scsi/scsi_lib.o
CC net/ipv6/addrconf.o
CC drivers/scsi/scsi_lib_dma.o
CC drivers/scsi/scsi_scan.o
CC drivers/staging/android/logger.o
CC drivers/staging/android/ram_console.o
CC drivers/staging/android/timed_output.o
CC net/ipv6/addrlabel.o
CC drivers/staging/android/lowmemorykiller.o
CC drivers/scsi/scsi_sysfs.o
LD drivers/staging/android/built-in.o
LD drivers/staging/generic_serial/built-in.o
CC drivers/staging/qcache/qcache-main.o
CC net/ipv6/route.o
CC drivers/scsi/scsi_devinfo.o
CC drivers/staging/qcache/tmem.o
CC drivers/scsi/scsi_sysctl.o
CC drivers/scsi/scsi_proc.o
CC drivers/scsi/scsi_trace.o
CC net/ipv6/ip6_fib.o
CC drivers/scsi/scsi_pm.o
CC drivers/staging/qcache/fmem.o
CC drivers/scsi/sd.o
LD drivers/staging/qcache/qcache.o
LD drivers/staging/qcache/built-in.o
LD drivers/staging/tty/built-in.o
CC drivers/staging/zram/zram_drv.o
CC drivers/staging/zram/zram_sysfs.o
CC net/ipv6/ipv6_sockglue.o
CC drivers/staging/zram/xvmalloc.o
CC net/ipv6/ndisc.o
LD drivers/staging/zram/zram.o
LD drivers/staging/zram/built-in.o
LD drivers/staging/built-in.o
CC drivers/switch/switch_class.o
LD drivers/scsi/arm/built-in.o
LD drivers/scsi/sd_mod.o
CC drivers/scsi/sg.o
CC drivers/switch/switch_gpio.o
LD drivers/switch/built-in.o
CC drivers/tty/tty_io.o
CC net/ipv6/udp.o
CC drivers/scsi/ch.o
CC drivers/tty/n_tty.o
CC [M] drivers/scsi/scsi_wait_scan.o
LD drivers/scsi/scsi_mod.o
LD drivers/scsi/built-in.o
CC drivers/usb/core/usb.o
CC drivers/usb/core/hub.o
CC net/ipv6/udplite.o
CC net/ipv6/raw.o
CC drivers/tty/tty_ioctl.o
CC drivers/tty/tty_ldisc.o
CC net/ipv6/protocol.o
CC net/ipv6/icmp.o
CC drivers/usb/core/hcd.o
CC drivers/tty/tty_buffer.o
CC drivers/tty/tty_port.o
CC net/ipv6/mcast.o
CC drivers/tty/tty_mutex.o
CC drivers/usb/core/urb.o
CC drivers/tty/pty.o
CC drivers/usb/core/message.o
CC drivers/tty/tty_audit.o
CC drivers/tty/sysrq.o
LD drivers/tty/ipwireless/built-in.o
CC drivers/tty/serial/serial_core.o
CC drivers/usb/core/driver.o
CC net/ipv6/reassembly.o
CC net/ipv6/tcp_ipv6.o
CC drivers/tty/serial/msm_serial.o
CC drivers/usb/core/config.o
CC drivers/tty/serial/msm_serial_hs.o
CC drivers/usb/core/file.o
CC drivers/usb/core/buffer.o
CC drivers/usb/core/sysfs.o
CC net/ipv6/ping.o
CC drivers/tty/serial/msm_serial_hs_brcm.o
CC drivers/usb/core/endpoint.o
CC net/ipv6/exthdrs.o
CC drivers/usb/core/devio.o
CC drivers/tty/serial/msm_serial_hs_ti_dc.o
CC net/ipv6/datagram.o
CC drivers/usb/core/notify.o
CC net/ipv6/ip6_flowlabel.o
CC drivers/usb/core/generic.o
LD drivers/tty/serial/built-in.o
LD drivers/tty/vt/built-in.o
LD drivers/tty/built-in.o
CC drivers/video/fb_notify.o
CC drivers/usb/core/quirks.o
CC drivers/video/fbmem.o
CC drivers/usb/core/devices.o
CC net/ipv6/inet6_connection_sock.o
LD drivers/usb/core/usbcore.o
LD drivers/usb/core/built-in.o
CC drivers/usb/gadget/msm72k_udc.o
CC drivers/video/fbmon.o
CC net/ipv6/sysctl_net_ipv6.o
CC drivers/video/fbcmap.o
CC net/ipv6/xfrm6_policy.o
CC drivers/video/fbsysfs.o
CC net/ipv6/xfrm6_state.o
CC drivers/video/modedb.o
CC net/ipv6/xfrm6_input.o
CC drivers/video/fbcvt.o
CC drivers/usb/gadget/android.o
CC drivers/video/backlight/lcd.o
CC net/ipv6/xfrm6_output.o
CC drivers/video/backlight/backlight.o
CC net/ipv6/netfilter.o
CC drivers/video/backlight/generic_bl.o
LD drivers/video/backlight/built-in.o
LD drivers/video/display/built-in.o
CC drivers/video/msm_7x27A/msm_fb.o
CC net/ipv6/fib6_rules.o
CC net/ipv6/proc.o
CC net/ipv6/esp6.o
CC drivers/video/msm_7x27A/mdp.o
CC net/ipv6/ipcomp6.o
CC net/ipv6/xfrm6_tunnel.o
CC drivers/video/msm_7x27A/mdp_debugfs.o
CC net/ipv6/tunnel6.o
CC net/ipv6/xfrm6_mode_transport.o
CC drivers/video/msm_7x27A/mdp_hw_init.o
CC net/ipv6/xfrm6_mode_tunnel.o
CC net/ipv6/xfrm6_mode_beet.o
CC net/ipv6/mip6.o
CC drivers/video/msm_7x27A/mdp_ppp.o
CC net/ipv6/netfilter/ip6_tables.o
CC drivers/video/msm_7x27A/mdp_ppp_v20.o
CC net/ipv6/netfilter/ip6table_filter.o
CC net/ipv6/netfilter/ip6table_mangle.o
CC net/ipv6/netfilter/ip6table_raw.o
CC net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.o
CC drivers/video/msm_7x27A/mdp_dma_lcdc.o
CC net/ipv6/netfilter/nf_conntrack_proto_icmpv6.o
CC drivers/video/msm_7x27A/mdp_dma_dsi_video.o
CC net/ipv6/netfilter/nf_defrag_ipv6_hooks.o
CC drivers/video/msm_7x27A/mdp_dma.o
CC net/ipv6/netfilter/nf_conntrack_reasm.o
LD drivers/usb/gadget/g_android.o
LD drivers/usb/gadget/built-in.o
LD drivers/usb/misc/built-in.o
CC drivers/usb/otg/otg.o
CC drivers/video/msm_7x27A/mdp_dma_s.o
CC drivers/usb/otg/otg_id.o
CC drivers/usb/otg/msm72k_otg.o
CC drivers/video/msm_7x27A/mdp_vsync.o
CC net/ipv6/netfilter/ip6t_REJECT.o
CC drivers/video/msm_7x27A/mdp_cursor.o
LD net/ipv6/netfilter/nf_conntrack_ipv6.o
LD net/ipv6/netfilter/nf_defrag_ipv6.o
LD net/ipv6/netfilter/built-in.o
CC net/ipv6/sit.o
CC drivers/video/msm_7x27A/mdp_dma_tv.o
CC drivers/video/msm_7x27A/msm_dss_io_7x27a.o
CC net/ipv6/addrconf_core.o
CC drivers/video/msm_7x27A/mipi_dsi.o
LD drivers/usb/otg/built-in.o
LD drivers/usb/storage/built-in.o
LD drivers/usb/built-in.o
CC net/ipv6/exthdrs_core.o
CC net/ipv6/inet6_hashtables.o
CC drivers/video/msm_7x27A/mipi_dsi_host.o
LD net/ipv6/ipv6.o
CC drivers/video/msm_7x27A/mipi_novatek.o
LD net/ipv6/built-in.o
CC net/key/af_key.o
CC drivers/video/msm_7x27A/mipi_samsung.o
CC drivers/video/msm_7x27A/mipi_sony.o
LD drivers/video/omap2/displays/built-in.o
LD drivers/video/omap2/built-in.o
CC drivers/video/cfbfillrect.o
CC drivers/video/msm_7x27A/mipi_lg.o
CC drivers/video/cfbcopyarea.o
CC drivers/video/cfbimgblt.o
CC drivers/video/msm_7x27A/mipi_orise.o
LD drivers/video/fb.o
CC net/netfilter/core.o
LD net/key/built-in.o
CC net/netlink/af_netlink.o
CC drivers/video/msm_7x27A/mipi_renesas.o
CC net/netfilter/nf_log.o
CC drivers/video/msm_7x27A/mipi_simulator.o
CC net/netfilter/nf_queue.o
CC drivers/video/msm_7x27A/msm_fb_panel.o
CC drivers/video/msm_7x27A/mipi_orise_cmd_hvga_pt.o
CC net/netfilter/nf_sockopt.o
CC drivers/video/msm_7x27A/mipi_orise_video_wvga_pt.o
CC net/netlink/genetlink.o
CC net/netfilter/nf_conntrack_core.o
CC drivers/video/msm_7x27A/mipi_novatek_cmd_hvga_pt.o
CC drivers/video/msm_7x27A/mipi_novatek_video_hvga_pt.o
LD net/netlink/built-in.o
CC net/packet/af_packet.o
CC drivers/video/msm_7x27A/mipi_samsung_cmd_hvga_pt.o
CC drivers/video/msm_7x27A/mipi_sony_cmd_wvga_pt.o
CC net/netfilter/nf_conntrack_standalone.o
CC drivers/video/msm_7x27A/mipi_lg_video_wvga_pt.o
LD drivers/video/msm_7x27A/msm_mipi.o
LD drivers/video/msm_7x27A/built-in.o
CC net/netfilter/nf_conntrack_expect.o
LD drivers/video/built-in.o
LD drivers/built-in.o
LD net/packet/built-in.o
CC net/rfkill/core.o
CC net/netfilter/nf_conntrack_helper.o
CC net/sched/sch_generic.o
LD net/rfkill/rfkill.o
LD net/rfkill/built-in.o
CC net/unix/af_unix.o
CC net/netfilter/nf_conntrack_proto.o
CC net/netfilter/nf_conntrack_l3proto_generic.o
CC net/sched/sch_mq.o
CC net/netfilter/nf_conntrack_proto_generic.o
CC net/sched/sch_api.o
CC net/netfilter/nf_conntrack_proto_tcp.o
CC net/unix/garbage.o
CC net/netfilter/nf_conntrack_proto_udp.o
CC net/unix/sysctl_net_unix.o
CC net/sched/sch_blackhole.o
CC net/netfilter/nf_conntrack_extend.o
LD net/unix/unix.o
LD net/unix/built-in.o
CC net/wireless/core.o
CC net/sched/cls_api.o
CC net/netfilter/nf_conntrack_acct.o
CC net/netfilter/nf_conntrack_ecache.o
CC net/sched/act_api.o
CC net/wireless/sysfs.o
CC net/netfilter/nf_conntrack_h323_main.o
CC net/wireless/radiotap.o
CC net/wireless/util.o
CC net/sched/act_police.o
CC net/netfilter/nf_conntrack_h323_asn1.o
CC net/sched/act_gact.o
CC net/wireless/reg.o
CC net/netfilter/nfnetlink.o
CC net/sched/act_mirred.o
CC net/netfilter/nfnetlink_queue.o
CC net/sched/sch_fifo.o
CC net/sched/sch_htb.o
CC net/netfilter/nfnetlink_log.o
CC net/wireless/scan.o
LD net/netfilter/nf_conntrack.o
CC net/netfilter/nf_conntrack_proto_dccp.o
CC net/wireless/nl80211.o
CC net/sched/sch_ingress.o
CC net/netfilter/nf_conntrack_proto_gre.o
CC net/sched/sch_prio.o
CC net/netfilter/nf_conntrack_proto_sctp.o
CC net/sched/cls_u32.o
CC net/netfilter/nf_conntrack_proto_udplite.o
CC net/sched/cls_fw.o
CC net/netfilter/nf_conntrack_netlink.o
CC net/sched/cls_flow.o
CC net/sched/ematch.o
CC net/netfilter/nf_conntrack_amanda.o
CC net/netfilter/nf_conntrack_ftp.o
CC net/sched/em_cmp.o
CC net/sched/em_nbyte.o
LD net/netfilter/nf_conntrack_h323.o
CC net/netfilter/nf_conntrack_irc.o
CC net/sched/em_u32.o
CC net/sched/em_meta.o
CC net/netfilter/nf_conntrack_broadcast.o
CC net/netfilter/nf_conntrack_netbios_ns.o
CC net/sched/em_text.o
CC net/netfilter/nf_conntrack_pptp.o
CC net/wireless/mlme.o
LD net/sched/built-in.o
CC net/xfrm/xfrm_policy.o
CC net/netfilter/nf_conntrack_sane.o
CC net/netfilter/nf_conntrack_sip.o
CC net/wireless/ibss.o
CC net/wireless/sme.o
CC net/xfrm/xfrm_state.o
CC net/wireless/chan.o
CC net/netfilter/nf_conntrack_tftp.o
CC net/wireless/ethtool.o
CC net/wireless/mesh.o
CC net/netfilter/nf_tproxy_core.o
CC net/wireless/wext-compat.o
CC net/netfilter/x_tables.o
CC net/xfrm/xfrm_hash.o
CC net/xfrm/xfrm_input.o
CC net/wireless/wext-sme.o
CC net/netfilter/xt_tcpudp.o
CC net/wireless/wext-core.o
CC net/xfrm/xfrm_output.o
CC net/netfilter/xt_mark.o
CC net/wireless/wext-proc.o
CC net/netfilter/xt_connmark.o
CC net/xfrm/xfrm_algo.o
CC net/wireless/wext-priv.o
CC net/netfilter/xt_CLASSIFY.o
CC net/xfrm/xfrm_sysctl.o
LD net/wireless/cfg80211.o
LD net/wireless/built-in.o
CC net/netfilter/xt_HL.o
CC net/sysctl_net.o
CC net/xfrm/xfrm_replay.o
CC net/netfilter/xt_NFQUEUE.o
CC net/activity_stats.o
CC net/xfrm/xfrm_user.o
CC net/netfilter/xt_TPROXY.o
CC net/xfrm/xfrm_ipcomp.o
CC net/netfilter/xt_TCPMSS.o
CC net/netfilter/xt_IDLETIMER.o
CC net/netfilter/xt_comment.o
CC net/netfilter/xt_connlimit.o
LD net/xfrm/built-in.o
CC net/netfilter/xt_conntrack.o
CC net/netfilter/xt_hashlimit.o
CC net/netfilter/xt_helper.o
CC net/netfilter/xt_hl.o
CC net/netfilter/xt_iprange.o
CC net/netfilter/xt_length.o
CC net/netfilter/xt_limit.o
CC net/netfilter/xt_mac.o
CC net/netfilter/xt_multiport.o
CC net/netfilter/xt_pkttype.o
CC net/netfilter/xt_policy.o
CC net/netfilter/xt_qtaguid_print.o
CC net/netfilter/xt_qtaguid.o
CC net/netfilter/xt_quota.o
CC net/netfilter/xt_quota2.o
CC net/netfilter/xt_socket.o
CC net/netfilter/xt_state.o
CC net/netfilter/xt_statistic.o
CC net/netfilter/xt_string.o
CC net/netfilter/xt_time.o
CC net/netfilter/xt_u32.o
LD net/netfilter/netfilter.o
LD net/netfilter/built-in.o
LD net/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Building modules, stage 2.
MODPOST 4 modules
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
CC arch/arm/boot/compressed/misc.o
CC arch/arm/boot/compressed/decompress.o
CC arch/arm/mach-msm/dal_remotetest.mod.o
CC drivers/net/kineto_gan.mod.o
XZKERN arch/arm/boot/compressed/piggy.xzkern
CC drivers/net/wireless/bcmdhd/bcmdhd.mod.o
CC drivers/scsi/scsi_wait_scan.mod.o
LD [M] arch/arm/mach-msm/dal_remotetest.ko
LD [M] drivers/net/kineto_gan.ko
LD [M] drivers/net/wireless/bcmdhd/bcmdhd.ko
LD [M] drivers/scsi/scsi_wait_scan.ko
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/ashldi3.S
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/ashldi3.o
AS arch/arm/boot/compressed/piggy.xzkern.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready

6.

find . -name '*ko' -exec cp '{}' modules \;

I got no reply output on terminal but modules were present in its folder as it was empty before compiling.

7. I navigate to boot image tools.

8.

mkdir -p unpack

tools/unpackbootimg -i source_img/boot.img -o unpack

Output:

BOARD_KERNEL_CMDLINE no_console_suspend=1 console=null
BOARD_KERNEL_BASE 12c00000
BOARD_PAGE_SIZE 00000800

I REPLACED zImage file with compiled one by me.

9.

mkdir -p boot

cd boot

gzip -dc ../unpack/boot.img-ramdisk.gz | cpio -i

Output:

553 blocks

cd ../

tools/mkbootfs boot | gzip > unpack/boot.img-ramdisk-new.gz

10.

mkdir -p target_img

tools/mkbootimg --kernel unpack/boot.img-zImage --ramdisk unpack/boot.img-ramdisk-new.gz -o target_img/boot.img --base `cat unpack/boot.img-base`

11.

For flashing to phone:

Phone in fastboot usb mode,

fastboot flash boot boot.img

Here I got boot.img file !!

I never pushed modules because I wanted to make sure phone is booting.

Thanks.