I'd like to make sure that I'm not misunderstood:
The source code that I'm building is based on kernel 2.4. The end result of the compilation is a Debian system with all the additional product-specific drivers and applications.
The compilation environment, on the other hand, is based on kernel 2.6, as I wrote above. As I saw in several articles, KDB requires the two patches kdb-v4.2-2.4.20-common-1.bz2 and kdb-v4.2-2.4.20-i386-1.bz2. But patching them, or even their newer versions (which would be more relevant to the appropriate kernel), to the compilation environment makes no sense to me.
Thanks in advance for any help that you can give...