[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
First thanks for quick response.

Wao, let me understand this concept, latter we can go and do any script.

Let me explained what I am doing. I been playing around with a few Virtual Emulators trying to see if there is an easy way to debug Kernel with the final intention to apply it to the Native Linux problem that I have. This can introduce many other error or situation in particular not having out hardware implemented on any of the Virtual Models. But thats fine, I just want to see how Linux behave with the fact that framebuffer is in a different location. In linux it is at "/dev/fbo" in android is on "/dev/graphics/fbo". So I have played with quemu, kvm, xen and now I am trying just androidndk emulator.

with androidndk emulator problem I found is that it uses "android-goldfish-2.6.29" to simulate up to jb4.2.x. It is only for KK 4.x where the "android-goldfish-3.4" is used. This android-goldfish-2.6.29 create problem when I try to add stuff. It always complying about the kernel version to old!. So here I am trying to compile "Kernel-android-goldfish-3.4".

To simplify the unknown, lets define my environment.

export toolchains=/opt/toolchains/NDK-x86-4.6-JB
export CROSS_COMPILE=/opt/toolchains/NDK-x86-4.6-JB/bin/i686-linux-android-
export ARCH=i386
export SUBARCH=i386
export kernel_source=$HOME/bin/Kernel-android-goldfish-3.4
export correct_defconfig=goldfish_defconfig

So your suggested definitions

cd $kernel_source
make mrproper
make $correct_defconfig
make headers_check
make $toolchains/sysroot/usr headers_install

Here is my result

user@user-PC:~/bin/Kernel-android-goldfish-3.4$ export toolchains=/opt/toolchains/NDK-x86-4.6-JB
user@user-PC:~/bin/Kernel-android-goldfish-2.6.29$ export kernel_source=$HOME/bin/Kernel-android-goldfish-3.4
user@user-PC:~/bin/Kernel-android-goldfish-2.6.29$ export correct_defconfig=goldfish_defconfig

user@user-PC:~/bin/Kernel-android-goldfish-2.6.29$ cd $kernel_source

user@user-PC:~/bin/Kernel-android-goldfish-3.4$ make mrproper
CLEAN .
CLEAN arch/x86/tools
CLEAN .tmp_versions
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN scripts/mod
CLEAN scripts/selinux/genheaders
CLEAN scripts/selinux/mdp
CLEAN scripts
CLEAN include/config include/generated arch/x86/include/generated
CLEAN .config .version include/linux/version.h
user@user-PC:~/bin/Kernel-android-goldfish-3.4$ make $correct_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
user@user-PC:~/bin/Kernel-android-goldfish-3.4$ make headers_check
CHK include/linux/version.h
UPD include/linux/version.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64.h
SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
HOSTCC arch/x86/tools/relocs
HOSTCC scripts/unifdef
INSTALL include/asm-generic (34 files)
INSTALL include/drm (15 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/linux/can (5 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/linux/hsi (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter (75 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/linux/netfilter_ipv4 (12 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/nfsd (5 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/linux/usb (10 files)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (377 files)
INSTALL include/mtd (5 files)
INSTALL include/rdma (6 files)
INSTALL include/scsi/fc (4 files)
INSTALL include/scsi (3 files)
INSTALL include/sound (10 files)
INSTALL include/video (3 files)
INSTALL include/xen (2 files)
INSTALL include (0 file)
INSTALL include/asm (58 files)
CHECK include/asm-generic (34 files)
CHECK include/drm (15 files)
/home/mumble/bin/Kernel-android-goldfish-3.4/usr/include/drm/exynos_drm.h:92: found __[us]{8,16,32,64} type without #include <linux/types.h>
CHECK include/linux/byteorder (2 files)
CHECK include/linux/caif (2 files)
CHECK include/linux/can (5 files)
CHECK include/linux/dvb (8 files)
CHECK include/linux/hdlc (1 files)
CHECK include/linux/hsi (1 files)
CHECK include/linux/isdn (1 files)
CHECK include/linux/mmc (1 files)
CHECK include/linux/netfilter/ipset (4 files)
CHECK include/linux/netfilter (75 files)
/home/mumble/bin/Kernel-android-goldfish-3.4/usr/include/linux/netfilter/xt_socket.h:14: userspace cannot reference function or variable defined in the kernel
CHECK include/linux/netfilter_arp (2 files)
CHECK include/linux/netfilter_bridge (18 files)
CHECK include/linux/netfilter_ipv4 (12 files)
CHECK include/linux/netfilter_ipv6 (11 files)
CHECK include/linux/nfsd (5 files)
CHECK include/linux/raid (2 files)
CHECK include/linux/spi (1 files)
CHECK include/linux/sunrpc (1 files)
CHECK include/linux/tc_act (7 files)
CHECK include/linux/tc_ematch (4 files)
CHECK include/linux/usb (10 files)
CHECK include/linux/wimax (1 files)
CHECK include/linux (377 files)
/home/mumble/bin/Kernel-android-goldfish-3.4/usr/include/linux/soundcard.h:1054: userspace cannot reference function or variable defined in the kernel
CHECK include/mtd (5 files)
CHECK include/rdma (6 files)
CHECK include/scsi/fc (4 files)
CHECK include/scsi (3 files)
CHECK include/sound (10 files)
CHECK include/video (3 files)
CHECK include/xen (2 files)
CHECK include (0 files)
CHECK include/asm (58 files)

user@user-PC:~/bin/Kernel-android-goldfish-3.4$ make $toolchains/sysroot/usr headers_install
make: Nothing to be done for '/opt/toolchains/NDK-x86-4.6-JB/sysroot/usr'.
CHK include/linux/version.h
make[1]: Nothing to be done for 'all'.
make[1]: Nothing to be done for 'relocs'.
user@user-PC:~/bin/Kernel-android-goldfish-3.4$

So as you see I got Nothing to be done for the last step

make: [COLOR="Red"]Nothing to be done[/COLOR] for '/opt/toolchains/NDK-x86-4.6-JB/sysroot/usr'.
CHK include/linux/version.h
make[1]: [COLOR="Red"]Nothing to be done[/COLOR] for 'all'.
make[1]: [COLOR="Red"]Nothing to be done[/COLOR] for 'relocs'.

[MENTION=5864662]moonbutt74[/MENTION] Do you think I did something wrong?