[gentoo-user] Re: Inquiry about gentoo kernel configuration

2021-07-13 Thread Grant Edwards
On 2021-07-13, Nikos Chantziaras  wrote:

>>> You can use the one shipped in the sys-kernel/gentoo-kernel-bin package.
>> 
>> 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.
>
> It ships its own .config. The easiest way here is to simply install 
> gentoo-kernel-bin. After you get a system running that kernel, build 
> your own, basing your new config on the existing one.

But remember: real Gentooers don't use modules or initrds.

;)

-- 
Grant Edwards   grant.b.edwardsYow! Oh my GOD -- the
  at   SUN just fell into YANKEE
  gmail.comSTADIUM!!




[gentoo-user] Re: Inquiry about gentoo kernel configuration

2021-07-13 Thread Nikos Chantziaras

On 11/07/2021 16:17, Dongliang Mu wrote:

On Sun, Jul 11, 2021 at 1:54 AM Nikos Chantziaras  wrote:

On 10/07/2021 12:15, Dongliang Mu wrote:

I am a newbie to Gentoo. For Debian, I can get configuration files
from Debian packages. I wonder if possible to get the kernel
configuration files of Gentoo.


You can use the one shipped in the sys-kernel/gentoo-kernel-bin package.


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.


It ships its own .config. The easiest way here is to simply install 
gentoo-kernel-bin. After you get a system running that kernel, build 
your own, basing your new config on the existing one.





Re: [gentoo-user] Re: Inquiry about gentoo kernel configuration

2021-07-11 Thread Hayley
On Sun, 2021-07-11 at 21:17 +0800, Dongliang Mu wrote:
> On Sun, Jul 11, 2021 at 1:54 AM Nikos Chantziaras 
> wrote:
> > 
> > On 10/07/2021 12:15, Dongliang Mu wrote:
> > > Hi Gentoo users,
> > > 
> > > I am a newbie to Gentoo. For Debian, I can get configuration
> > > files
> > > from Debian packages. I wonder if possible to get the kernel
> > > configuration files of Gentoo.
> > 
> > You can use the one shipped in the sys-kernel/gentoo-kernel-bin
> > package.
> > 
> 
> 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.
> 
> > 
> 

sys-kernel/gentoo-kernel/gentoo-kernel-5.10.38.ebuild suggests that
gentoo-kernel-bin is based off of fedora's kernel config.

Hayley




Re: [gentoo-user] Re: Inquiry about gentoo kernel configuration

2021-07-11 Thread Nils Freydank
Am Sonntag, den 11.07.2021 um 21:17:50 Uhr +0800 schrieb Dongliang Mu 
:
> [...]
> 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



Re: [gentoo-user] Re: Inquiry about gentoo kernel configuration

2021-07-11 Thread Dongliang Mu
On Sun, Jul 11, 2021 at 1:54 AM Nikos Chantziaras  wrote:
>
> On 10/07/2021 12:15, Dongliang Mu wrote:
> > Hi Gentoo users,
> >
> > I am a newbie to Gentoo. For Debian, I can get configuration files
> > from Debian packages. I wonder if possible to get the kernel
> > configuration files of Gentoo.
>
> You can use the one shipped in the sys-kernel/gentoo-kernel-bin package.
>

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.

>



[gentoo-user] Re: Inquiry about gentoo kernel configuration

2021-07-10 Thread Nikos Chantziaras

On 10/07/2021 12:15, Dongliang Mu wrote:

Hi Gentoo users,

I am a newbie to Gentoo. For Debian, I can get configuration files
from Debian packages. I wonder if possible to get the kernel
configuration files of Gentoo.


You can use the one shipped in the sys-kernel/gentoo-kernel-bin package.