Kernel's configuration uses ruby templates for producing C code(added to generator.rb). Added 'kernel' argument to ruby generator in Linux kernel module's makefile.