Results 1 to 5 of 5
Hello,
I included linux/firmware.h file in my code:
#define __KERNEL__
#include <linux/firmware.h>
Eclipse couldn't see it, so I configured paths like this:
gcc c compiler - directories - add (same ...
- 09-08-2007 #1Just Joined!
- Join Date
- Dec 2006
- Posts
- 26
#include linux/*.h in eclipse
Hello,
I included linux/firmware.h file in my code:
#define __KERNEL__
#include <linux/firmware.h>
Eclipse couldn't see it, so I configured paths like this:
gcc c compiler - directories - add (same as -I atribute for gcc) /usr/src/linux-headers-2.6.20-16-generic/include/
Problem is that although it can see firmware.h file, it is missing dependencies like linux/module.h or linux/types.h included in file linux/firmware.h and build command finishes with plenty of errors like:
/usr/src/linux-headers-2.6.20-16-generic/include/asm/processor.h:82: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/usr/src/linux-headers-2.6.20-16-generic/include/linux/jiffies.h:225:31: error: division by zero in #if
Any idea how to fix it?
Thanks for every answer,
Vita
- 09-08-2007 #2Just Joined!
- Join Date
- Dec 2006
- Posts
- 26
more info
One more thing.
I am not developing kernel module. I just need to get firmware structure by calling request_firmware function (both defined in linux/firmware.h). So if you have any other idea how to do it, it would help me...
Vita
- 02-03-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 2
Solution? :)
Did you ever discover how to fix this? I have the exact same problem now.
- 02-04-2008 #4Just Joined!
- Join Date
- Dec 2006
- Posts
- 26
Hey,
it seems not to work in eclipse. I solved it by switching to kdevelop. It offers to create new project as a kernel module. May be it could work in eclipse, but you would have to create the project in /usr/src/linux-headers-2.6.20-16-generic/ directory .....
- 02-05-2008 #5Just Joined!
- Join Date
- Feb 2008
- Posts
- 2
Cheers. Still doesn't work for me (using vim), but I see there's new kernel headers out now, mayby that'll do the trick...


Reply With Quote