Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.32k stars 166 forks source link

Debian/Ubuntu builds don't generate linux-tools packages #624

Open ferrreo opened 1 year ago

ferrreo commented 1 year ago

Hi,

Working great generally but the debian/ubuntu builds don't generate the linux-tools package/.deb so tools like cpupower and turbostat don't work.

Any chance this could be added?

Thanks

AdelKS commented 1 year ago

Out of tree modules should build just fine through dkms (like Nvidia).

can you give what cpupower complains about? Maybe it's a Deb package that has hard coded dependency on the package name you are talking about.

ferrreo commented 1 year ago

WARNING: cpupower not found for kernel 6.0.0-tkg

cpupower is part of the kernel code in the /tools folder of the kernel source it's not out of tree.

On debian/ubuntu it is usually installed via the linux-tools package (e.g linux-tools-5.19.0-19)

It should get generated as part of the kernel build but I presume tkg is missing something that debian/ubuntu normally does to generate this.

AdelKS commented 1 year ago

cpupower is part of the kernel code in the /tools folder of the kernel source it's not out of tree.

I mixed it up with zenpower, so it's simply a kernel module, or is it supposed to be built-in? okay, something is definitely off because it should be built and installed, are you using modprobed-db by any chance ?

On debian/ubuntu it is usually installed via the linux-tools package (e.g linux-tools-5.19.0-19)

For tkg, modules aren't split into different packages and the main package should contain everything.

ferrreo commented 1 year ago

They are not modules but user-space tools included with the kernel source, that's why they get packaged in a separate package.

See: https://www.mankier.com/package/kernel-tools for docs on the tools as kernel.org seems to be missing the docs.

AdelKS commented 1 year ago

Okay I understand, and the package kernel-tools is tied to the specific kernel version I assume (which makes sense).

Edit: Could you find the script Ubuntu uses to generate the package ? Maybe we can just use that.