How to compile specific kernel directory

News and discussion about development of the Debian OS itself

How to compile specific kernel directory

Postby araneus » 2015-11-09 11:30

As the title says, is there a way to compile specific directory (not a module, just the directory)?
Takes so many hours to compile whole kernel with my old computer, so it would be nice to do check compiles every now and then for the changed directories only.

Lets say I modify files in drivers/tty/vt/ directory and want to do a test compile for this directory only.
Is that possible? Or do I have to compile the whole kernel once first and after that I can compile specific directories again after modifying them?

These do not work in this case:
cd drivers/tty/vt && make
make -C drivers/tty/vt

I am using Debian Jessie (686) with packages: kernel-package linux-source-3.16

Posts: 1
Joined: 2015-11-09 11:17

Re: How to compile specific kernel directory

Postby GarryRicketson » 2015-11-10 05:13

I don't know if this will help you, it might
"What we expect you have already Done"

Before doing anything, read the Debian documentation:
Debian Documentation
How to ask the smart way
Debian Foro Español
For the Birds
User avatar
Posts: 4725
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Return to Debian Development

Who is online

Users browsing this forum: No registered users and 2 guests