I rebuild the kernel based on the git sources. These are the steps that I take:
- git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git
- cd ubuntu-focal
- vi debian.master/changelog
- apply patches
- fakeroot debian/rules clean binary-headers binary-generic
If I then apply another patch and want to compile the same version again, I get an error because certain folders are not empty. I can issue 'fakeroot debian/rules clean' to solve that, but then I need to compile the whole kernel.
Is there a way to recompiling only the changed files and build the debs based on that? It seems a trivial thing I just haven't figured out yet.
dch -i
and compile. There should be no problems. I always do it this way. – Pilot6 Feb 24 '20 at 21:51mv: cannot move '/git/linux-stable-5.5/debian/linux-modules-5.5.3-050503-generic/lib/modules/5.5.3-050503-generic/kernel' to '/git/linux-stable-5.5/debian/linux-modules-extra-5.5.3-050503-generic/lib/modules/5.5.3-050503-generic/kernel/kernel': Directory not empty debian/rules.d/2-binary-arch.mk:113: recipe for target 'install-generic' failed make: *** [install-generic] Error 1 – Sam Van den Eynde Feb 25 '20 at 23:51