NeoJi
NeoJi

Reputation: 245

compile single kernel file

I am very new to system kernel development. I am using Ubuntu 11.10, and trying to make a new system call. I wonder if there is any way to compile only a single file, which I am working on, instead of compiling the whole kernel.

This is the command I am using to compile the kernel.

fakeroot make-kpkg --initrd --append-to-version=version01 kernel-image kernel-headers

Upvotes: 1

Views: 1333

Answers (1)

Fred
Fred

Reputation: 17095

I've added system calls before. AFAIK, you need to compile the entire kernel because the system call table is static within the kernel.

However, when you hit make on the kernel, the kernel building system should workout the dependencies and only compile the files which need to be compiled.

Upvotes: 2

Related Questions