Was looking for a kernel regression on my laptop (likely caused by https://bugzilla.kernel.org/show_bug.cgi?id=214455) and so was looking for C files in /usr/src/linux-5.14.6-gentoo-dist, but the only ones availables are in tools and scripts folders, no other kernel code found. Exemple for the driver I was looking for : $ ls -al /usr/src/linux-5.14.6-gentoo-dist/net/qrtr/ total 12K drwxr-xr-x 2 root root 37 Sep 19 23:03 . drwxr-xr-x 71 root root 4096 Sep 19 23:03 .. -rw-r--r-- 1 root root 1082 Aug 30 00:04 Kconfig -rw-r--r-- 1 root root 246 Aug 30 00:04 Makefile Yep, that's all. Reproducible: Always
Created attachment 740268 [details] emerge --info
The build log from linux-5.14.6-gentoo-dist would be useful if you could rebuild it.
Created attachment 740271 [details] equery f gentoo-kernel
That's by design. Installing sources for an already-built kernel wastes a lot of space. If you want sources, use gentoo-sources.
(or just use ebuild(1) to play with the ebuild, and work on the build tree directly)
(In reply to Michał Górny from comment #4) > That's by design. Installing sources for an already-built kernel wastes a > lot of space. If you want sources, use gentoo-sources. Ugh, duh. Too tired.
(In reply to Michał Górny from comment #4) > That's by design. Installing sources for an already-built kernel wastes a > lot of space. If you want sources, use gentoo-sources. I see, I should have read the eclass. Thanks for explanations.