-
Notifications
You must be signed in to change notification settings - Fork 1
/
configk.1
131 lines (106 loc) · 3.2 KB
/
configk.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
\"
\" configk: an easy way to edit kernel configuration files and templates
\" Copyright (C) 2023-2024 Red Hat Inc.
\"
\" This program is free software; you can redistribute it and/or modify
\" it under the terms of the GNU General Public License as published by
\" the Free Software Foundation; either version 2 of the License, or
\" (at your option) any later version.
\"
\" This program is distributed in the hope that it will be useful,
\" but WITHOUT ANY WARRANTY; without even the implied warranty of
\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\"
\" See COPYING file or <http://www.gnu.org/licenses/> for more details.
\"
\".ll 6i
\".nr LL 6i
.TH configk 1
.SH NAME
\fBconfigk\fR - an easy way to edit kernel configuration files and templates
.SH SYNOPSIS
.TP 5
\fBconfigk\fR [\fIOPTIONS\fR] <source-directory>
.SH DESCRIPTION
.PP
\fBconfig-kernel\fR program helps to edit kernel configuration (.config) and
template files. It recursively reads the Kconfig files from a given source
directory and builds a tree structure of CONFIG options. This tree can be
traversed to query option's attributes or set/reset them. It can also be
used to validate kernel's '.config' file by checking option's value and
dependencies.
\fBconfig-kernel\fR should work for all projects that use Kconfig files and
its syntax to define configuration options. A typical CONFIG entry in a
Kconfig file begins with a 'config' keyword on a new line and its attributes
follow on subsequent lines indented by at least the tab (\\t) character:
config <OPTION_NAME>
<\\t>Attribute-1
<\\t>Attribute-2
...
<\\t>Attribute-n
User can query, enable, disable or toggle CONFIG options via command line
switch or an $EDITOR program.
.SH OPTIONS
\fBconfigk\fR program supports following options
.TP
.B \-a \-\-srcarch <arch>
source architecture tree to read/follow, default: x86
.TP
.B \-c \-\-check <file>
check configs against the source tree
.TP
.B \-C \-\-config
show output as a config file
.TP
.B \-d \-\-disable <option>
disable config option
.TP
.B \-e \-\-enable <option>[=val]
enable config option with a given value
.TP
.B \-E \-\-edit <file>
edit config file with an $EDITOR program, default: vi
.TP
.B \-g \-\-grep <[s:]string>
show options with matching attribute.
Search the given <string> in the 'depends on' attribute value of an option.
If <string> begins with the 's:' prefix, then search the 'select' attribute
of an option.
.TP
.B \-h \-\-help
show help
.TP
.B \-i \-\-in\-place <file>
edit config file in place
.TP
.B \-s \-\-show <option>
show a config option entry
.TP
.B \-t \-\-toggle <option>
toggle an option between y & m
.TP
.B \-v \-\-version
show version
.TP
.B \-V \-\-verbose
show verbose output
.SH ENVIRONMENT
.PP
\fBconfigk\fR reads following environment variables
.TP
.B EDITOR
Editor program to use to open a file, default: vi
.TP
.B SRCARCH
Source architecture tree to read/follow, default: x86
.TP
.B TMPDIR
Directory where temporary files are created, default: /tmp
.SH BUG(s)
.PP
Please open an issue at: https://github.com/pjps/config-kernel/issues
.SH SEE
.PP
https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html
.SH AUTHOR
Prasad Pandit <\[email protected]\fR>