i tried a few IDEs on linux to develop driver in C. QtCreator suits best for me. I need the IDE just for the intellisence (codecompletion, jump to functions on click.. etc.)
A better solution is to import the linux source with "Import Existing Project". Add all the files your ARCH requires. Once created edit the .includes file and remove all the include dirs listed.
Then just add the few that linux uses.
include
arch//include
arch//mach-/include
arch///include
Now edit .config, this is the best bit. Add something like the following.
#define __KERNEL__
#define __arm__
#define __LINUX_ARM_ARCH__ 7
#include
It's the #include that brings in all of the autoconf stuff you mostly want.
Do a make V=1 to see the standard defines that the Kernel build uses.
Also if you're using a cross compiler, set up as usual in "Build & Run" Compilers tab.