kdb on debian linux

Hi to all,
i am working as linux driver developer, I wanted to use kdb on debain-linux-2.6.18
when i tried to add the pathes i was getting .rej
can please help me how to add the patches to my kernel tree.