File: kernel-pkg.conf.5

package info (click to toggle)
kernel-package 7.04.potato.3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 736 kB
  • ctags: 243
  • sloc: perl: 1,629; makefile: 1,002; sh: 217
file content (317 lines) | stat: -rw-r--r-- 9,646 bytes parent folder | download
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
.\" Hey, Emacs! This is an -*- nroff -*- source file.
.\" Copyright (c) 1997 Manoj Srivastava <srivasta@debian.org>
.\"
.\" This is free documentation; 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.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual 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 the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" $Id: kernel-pkg.conf.5,v 1.17 2000/03/21 07:04:43 srivasta Exp $
.\"
.TH KERNEL\-PKG.CONF 5 "Jan  7 1997" "Debian" "Debian GNU/Linux manual" 
.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
.\" other parms are allowed: see man(7), man(1)
.SH NAME
kernel\-pkg.conf \- site wide configuration file for make\-kpkg
.SH SYNOPSIS
.I /etc/kernel\-pkg.conf
.SH "DESCRIPTION"
The file 
.I /etc/kernel\-pkg.conf
is actually a 
.BR Makefile
snippet included during the kernel packages build process, and hence
you may put any legal Makefile directive in that file (just make very
sure you know what you are doing).  
.PP
All the variables have reasonable default values, and maybe
over\-ridden on a per run or a per individual basis by using
environment variables.  Some of the variables can further be
over\-ridden by options to 
.B make\-kpkg.
.PP
At the moment, the user modifiable variables supported are:
.TP
.B maintainer:     
Local kernel-* package maintainer. Set up at package installation by
the 
.IR postinst.
Can be over\-ridden by the environment variable 
.B KPKG_MAINTAINER.
Please note that any apostrophes "'" shall have to be quoted like so:
maintainer = John O'\\''Brien. Yes, this is ugly, but this works.
.TP
.B email:          
The email address of that person.  Set up at package installation by
the 
.IR postinst.
Can be over\-ridden by the environment variable 
.B KPKG_EMAIL.
.TP
.B pgp:            
Name to search for in the pgp database 
.BI iff
separate modules (like pcmcia etc) are being built in
.IR /usr/src/modules/.
Can be over\-ridden by the environment variable 
.B PGP_SIGNATURE, 
and is over\-ridden (again) by the 
.IR \-\-pgpsign
option of
.B make-kpkg.
Defaults to 
.I maintainer.
(Optional)
.TP
.B debian:         
The Debian revision of the kernel packages. Can be over\-ridden
by the environment variable 
.B DEBIAN_REVISION, 
and is over\-ridden (again) by the 
.IR \-\-revision
option of
.B make-kpkg.
Defaults to 
.I 1.00.
(Optional)
.TP
.B image_in_boot:  
Set to True if you want the kernel image 
.I vmlinuz 
in 
.I /boot 
rather than the default 
.I /.  
Can be over\-ridden by the environment variable
.B IMAGE_IN_BOOT. 
defaults to undefined.
(Optional)
.TP
.B kimage:         
The kernel image type (i.e. zImage or bzImage). Can be
over\-ridden from the environment variable 
.B IMAGE_TYPE,  
and is over\-ridden (again) by the options
.IR \-\-zimage
or
.IR \-\-bzimage
of
.B make-kpkg.
Defaults to 
.I bzImage.
(Optional)
.TP
.B no_symlink
Whether to use symlinks to the 
.I image
file. Can be over\-ridden by the environment variable
.B NO_SYMLINK
Mutualy exclusive to 
.I reverse_symlink. 
Can be used with
.I image_in_boot. 
The image is placed in vmlinuz (instead of /boot/vmlinuz-X.X.XX). The
old vmlinuz is moved to vmlinuz.old unconditionally. (Normally, that
is only done if the version of the new image differes from the old
one). This restricts you to two images, unless you take additional
action and save copies of older images. This is for people who have
boot on a system that does not use symbolic links (and say, they use
loadlin as a boot loader). This is a Hack.
Defaults to  undefined (optional)
.TP
.B reverse_symlink
Whether to use reverse symlinks (that is, the real file is the one
without the version number, and the numberd version is the link) to the 
.I image
file. Can be over\-ridden by the environment variable
.B REVERSE_SYMLINK
Mutualy exclusive to 
.I no_symlink.
Can be used with
.I image_in_boot.
Just like 
.I no_symlink, 
except that the
/boot/vmlinuz-X.XX is sym linked to the real new
image, vmlinuz. This too restricts you to just two
images unless futher action is taken. The older
symlinks are left dangling. This is for people with
boot on umsdos, and who can't see the link in dos, but
do want to know the image version when in Linux. 
This is a Hack.
Defaults to  undefined (optional)
.TP
.B patch_the_kernel
This is an experts only variable. If set to YES (ENV
variable 
.B PATCH_THE_KERNEL 
overrides this), the build
process causes run-parts to be run over
.I /usr/src/kernel-patches/$(architecture)/apply 
and (hopefully) reverses the process during clean by
running run-parts over
.I /usr/src/kernel-patches/$(architecture)/unpatch. 
The special architecture all is used for arch independent patches.
.TP
.B use_saved_config
This is an experts only variable. If set to NO (ENV
variable 
.B USE_SAVED_CONFIG
overrides this), the file .config.save in the top level directoryis
ignored. 
.TP
.B root_cmd 
This should be set to a means of gaining super user  access (for
example, 
.I `sudo'
or 
.I`fakeroot')
as needed by 
.B dpkg-buildpackages's 
-r option. Ths is only relevant for the buildpackage taregt, when it
is used to call dpkg-buildpackage with the proper options. The
environment variable 
.B ROOT_CMD
over-rides this. The environment variable
.B UNSIGN_SOURCE
adds to this command an option to have dpkg-buildpackage not sign the
source, similarily, the environment variable
.B UNSIGN_CHANGELOG 
adds to this command an option to have dpkg-buildpackage not sign the
changelog.
.TP
.B do_clean	
Set to anything but YES, this shall forego the make clean done in the
kernel source tree after building the kernel image package. The
environment variable 
.B CLEAN_SOURCE
over-rides this.
.TP
.B make_libc_headers
This is meant to be used by the 
.I libc6 
maintianer, when he compiles
.I libc6, 
to also package up the corresponding headers. 
.B DO NOT SET THIS
unless you know what you are doing, since a mismatch between the
headers you package and 
.I libc6 
may well 
create a subtle instablity in all code compiled on your machine. You
have been warned. The environment variable 
.B MAKE_LIBC_HEADERS
over-rides this.
.TP
.B CONCURRENCY_LEVEL
If defined, this variable sets the concurrency leevl of make used to
compile the kenel and the modules set using 
.I -j
flags to the sub make in the 
.B build
target of 
.B make-kpkg.
Should be a (small) integer, if used.
.TP
.B ARCH_IN_NAME
If defined, this variable causes 
.B make-kpkg.
to use an extended name for the kernel image package by embedding the
subarchitecture  in the image name, so one could write a script to
create multiple subarchitectures one after the  other. 
.B Please note
that  only  the package 
.I name
is  affected,  not modules locations etc.
.TP
.B CONFDIR
This variable should be set to a directory which contains architecture
specific 
.I .config
files (look at
.I /usr/share/kernel-package/Config
for examples). This is useful for people who need to compile for
several architectures. Defaults to 
.I /usr/share/kernel-package/Config
.TP
.B IMAGE_DESTDIR
If you want the image to be stored in elsewhere than
.I /boot
set this variable to the dir where you want the image. This may be of
help to
.B loadlin
users.Defaults to 
.I /boot.
.TP
.B MODULE_LOC
Set this variable, either in the envoronment or in the config file, to
point to the location where the add-on modules are located. Defaults
to 
.I /usr/src/modules
.TP
.B CONFDIR
Set this variable, either in the envoronment or in the config file, to
point to the location where the kernel config files are
located. Defaults to 
.I /usr/share/kernel-package/Config
.TP
.B PATCH_DIR 
Set this variable, either in the envoronment or in the config file, to
point to the location where the add-on kernel patches are
located. Defaults to
.I /usr/src/kernel-patches/ARCHITECTURE
.TP
.B ALL_PATCH_DIR 
Set this variable, either in the envoronment or in the config file, to
point to the location where the add-on arch independent kernel patches
are located. Defaults to
.I /usr/src/kernel-patches/all
.PP
The value of a variable can be set so:
.IP a)
Defaults exist in the rules file. These are the values used if no
customization is done.
.IP b)
Variables can be set in the config file 
.I /etc/kernel-pkg.conf. 
These values over ride the defaults.
.IP c)
Variables can also be set by setting a corresponding envirnment
variable.  These values over ride the config file and the defaults.
.IP d)
Using 
.B make-kpkg 
options, or, if using the rules file directly, on 
command line 
.br
.BI "# xxx/rules DEBIAN_REVISION=2.0a kernel_image"
.br
This over rides all the above methods.
.SH FILES
The file described here is
.I /etc/kernel-pkg.conf.
.SH "SEE ALSO"
.BR make-kpkg (8),
.BR kernel-img.conf (5),
.BR make (1),
.B The GNU Make manual.
.SH BUGS
There are no bugs.  Any resemblance thereof is delirium. Really.
.SH AUTHOR
This manual page was written by Manoj Srivastava <srivasta@debian.org>,
for the Debian GNU/Linux system.