kernel build fails to build from custom .config file

Hi All,
         I m tring to build kernel for devkit8000 with the wifi driver
configured for WF8000-U module. I edited the .config for the
devkit8000 with command created from
$ make ARCH=arm devkit8000_defconfig # build for devkit8000

and then edited the .config file and

CONFIG_STAGING=y
# CONFIG_STAGING_EXCLUDE_BUILD is not set
CONFIG_RT2870=y
CONFIG_RT3070=y
# CONFIG_VIDEO_GO7007 is not set
# CONFIG_USB_IP_COMMON is not set
# CONFIG_W35UND is not set
# CONFIG_PRISM2_USB is not set
# CONFIG_ECHO is not set
# CONFIG_OTUS is not set
# CONFIG_COMEDI is not set
# CONFIG_ASUS_OLED is not set
# CONFIG_ALTERA_PCIE_CHDMA is not set
# CONFIG_RTL8187SE is not set
# CONFIG_RTL8192SU is not set
# CONFIG_RTL8192E is not set
# CONFIG_INPUT_MIMIO is not set
# CONFIG_TRANZPORT is not set

       I edited rt2870 and rt3070 to yes and tried to built for my
wifi driver and saved my .config file....
when i run
$ make ARCH=arm CROSS_COMPILE=../beagle-eclair/prebuilt/linux-x86/
toolchain/arm-eabi-4.4.0/bin/arm-eabi- uImage
the .config file gets recreated and my staging save gets vanished...
is this the correct way to configure my wifi driver or any other way
to build my WF8000-U module
pls help me in this issue...
Thank you...

I only build my kernel in a native environment so I don’t know if my suggestions are helpful or not.

I generally don’t recommend editing the .config file by hand. After you’ve done that you should probably run “make oldconfig” to standardize the file again. It will prompt for any options that are not defined properly. I generally like to use the “make menuconfig” option to be able to dig through the options to change in the kernel.

Each time I upgrade my kernel to a new release, I import my old .config file into the source tree and run “make oldconfig” and it prompts me for the changes from the older kernel. I can get a copy of my current running config by using the command “zcat /proc/config.gz >.config”.

Wim.