Am Sonntag, den 11.07.2021 um 21:17:50 Uhr +0800 schrieb Dongliang Mu 
<mudonglianga...@gmail.com>:
> [...]
> Thanks. There is only a file - *.ebuild file in this package. From the
> package, I did not find out what .config file it uses. It seems this
> script uses the config file of current system.

Hi,

look here: https://github.com/mgorny/gentoo-kernel-config

In names of gentoo "packages" the -bin suffix indicates that it is a pre-built,
binary package, so the maintainers use a configuration, build the kernel
and upload everything as a binary package. Portage than installs the binary
package when you would call 'emerge --ask gentoo-kernel-bin'.

Some hints for reading ebuilds and finding stuff:

The ebuilds are basically bash scripts, and to find functions called inside each
ebuild you can search in the eclasses dir in
https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass
while you can find (most) of the eclass names from the line starting with
'inherit'.

To find e.g. the link to the config I used the following workflow. Maybe it'll
be of usage for you, too:
https://packages.gentoo.org -> gentoo-kernel -> Git repository browser
  -> choose the package version -> link below:
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-kernel/gentoo-kernel/gentoo-kernel-5.12.15.ebuild#n20

Kind regards,
Nils

Reply via email to