- First download the autoconf-to-eclipse.py script and place somewhere in your path
- Create a new project of the type C project and select Makefile project/Other toolchain. Uncheck the Use default location checkbox, then enter the path to the kernel source:

- Click next and select Advanced options
- Select the C/C++ Build tab and uncheck Automated discovery of paths and symbols:

- Select the C/C++ General tab and select no indexer

- Remove the default includes from all languages and add kernel includes so that you have something like this:

When adding includes, select Add to all languages and select a workspace path:
- Select the Symbols tab and add the __KERNEL__ symbol:

Again, add to all languages:
- Press OK to return to the main eclipse window
- Exclude non-needed architectures and includes by selecting paths in the project window, right clicking and selecting Exclude from build...:

Do the same for unneeded includes - Run autoconf-to-eclipse.py in the kernel directory, updating the eclipse project files:

- Refresh the project in the project window and enter the project properties again. Enable the indexer:

- Press OK
Eclipse will now index the kernel and after this you should be set to go. Indexing will obviously take some time, but it's saved between sessions so you can safely exit eclipse.