kbuild: libraries and subdirectories

2005-09-08 Thread Budde, Marco
I have a large number of sources files, which I have to compile into one kernel module. Let's assume I have the following source organisation: main/ main_code.c lib1/ part1/ file_1_1_1.c part2/ file_1_2_1.c lib2/ part1/ file_2_1_1.c part2/ file_2_2

RE: kbuild & C++

2005-09-07 Thread Budde, Marco
Hi, > Yes, this is a general problem with integrated c/c++ stuff like > Win-Visual C++. not all Windows users do not know what they are doing :-). Speaking for myself: I am programming under Linux and Windows (with more than 10 years experience in C and C++) and I do know the differences. So ple

RE: kbuild & C++

2005-09-07 Thread Budde, Marco
Hi, > Do you have any *serious* intent to drop 10 *megabytes* worth of driver > into the kernel??? (Hint - *everything* in drivers/net/wireless *totals* > to only 2.7M). no, I don't. No every module has to go into the standard kernel :-). > A Linux device driver isn't the same thing as a Windows

RE: kbuild & C++

2005-09-07 Thread Budde, Marco
Hi, >> That would be because the kernel is written in *C* (and some asm), *not* C++. I cannot see the connection. At the end everything gets converted to assembler/opcode. In the user space I can mix C and C++ code without any problems, why should this not be possible in the kernel mode? >> Ther

kbuild & C++

2005-09-06 Thread Budde, Marco
Hi, for one of our customers I have to port a Windows driver to Linux. Large parts of the driver's backend code consists of C++. How can I compile this code with kbuild? The C++ support (I have tested with 2.6.11) of kbuild seems to be incomplete / not working. cu, Marco Please send me a CC as

Stripping in module

2005-07-24 Thread Budde, Marco
Hi, at the moment I am packaging a Linux module as an RPM archive. Therefor I would like to remove some of the not exported/needed symbols (like e.g. static functions or constants) from the Linux module. What is the best way to do this with v2.6. I have tried e.g. to remove all symbols starting