Hello,

I am trying to BUILD android-x86 and kernel from source code.
As all we know, android has linux kernel.
I am trying to compile kernel 3.4.
I made my own my_defconfig kernel configuration at the kernel/arch/x86/configs/ folder.
The kernel was build successfully:
make -j4 iso_img TARGET_KERNEL_CONFIG:=my_defconfig

I configure the system as follows:
./configure --with-linux=/home/zoi/android-x86/android-x86_kitkat/out/target/product/x86/obj/kernel --host=i686-linux-android CC=i686-linux-android-gcc CPPFLAGS="-I/home/zoi/android-ndk-r9d/platforms/android-19/arch-x86/usr/include/ -I/home/zoi/android-x86/android-x86_kitkat/bionic/libc/include/" CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4" LDFLAGS="-Bdynamic -Wl,-T,/home/zoi/android-ndk-r9d/toolchains/x86-4.6/prebuilt/linux-x86_64/i686-linux-android/lib/ldscripts/elf_i386.x -Wl,--entry=main,-dynamic-linker=/system/bin/linker -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,--no-undefined -Wl,-rpath-link=/home/zoi/android-ndk-r9d/platforms/android-19/arch-x86/ -L/home/zoi/android-ndk-r9d/platforms/android-19/arch-x86/ -L/home/zoi/android-x86/android-x86_kitkat/out/target/product/x86/obj/lib -nostdlib /home/zoi/android-ndk-r9d/platforms/android-19/arch-x86/usr/lib/crtend_android.o /home/zoi/android-ndk-r9d/platforms/android-19/arch-x86/usr/lib/crtbegin_dynamic.o" LIBS="-lc /home/zoi/android-ndk-r9d/toolchains/x86-4.6/prebuilt/linux-x86_64/lib/gcc/i686-linux-android/4.6/libgcc.a -lm -llog -lgcc -lcrypto -lssl"
But, when i do
ARCH=x86 CROSS_COMPILE=i686-linux-android- make

i get the following error:

/kernel/arch/x86/Makefile:113: CONFIG_X86_X32 enabled but no binutils support
CC [M] /home/zoi/openvswitch-1.11.0/datapath/linux/actions.o
/home/zoi/openvswitch-1.11.0/datapath/linux/actions.c:1:0: error: code model kernel does not support PIC mode
/home/zoi/openvswitch-1.11.0/datapath/linux/actions.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
make[7]: *** [/home/zoi/openvswitch-1.11.0/datapath/linux/actions.o] Error 1

Any tip?

Thanks in advance,
Vasiliou Zoi