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