Solved Where are located the opt_*.h files?

JMOR

Member

Reaction score: 1
Messages: 20

Hello,

I am looking at building my custom kernel.

In order to set the proper options in MYKERNEL configuration file, for example the CPU type parameter: 'cpu'. The manual page config(5) says to look in the file sys/conf/options.amd64 (I have a AMD Ryzen 9 5900X) for the possible options for CPU type. In said file (options.amd64), there is the line:
Code:
HAMMER                  opt_cpu.h
Which I assume means, HAMMER is the current default option, go look for alternatives in opt_cpu.h.

The problem is, I can't find such opt_cpu.h file in my system. More generally, in options.amd64 there are references to a lot of opt_*.h files. None of which I seem to have in my system.

Where is that file (those files)? How can I get them?

Thanks.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,331
Messages: 38,847

In order to set the proper options in MYKERNEL configuration file, for example the CPU type parameter: 'cpu'.
There is only one option for AMD64; that's HAMMER.
More genereally, in options.amd64 there are references to a lot of opt_*.h files. None of which I seem to have in my system.
They're generated at build time: ls -l /usr/obj/usr/src/amd64.amd64/sys/GENERIC/opt_*.h
 
OP
JMOR

JMOR

Member

Reaction score: 1
Messages: 20

Got it, thanks.

I misunderstood the content of the file sys/conf/options.<machine>
 
Top