There are a lot of different tutorials on the web, each one giving a different method.
Here what I need when I want to build a new kernel:
- I want to build packages (here deb, so it is compatible for ubuntu and debian). I found methods that propose to only build vmlinux and initrd image and copy them not easily maintainable.
- I want to keep it simple regarding the configuration : copy what's work and modify explicitly what I need.
- I want debug symbols and kernel source, to install kprobes via the perf tool user interface.
Here the script I use to do what I want.
I did yet not found a way to build the linux-tools package (all precedent attempts failed).
If you know how to do it, please share it in the comments.
Happy kernel hacking!