1 # Configuration file for genkernel
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.
8 # =========Common Command Line Option Defaults=========
10 # Should we install to $BOOTDIR? Default is "no" because genkernel is used in
11 # catalyst and stage building.
14 # Run 'make oldconfig' before compiling this kernel?
17 # Run 'make menuconfig' before compiling this kernel?
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.
26 # Run 'make mrproper' before configuration/compilation?
29 # Override the arch detection?
32 # Mount BOOTDIR automatically if it isn't mounted?
35 # Make symlinks in BOOTDIR automatically?
38 # Save the new configuration in /etc/kernels upon
39 # successfull compilation
42 # Use Color output in Genkernel?
45 # Clear build cache dir
46 #CLEAR_CACHE_DIR="yes"
48 # Clear all tmp files and caches after genkernel has run
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
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.
62 # Add in Luks support. Needs sys-fs/cryptsetup with -dynamic installed.
65 # Add in GnuPG support
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.
75 # Includes mdadm/mdmon binaries in initramfs.
76 # Without sys-fs/mdadm[static] installed, this will build a static mdadm.
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"
84 # Add Multipath support.
90 # Include support for unionfs
93 # Enable copying of firmware into initramfs
95 # Specify directory to pull from
96 #FIRMWARE_DIR="/lib/firmware"
97 # Specify specific firmware files to include. This overrides FIRMWARE_DIR
100 # Enable disklabel support (copies blkid to initrd)
103 # Add new kernel to grub?
106 # Enable splashutils in early space (initrd). Default is "no".
109 # Use this splash theme. If commented out - the "default" name theme is used.
110 # Also, SPLASH="yes" needs to be enabled for this one to one work.
111 # This supersedes the "SPLASH_THEME" option of /etc/conf.d/splash (in early space).
112 #SPLASH_THEME="gentoo"
115 # =========Keymap Settings=========
117 # Force keymap selection at boot
121 # Disables keymap selection support
125 # =========Low Level Compile Settings=========
127 # GNU Make to use for kernel. See also the --kernel-make command line option.
130 # Compiler to use for the kernel (e.g. distcc). See also the --kernel-cc
131 # command line option.
134 # Assembler to use for the kernel. See also the --kernel-as command line
138 # Linker to use for the kernel. See also the --kernel-ld command line option.
141 # GNU Make to use for the utilities. See also the --utils-make command line
145 # Compiler to use for the utilities (e.g. distcc). See also the --utils-cc
146 # command line option.
149 # Assembler to use for the utilities. See also the --utils-as command line
153 # Linker to use for the utilities. See also the --utils-ld command line
158 # Common prefix of cros compile commands
159 #UTILS_CROSS_COMPILE="x86_64-pc-linux-gnu"
162 # Value of CROSS_COMPILE utils variable
163 # during kernel compilation
164 #KERNEL_CROSS_COMPILE="x86_64-pc-linux-gnu"
167 # =========GENKERNEL LOCATION CONFIGURATION============
169 # %%ARCH%% - Final determined architecture
170 # %%CACHE%% - Final determined cache location
172 # Set genkernel's temporary work directory. Default is /var/tmp/genkernel
173 #TMPDIR="/var/tmp/genkernel"
175 # Set the boot directory, default is /boot
178 # Default share directory location
179 GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
181 # Location of the default cache
182 CACHE_DIR="/var/cache/genkernel"
183 # Location of DISTDIR, where our source tarballs are stored
184 DISTDIR="${CACHE_DIR}/src"
186 LOGFILE="/var/log/genkernel.log"
190 # =========COMPILED UTILS CONFIGURATION============
192 # Default location of kernel source
193 DEFAULT_KERNEL_SOURCE="/usr/src/linux"
194 # Default kernel config (only use to override using
195 # arch/%%ARCH%%/kernel-config-${VER}.${PAT} !)
196 #DEFAULT_KERNEL_CONFIG="${GK_SHARE}/arch/%%ARCH%%/kernel-config"
198 # Specifies a user created busybox config
199 #BUSYBOX_CONFIG="/path/to/file"
200 #BUSYBOX_APPLETS="[ ash sh mount uname echo cut cat"
202 # NOTE: Since genkernel 3.4.41 the version of
203 # busybox, lvm, mdadm, .. have been moved to
204 # /usr/share/genkernel/defaults/software.sh in order to
205 # reduce the merging you have to do during etc-update.
206 # You can still override these settings in here.
209 # =========MISC KERNEL CONFIGURATION============
211 # Tag the kernel and ramdisk with a name:
212 # If not defined the option defaults to
217 # This option is only valid if kerncache is
218 # defined. If there is a valid kerncache no checks
219 # will be made against a kernel source tree
223 # Build a static (monolithic kernel)
227 # Make and install kernelz image (PowerPC)
231 # File to output a .tar.bz2'd kernel contents
232 # of /lib/modules/ and the kernel config
233 # NOTE: This is created before the callbacks
235 #KERNCACHE="/path/to/file"
238 # Prefix to kernel module destination, modules
239 # will be installed in <prefix>/lib/modules
240 # (.conf equivalent of --module-prefix=<dir>)
244 # =========MISC INITRD CONFIGURATION============
246 # Copy all kernel modules to the ramdisk
247 #ALLRAMDISKMODULES="1"
250 # Don't copy any modules to the ramdisk
254 # File to output a .tar.bz2'd kernel and ramdisk:
255 # No modules outside of the ramdisk will be
257 #MINKERNPACKAGE="/path/to/file.bz2"
260 # File to output a .tar.bz2'd modules after the
262 #MODULESPACKAGE="/path/to/file.bz2"
265 # Directory structure to include in the initramfs,
266 # only available on >=2.6 kernels
267 #INITRAMFS_OVERLAY=""
270 # Build the generated initramfs into the kernel instead of
271 # keeping it as a separate file
272 #INTEGRATED_INITRAMFS="1"
275 # Compress generated initramfs
276 #COMPRESS_INITRD="yes"
277 # Types of compression: best, xz, lzma, bzip2, gzip, lzop, fastest
278 # "best" selects the best available compression method
279 # "fastest" selects the fastest available compression method
280 #COMPRESS_INITRD_TYPE="best"
283 # Create a self-contained env in the initramfs
287 # =========MISC BOOT CONFIGURATION============
289 # Specify a default for real_root=
290 #REAL_ROOT="/dev/one/two/gentoo"