1 # Configuration file for genkernel
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.
9 # =========Common Command Line Option Defaults=========
11 # Should we install to $BOOTDIR? Default is "no" because genkernel is used in
12 # catalyst and stage building.
15 # Run 'make oldconfig' before compiling this kernel?
18 # Run 'make menuconfig' before compiling this kernel?
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.
27 # Run 'make mrproper' before configuration/compilation?
30 # Override the arch detection?
33 # Mount BOOTDIR automatically if it isn't mounted?
36 # Make symlinks in BOOTDIR automatically?
39 # Save the new configuration in /etc/kernels upon
40 # successfull compilation
43 # Use Color output in Genkernel?
46 # Clear build cache dir
47 #CLEAR_CACHE_DIR="yes"
49 # Clear all tmp files and caches after genkernel has run
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
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.
63 # Add in Luks support. Needs sys-fs/cryptsetup with -dynamic installed.
66 # Add in GnuPG support
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.
76 # Includes mdadm/mdmon binaries in initramfs.
77 # Without sys-fs/mdadm[static] installed, this will build a static mdadm.
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"
85 # Add Multipath support.
91 # Include support for unionfs
94 # Enable copying of firmware into initramfs
96 # Specify directory to pull from
97 #FIRMWARE_DIR="/lib/firmware"
98 # Specify specific firmware files to include. This overrides FIRMWARE_DIR
101 # Enable disklabel support (copies blkid to initrd)
104 # Add new kernel to grub?
107 # Enable splashutils in early space (initrd). Default is "no".
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"
116 # =========Keymap Settings=========
118 # Force keymap selection at boot
122 # Disables keymap selection support
126 # =========Low Level Compile Settings=========
128 # GNU Make to use for kernel. See also the --kernel-make command line option.
131 # Compiler to use for the kernel (e.g. distcc). See also the --kernel-cc
132 # command line option.
135 # Assembler to use for the kernel. See also the --kernel-as command line
139 # Linker to use for the kernel. See also the --kernel-ld command line option.
142 # GNU Make to use for the utilities. See also the --utils-make command line
146 # Compiler to use for the utilities (e.g. distcc). See also the --utils-cc
147 # command line option.
150 # Assembler to use for the utilities. See also the --utils-as command line
154 # Linker to use for the utilities. See also the --utils-ld command line
159 # Common prefix of cros compile commands
160 #UTILS_CROSS_COMPILE="x86_64-pc-linux-gnu"
163 # Value of CROSS_COMPILE utils variable
164 # during kernel compilation
165 #KERNEL_CROSS_COMPILE="x86_64-pc-linux-gnu"
168 # =========GENKERNEL LOCATION CONFIGURATION============
170 # %%ARCH%% - Final determined architecture
171 # %%CACHE%% - Final determined cache location
173 # Set genkernel's temporary work directory. Default is /var/tmp/genkernel
174 #TMPDIR="/var/tmp/genkernel"
176 # Set the boot directory, default is /boot
179 # Default share directory location
180 GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
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"
187 LOGFILE="/var/log/genkernel.log"
191 # =========COMPILED UTILS CONFIGURATION============
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"
199 # Specifies a user created busybox config
200 #BUSYBOX_CONFIG="/path/to/file"
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"
208 DEVICE_MAPPER_VER="VERSION_DMAP"
209 DEVICE_MAPPER_DIR="device-mapper.${DEVICE_MAPPER_VER}"
210 DEVICE_MAPPER_SRCTAR="${DISTDIR}/device-mapper.${DEVICE_MAPPER_VER}.tgz"
211 DEVICE_MAPPER_BINCACHE="%%CACHE%%/device-mapper-${DEVICE_MAPPER_VER}-%%ARCH%%.tar.bz2"
213 LVM_VER="VERSION_LVM"
214 LVM_DIR="LVM2.${LVM_VER}"
215 LVM_SRCTAR="${DISTDIR}/LVM2.${LVM_VER}.tgz"
216 LVM_BINCACHE="%%CACHE%%/LVM2.${LVM_VER}-%%ARCH%%.tar.bz2"
218 MDADM_VER="VERSION_MDADM"
219 MDADM_DIR="mdadm-${MDADM_VER}"
220 MDADM_SRCTAR="${DISTDIR}/mdadm-${MDADM_VER}.tar.bz2"
221 MDADM_BINCACHE="%%CACHE%%/mdadm-${MDADM_VER}-%%ARCH%%.tar.bz2"
223 DMRAID_VER="VERSION_DMRAID"
224 DMRAID_DIR="dmraid/${DMRAID_VER}"
225 DMRAID_SRCTAR="${DISTDIR}/dmraid-${DMRAID_VER}.tar.bz2"
226 DMRAID_BINCACHE="%%CACHE%%/dmraid-${DMRAID_VER}-%%ARCH%%.tar.bz2"
228 ISCSI_VER="VERSION_ISCSI"
229 ISCSI_DIR="open-iscsi-${ISCSI_VER}"
230 ISCSI_SRCTAR="${DISTDIR}/open-iscsi-${ISCSI_VER}.tar.gz"
231 ISCSI_BINCACHE="%%CACHE%%/iscsi-${ISCSI_VER}-%%ARCH%%.bz2"
233 E2FSPROGS_VER="VERSION_E2FSPROGS"
234 E2FSPROGS_DIR="e2fsprogs-${E2FSPROGS_VER}"
235 E2FSPROGS_SRCTAR="${DISTDIR}/e2fsprogs-${E2FSPROGS_VER}.tar.gz"
236 BLKID_BINCACHE="%%CACHE%%/blkid-${E2FSPROGS_VER}-%%ARCH%%.bz2"
238 FUSE_VER="VERSION_FUSE"
239 FUSE_DIR="fuse-${FUSE_VER}"
240 FUSE_SRCTAR="${DISTDIR}/fuse-${FUSE_VER}.tar.gz"
241 FUSE_BINCACHE="%%CACHE%%/fuse-${FUSE_VER}-%%ARCH%%.tar.bz2"
243 UNIONFS_FUSE_VER="VERSION_UNIONFS_FUSE"
244 UNIONFS_FUSE_DIR="unionfs-fuse-${UNIONFS_FUSE_VER}"
245 UNIONFS_FUSE_SRCTAR="${DISTDIR}/unionfs-fuse-${UNIONFS_FUSE_VER}.tar.bz2"
246 UNIONFS_FUSE_BINCACHE="%%CACHE%%/unionfs-fuse-${UNIONFS_FUSE_VER}-%%ARCH%%.bz2"
248 GPG_VER="VERSION_GPG"
249 GPG_DIR="gnupg-${GPG_VER}"
250 GPG_SRCTAR="${DISTDIR}/gnupg-${GPG_VER}.tar.bz2"
251 GPG_BINCACHE="%%CACHE%%/gnupg-${GPG_VER}-%%ARCH%%.bz2"
254 # =========MISC KERNEL CONFIGURATION============
256 # Tag the kernel and ramdisk with a name:
257 # If not defined the option defaults to
262 # This option is only valid if kerncache is
263 # defined. If there is a valid kerncache no checks
264 # will be made against a kernel source tree
268 # Build a static (monolithic kernel)
272 # Make and install kernelz image (PowerPC)
276 # File to output a .tar.bz2'd kernel contents
277 # of /lib/modules/ and the kernel config
278 # NOTE: This is created before the callbacks
280 #KERNCACHE="/path/to/file"
283 # Prefix to kernel module destination, modules
284 # will be installed in <prefix>/lib/modules
285 # (.conf equivalent of --module-prefix=<dir>)
289 # =========MISC INITRD CONFIGURATION============
291 # Copy all kernel modules to the ramdisk
292 #ALLRAMDISKMODULES="1"
295 # Don't copy any modules to the ramdisk
299 # File to output a .tar.bz2'd kernel and ramdisk:
300 # No modules outside of the ramdisk will be
302 #MINKERNPACKAGE="/path/to/file.bz2"
305 # File to output a .tar.bz2'd modules after the
307 #MODULESPACKAGE="/path/to/file.bz2"
310 # Directory structure to include in the initramfs,
311 # only available on >=2.6 kernels
312 #INITRAMFS_OVERLAY=""
315 # Build the generated initramfs into the kernel instead of
316 # keeping it as a separate file
317 #INTEGRATED_INITRAMFS="1"
320 # Compress generated initramfs
321 #COMPRESS_INITRD="yes"
322 # Types of compression: best, xz, lzma, bzip2, gzip, lzop
323 # "best" selects the best available compression method
324 #COMPRESS_INITRD_TYPE="best"
327 # Create a self-contained env in the initramfs
331 # =========MISC BOOT CONFIGURATION============
333 # Specify a default for real_root=
334 #REAL_ROOT="/dev/one/two/gentoo"