I’m building a custom Ubuntu kernel and have modified one of the source files. When I issue the build command:
NOEXTRAS=1 skipabi=true skipmodule=true fakeroot debian/rules binary-insp8600
it rebuilds the debs, but none of the modified source files are rebuilt.
What’s up? Do I have to do a completely clean rebuild every time I modify a source file?
That doesn’t make any sense.
The file modified was ./init/main.c.
As a note binary-insp8600 is a custom flavor I created for my Inspiron 8600 laptop.
debian/rulesis not the kernel Makefile. It has no way of knowing the file you edited is a dependency of the final kernel, since these dependencies are in the real Makefile.In fact, I would expect the
debian/rulesbuildtarget (the one which actually does the compilation) to depend only on a “flag” file it creates after finishing the build. If that is the case, a simple workaround would be to remove that “flag” file; it would then compile everything again (by calling the kernel’sMakefile, which would know how to do a partial rebuild. Of course, that’s assuming thebuildtarget does not try to be tidy and do amake cleanor equivalent…)(I did not look at the
debian/rulesfor the package you are using, so I might be wrong, but at least it is a start.)