Merge remote-tracking branch 'origin/bug-405495'
[genkernel.git] / genkernel.conf
1 # Configuration file for genkernel
2 # $Id$
3
4 # This file is sourced by genkernel at startup and determines which options
5 # we will be using to compile our kernel.  The order of precidence is simple,
6 # with the internal settings being least important, configuration file
7 # settings next, and command line options being most important.
8
9 # =========Common Command Line Option Defaults=========
10
11 # Should we install to $BOOTDIR?  Default is "no" because genkernel is used in
12 # catalyst and stage building.
13 #INSTALL="yes"
14
15 # Run 'make oldconfig' before compiling this kernel?
16 OLDCONFIG="yes"
17
18 # Run 'make menuconfig' before compiling this kernel?
19 MENUCONFIG="no"
20
21 # Run 'make clean' before compilation?
22 # If set to NO, implies MRPROPER WILL NOT be run
23 # Also, if clean is NO, it won't copy over any configuration
24 # file, it will use what's there.
25 CLEAN="yes"
26
27 # Run 'make mrproper' before configuration/compilation?
28 MRPROPER="yes"
29
30 # Override the arch detection?
31 #ARCH_OVERRIDE="x86"
32
33 # Mount BOOTDIR automatically if it isn't mounted?
34 MOUNTBOOT="yes"
35
36 # Make symlinks in BOOTDIR automatically?
37 #SYMLINK="no"
38
39 # Save the new configuration in /etc/kernels upon
40 # successfull compilation
41 SAVE_CONFIG="yes"
42
43 # Use Color output in Genkernel?
44 USECOLOR="yes"
45
46 # Clear build cache dir
47 #CLEAR_CACHE_DIR="yes"
48
49 # Clear all tmp files and caches after genkernel has run
50 #POSTCLEAR="1"
51
52 # Genkernel uses an independent configuration for MAKEOPTS, and does not source
53 # /etc/make.conf . You can override the default setting by uncommenting and
54 # tweaking the following line. Default setting is set up by
55 # ${GK_SHARE}/${ARCH_OVERRIDE}/config.sh . The recommended value for -j
56 # argument is: <number of processors>*<number of cores per processor>+1
57 #MAKEOPTS="-j2"
58
59 # Add in LVM support from static binaries if they exist on the system, or
60 # compile static LVM binaries if static ones do not exist.
61 #LVM="no"
62
63 # Add in Luks support. Needs sys-fs/cryptsetup with -dynamic installed.
64 #LUKS="no"
65
66 # Add in GnuPG support
67 #GPG="no"
68
69 # Add DMRAID support.
70 #DMRAID="no"
71
72 # Include (or suppresses the inclusion of) busybox in the initrd or initramfs.
73 # If included, busybox is rebuilt if the cached copy is out of date.
74 #BUSYBOX="yes"
75
76 # Includes mdadm/mdmon binaries in initramfs.
77 # Without sys-fs/mdadm[static] installed, this will build a static mdadm.
78 #MDADM="no"
79
80 # Specify a custom mdadm.conf.
81 # By default the ramdisk will be built *without* an mdadm.conf and will auto-detect
82 # arrays during bootup.  Usually, this should not be needed.
83 #MDADM_CONFIG="/etc/mdadm.conf"
84
85 # Add Multipath support.
86 #MULTIPATH="no"
87
88 # Add iSCSI support.
89 #ISCSI="no"
90
91 # Include support for unionfs
92 #UNIONFS="1"
93
94 # Enable copying of firmware into initramfs
95 #FIRMWARE="no"
96 # Specify directory to pull from
97 #FIRMWARE_DIR="/lib/firmware"
98 # Specify specific firmware files to include. This overrides FIRMWARE_DIR
99 #FIRMWARE_FILES=""
100
101 # Enable disklabel support (copies blkid to initrd)
102 DISKLABEL="yes"
103
104 # Add new kernel to grub?
105 #BOOTLOADER="grub"
106
107 # Enable splashutils in early space (initrd). Default is "no".
108 #SPLASH="yes"
109
110 # Use this splash theme. If commented out - the "default" name theme is used.
111 # Also, SPLASH="yes" needs to be enabled for this one to one work.
112 # This supersedes the "SPLASH_THEME" option of /etc/conf.d/splash (in early space).
113 #SPLASH_THEME="gentoo"
114
115
116 # =========Keymap Settings=========
117 #
118 # Force keymap selection at boot
119 #DOKEYMAPAUTO="yes"
120
121
122 # Disables keymap selection support
123 #KEYMAP="0"
124
125
126 # =========Low Level Compile Settings=========
127 #
128 # GNU Make to use for kernel.  See also the --kernel-make command line option.
129 #KERNEL_MAKE="make"
130
131 # Compiler to use for the kernel (e.g. distcc).  See also the --kernel-cc
132 # command line option.
133 #KERNEL_CC="gcc"
134
135 # Assembler to use for the kernel.  See also the --kernel-as command line
136 # option.
137 #KERNEL_AS="as"
138
139 # Linker to use for the kernel.  See also the --kernel-ld command line option.
140 #KERNEL_LD="ld"
141
142 # GNU Make to use for the utilities.  See also the --utils-make command line
143 # option.
144 #UTILS_MAKE="make"
145
146 # Compiler to use for the utilities (e.g. distcc).  See also the --utils-cc
147 # command line option.
148 #UTILS_CC="gcc"
149
150 # Assembler to use for the utilities.  See also the --utils-as command line
151 # option.
152 #UTILS_AS="as"
153
154 # Linker to use for the utilities.  See also the --utils-ld command line
155 # option.
156 #UTILS_LD="ld"
157
158
159 # Common prefix of cros compile commands
160 #UTILS_CROSS_COMPILE="x86_64-pc-linux-gnu"
161
162
163 # Value of CROSS_COMPILE utils variable
164 # during kernel compilation
165 #KERNEL_CROSS_COMPILE="x86_64-pc-linux-gnu"
166
167
168 # =========GENKERNEL LOCATION CONFIGURATION============
169 # Variables:
170 #   %%ARCH%%  - Final determined architecture
171 #   %%CACHE%% - Final determined cache location
172
173 # Set genkernel's temporary work directory.  Default is /var/tmp/genkernel
174 #TMPDIR="/var/tmp/genkernel"
175
176 # Set the boot directory, default is /boot
177 #BOOTDIR="/boot"
178
179 # Default share directory location
180 GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
181
182 # Location of the default cache
183 CACHE_DIR="/var/cache/genkernel"
184 # Location of DISTDIR, where our source tarballs are stored
185 DISTDIR="${CACHE_DIR}/src"
186 # Log output file
187 LOGFILE="/var/log/genkernel.log"
188 # Debug Level
189 LOGLEVEL=1
190
191 # =========COMPILED UTILS CONFIGURATION============
192 #
193 # Default location of kernel source
194 DEFAULT_KERNEL_SOURCE="/usr/src/linux"
195 # Default kernel config (only use to override using
196 # arch/%%ARCH%%/kernel-config-${VER}.${PAT} !)
197 #DEFAULT_KERNEL_CONFIG="${GK_SHARE}/arch/%%ARCH%%/kernel-config"
198
199 # Specifies a user created busybox config
200 #BUSYBOX_CONFIG="/path/to/file"
201
202 BUSYBOX_VER="VERSION_BUSYBOX"
203 BUSYBOX_SRCTAR="${DISTDIR}/busybox-${BUSYBOX_VER}.tar.bz2"
204 BUSYBOX_DIR="busybox-${BUSYBOX_VER}"
205 BUSYBOX_BINCACHE="%%CACHE%%/busybox-${BUSYBOX_VER}-%%ARCH%%.tar.bz2"
206 #BUSYBOX_APPLETS="[ ash sh mount uname echo cut cat"
207
208 LVM_VER="VERSION_LVM"
209 LVM_DIR="LVM2.${LVM_VER}"
210 LVM_SRCTAR="${DISTDIR}/LVM2.${LVM_VER}.tgz"
211 LVM_BINCACHE="%%CACHE%%/LVM2.${LVM_VER}-%%ARCH%%.tar.bz2"
212
213 MDADM_VER="VERSION_MDADM"
214 MDADM_DIR="mdadm-${MDADM_VER}"
215 MDADM_SRCTAR="${DISTDIR}/mdadm-${MDADM_VER}.tar.bz2"
216 MDADM_BINCACHE="%%CACHE%%/mdadm-${MDADM_VER}-%%ARCH%%.tar.bz2"
217
218 DMRAID_VER="VERSION_DMRAID"
219 DMRAID_DIR="dmraid/${DMRAID_VER}/dmraid"
220 DMRAID_SRCTAR="${DISTDIR}/dmraid-${DMRAID_VER}.tar.bz2"
221 DMRAID_BINCACHE="%%CACHE%%/dmraid-${DMRAID_VER}-%%ARCH%%.tar.bz2"
222
223 ISCSI_VER="VERSION_ISCSI"
224 ISCSI_DIR="open-iscsi-${ISCSI_VER}"
225 ISCSI_SRCTAR="${DISTDIR}/open-iscsi-${ISCSI_VER}.tar.gz"
226 ISCSI_BINCACHE="%%CACHE%%/iscsi-${ISCSI_VER}-%%ARCH%%.bz2"
227
228 E2FSPROGS_VER="VERSION_E2FSPROGS"
229 E2FSPROGS_DIR="e2fsprogs-${E2FSPROGS_VER}"
230 E2FSPROGS_SRCTAR="${DISTDIR}/e2fsprogs-${E2FSPROGS_VER}.tar.gz"
231 BLKID_BINCACHE="%%CACHE%%/blkid-${E2FSPROGS_VER}-%%ARCH%%.bz2"
232
233 FUSE_VER="VERSION_FUSE"
234 FUSE_DIR="fuse-${FUSE_VER}"
235 FUSE_SRCTAR="${DISTDIR}/fuse-${FUSE_VER}.tar.gz"
236 FUSE_BINCACHE="%%CACHE%%/fuse-${FUSE_VER}-%%ARCH%%.tar.bz2"
237
238 UNIONFS_FUSE_VER="VERSION_UNIONFS_FUSE"
239 UNIONFS_FUSE_DIR="unionfs-fuse-${UNIONFS_FUSE_VER}"
240 UNIONFS_FUSE_SRCTAR="${DISTDIR}/unionfs-fuse-${UNIONFS_FUSE_VER}.tar.bz2"
241 UNIONFS_FUSE_BINCACHE="%%CACHE%%/unionfs-fuse-${UNIONFS_FUSE_VER}-%%ARCH%%.bz2"
242
243 GPG_VER="VERSION_GPG"
244 GPG_DIR="gnupg-${GPG_VER}"
245 GPG_SRCTAR="${DISTDIR}/gnupg-${GPG_VER}.tar.bz2"
246 GPG_BINCACHE="%%CACHE%%/gnupg-${GPG_VER}-%%ARCH%%.bz2"
247
248
249 # =========MISC KERNEL CONFIGURATION============
250 #
251 # Tag the kernel and ramdisk with a name:
252 # If not defined the option defaults to
253 # 'genkernel'
254 #KNAME="genkernel"
255
256
257 # This option is only valid if kerncache is
258 # defined. If there is a valid kerncache no checks
259 # will be made against a kernel source tree
260 #KERNEL_SOURCES="0"
261
262
263 # Build a static (monolithic kernel)
264 #BUILD_STATIC="1"
265
266
267 # Make and install kernelz image (PowerPC)
268 #GENZIMAGE="1"
269
270
271 # File to output a .tar.bz2'd kernel contents
272 # of /lib/modules/ and the kernel config
273 # NOTE: This is created before the callbacks
274 # are run!
275 #KERNCACHE="/path/to/file"
276
277
278 # Prefix to kernel module destination, modules
279 # will be installed in <prefix>/lib/modules
280 # (.conf equivalent of --module-prefix=<dir>)
281 #INSTALL_MOD_PATH=""
282
283
284 # =========MISC INITRD CONFIGURATION============
285 #
286 # Copy all kernel modules to the ramdisk
287 #ALLRAMDISKMODULES="1"
288
289
290 # Don't copy any modules to the ramdisk
291 #RAMDISKMODULES="0"
292
293
294 # File to output a .tar.bz2'd kernel and ramdisk:
295 # No modules outside of the ramdisk will be
296 # included...
297 #MINKERNPACKAGE="/path/to/file.bz2"
298
299
300 # File to output a .tar.bz2'd modules after the
301 # callbacks have run
302 #MODULESPACKAGE="/path/to/file.bz2"
303
304
305 # Directory structure to include in the initramfs,
306 # only available on >=2.6 kernels
307 #INITRAMFS_OVERLAY=""
308
309
310 # Build the generated initramfs into the kernel instead of
311 # keeping it as a separate file
312 #INTEGRATED_INITRAMFS="1"
313
314
315 # Compress generated initramfs
316 #COMPRESS_INITRD="yes"
317 # Types of compression: best, xz, lzma, bzip2, gzip, lzop
318 # "best" selects the best available compression method
319 #COMPRESS_INITRD_TYPE="best"
320
321
322 # Create a self-contained env in the initramfs
323 #NETBOOT="1"
324
325
326 # =========MISC BOOT CONFIGURATION============
327 #
328 # Specify a default for real_root=
329 #REAL_ROOT="/dev/one/two/gentoo"