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 # Add e2fsprogs support.
93 # Include support for unionfs
96 # Enable copying of firmware into initramfs
98 # Specify directory to pull from
99 #FIRMWARE_DIR="/lib/firmware"
100 # Specify specific firmware files to include. This overrides FIRMWARE_DIR
103 # Enable disklabel support (copies blkid to initrd)
106 # Add new kernel to grub?
109 # Enable splashutils in early space (initrd). Default is "no".
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"
118 # =========Keymap Settings=========
120 # Force keymap selection at boot
124 # Disables keymap selection support
128 # =========Low Level Compile Settings=========
130 # GNU Make to use for kernel. See also the --kernel-make command line option.
133 # Compiler to use for the kernel (e.g. distcc). See also the --kernel-cc
134 # command line option.
137 # Assembler to use for the kernel. See also the --kernel-as command line
141 # Linker to use for the kernel. See also the --kernel-ld command line option.
144 # GNU Make to use for the utilities. See also the --utils-make command line
148 # Compiler to use for the utilities (e.g. distcc). See also the --utils-cc
149 # command line option.
152 # Assembler to use for the utilities. See also the --utils-as command line
156 # Linker to use for the utilities. See also the --utils-ld command line
161 # Common prefix of cros compile commands
162 #UTILS_CROSS_COMPILE="x86_64-pc-linux-gnu"
165 # Value of CROSS_COMPILE utils variable
166 # during kernel compilation
167 #KERNEL_CROSS_COMPILE="x86_64-pc-linux-gnu"
170 # =========GENKERNEL LOCATION CONFIGURATION============
172 # %%ARCH%% - Final determined architecture
173 # %%CACHE%% - Final determined cache location
175 # Set genkernel's temporary work directory. Default is /var/tmp/genkernel
176 #TMPDIR="/var/tmp/genkernel"
178 # Set the boot directory, default is /boot
181 # Default share directory location
182 GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
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"
189 LOGFILE="/var/log/genkernel.log"
193 # =========COMPILED UTILS CONFIGURATION============
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"
201 # Specifies a user created busybox config
202 #BUSYBOX_CONFIG="/path/to/file"
203 #BUSYBOX_APPLETS="[ ash sh mount uname echo cut cat"
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.
212 # =========MISC KERNEL CONFIGURATION============
214 # Tag the kernel and ramdisk with a name:
215 # If not defined the option defaults to
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
226 # Build a static (monolithic kernel)
230 # Make and install kernelz image (PowerPC)
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
238 #KERNCACHE="/path/to/file"
241 # Prefix to kernel module destination, modules
242 # will be installed in <prefix>/lib/modules
243 # (.conf equivalent of --module-prefix=<dir>)
247 # =========MISC INITRD CONFIGURATION============
249 # Copy all kernel modules to the ramdisk
250 #ALLRAMDISKMODULES="1"
253 # Don't copy any modules to the ramdisk
257 # File to output a .tar.bz2'd kernel and ramdisk:
258 # No modules outside of the ramdisk will be
260 #MINKERNPACKAGE="/path/to/file.bz2"
263 # File to output a .tar.bz2'd modules after the
265 #MODULESPACKAGE="/path/to/file.bz2"
268 # Directory structure to include in the initramfs,
269 # only available on >=2.6 kernels
270 #INITRAMFS_OVERLAY=""
273 # Build the generated initramfs into the kernel instead of
274 # keeping it as a separate file
275 #INTEGRATED_INITRAMFS="1"
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"
286 # Create a self-contained env in the initramfs
290 # =========MISC BOOT CONFIGURATION============
292 # Specify a default for real_root=
293 #REAL_ROOT="/dev/one/two/gentoo"