KCONF(9) Hyra Kernel Developer’s Manual KCONF(9)
NAME
kconf - Hyra kernel configuration
SYNOPSIS
GENERIC configuration: sys/arch/<arch>/conf/GENERIC
Kconf sources: tools/kconf/
DESCRIPTION
Hyra provides the kconf format for kernel configuration by allowing the user to create defines that represent yes/no options and fixed values.
Running kconf on a configuration file results in define flags (-D__KEY=val) to be generated so that they may be passed to the compiler of choice.
The option keyword allows users to define an option that can either be yes or no. For example, the following may be used to create an option "FOO" to be set to "yes":
option FOO yes
This will be given to the kernel as __FOO, for yes/no options the value of either 1 (yes) or 0 will be given.
Similarly, a user may create a define that holds a fixed value by using the setval keyword.
For example, the following may be used to create an option "MEOW" set to 0xCA7F00D:
setval MEOW 0xCA7F00D
These options can be read within the kernel by checking if the define exists and potentially falling back to a default value if not. This example shows how "MEOW" can be read:
#if
defined(__MEOW) /* Option is prefixed with "__" */
#define MEOW __MEOW
#else
#define MEOW 0
#endif /* __MEOW */
AUTHORS
Ian Moffett <ian@osmora.org>
Hyra Jun 7 2025 Hyra