Move the sourcing of software.sh to genkernel
[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 # Include support for unionfs
91 #UNIONFS="1"
92
93 # Enable copying of firmware into initramfs
94 #FIRMWARE="no"
95 # Specify directory to pull from
96 #FIRMWARE_DIR="/lib/firmware"
97 # Specify specific firmware files to include. This overrides FIRMWARE_DIR
98 #FIRMWARE_FILES=""
99
100 # Enable disklabel support (copies blkid to initrd)
101 DISKLABEL="yes"
102
103 # Add new kernel to grub?
104 #BOOTLOADER="grub"
105
106 # Enable splashutils in early space (initrd). Default is "no".
107 #SPLASH="yes"
108
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"
113
114
115 # =========Keymap Settings=========
116 #
117 # Force keymap selection at boot
118 #DOKEYMAPAUTO="yes"
119
120
121 # Disables keymap selection support
122 #KEYMAP="0"
123
124
125 # =========Low Level Compile Settings=========
126 #
127 # GNU Make to use for kernel.  See also the --kernel-make command line option.
128 #KERNEL_MAKE="make"
129
130 # Compiler to use for the kernel (e.g. distcc).  See also the --kernel-cc
131 # command line option.
132 #KERNEL_CC="gcc"
133
134 # Assembler to use for the kernel.  See also the --kernel-as command line
135 # option.
136 #KERNEL_AS="as"
137
138 # Linker to use for the kernel.  See also the --kernel-ld command line option.
139 #KERNEL_LD="ld"
140
141 # GNU Make to use for the utilities.  See also the --utils-make command line
142 # option.
143 #UTILS_MAKE="make"
144
145 # Compiler to use for the utilities (e.g. distcc).  See also the --utils-cc
146 # command line option.
147 #UTILS_CC="gcc"
148
149 # Assembler to use for the utilities.  See also the --utils-as command line
150 # option.
151 #UTILS_AS="as"
152
153 # Linker to use for the utilities.  See also the --utils-ld command line
154 # option.
155 #UTILS_LD="ld"
156
157
158 # Common prefix of cros compile commands
159 #UTILS_CROSS_COMPILE="x86_64-pc-linux-gnu"
160
161
162 # Value of CROSS_COMPILE utils variable
163 # during kernel compilation
164 #KERNEL_CROSS_COMPILE="x86_64-pc-linux-gnu"
165
166
167 # =========GENKERNEL LOCATION CONFIGURATION============
168 # Variables:
169 #   %%ARCH%%  - Final determined architecture
170 #   %%CACHE%% - Final determined cache location
171
172 # Set genkernel's temporary work directory.  Default is /var/tmp/genkernel
173 #TMPDIR="/var/tmp/genkernel"
174
175 # Set the boot directory, default is /boot
176 #BOOTDIR="/boot"
177
178 # Default share directory location
179 GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
180
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"
185 # Log output file
186 LOGFILE="/var/log/genkernel.log"
187 # Debug Level
188 LOGLEVEL=1
189
190 # =========COMPILED UTILS CONFIGURATION============
191 #
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"
197
198 # Specifies a user created busybox config
199 #BUSYBOX_CONFIG="/path/to/file"
200 #BUSYBOX_APPLETS="[ ash sh mount uname echo cut cat"
201
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.
207
208
209 # =========MISC KERNEL CONFIGURATION============
210 #
211 # Tag the kernel and ramdisk with a name:
212 # If not defined the option defaults to
213 # 'genkernel'
214 #KNAME="genkernel"
215
216
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
220 #KERNEL_SOURCES="0"
221
222
223 # Build a static (monolithic kernel)
224 #BUILD_STATIC="1"
225
226
227 # Make and install kernelz image (PowerPC)
228 #GENZIMAGE="1"
229
230
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
234 # are run!
235 #KERNCACHE="/path/to/file"
236
237
238 # Prefix to kernel module destination, modules
239 # will be installed in <prefix>/lib/modules
240 # (.conf equivalent of --module-prefix=<dir>)
241 #INSTALL_MOD_PATH=""
242
243
244 # =========MISC INITRD CONFIGURATION============
245 #
246 # Copy all kernel modules to the ramdisk
247 #ALLRAMDISKMODULES="1"
248
249
250 # Don't copy any modules to the ramdisk
251 #RAMDISKMODULES="0"
252
253
254 # File to output a .tar.bz2'd kernel and ramdisk:
255 # No modules outside of the ramdisk will be
256 # included...
257 #MINKERNPACKAGE="/path/to/file.bz2"
258
259
260 # File to output a .tar.bz2'd modules after the
261 # callbacks have run
262 #MODULESPACKAGE="/path/to/file.bz2"
263
264
265 # Directory structure to include in the initramfs,
266 # only available on >=2.6 kernels
267 #INITRAMFS_OVERLAY=""
268
269
270 # Build the generated initramfs into the kernel instead of
271 # keeping it as a separate file
272 #INTEGRATED_INITRAMFS="1"
273
274
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"
281
282
283 # Create a self-contained env in the initramfs
284 #NETBOOT="1"
285
286
287 # =========MISC BOOT CONFIGURATION============
288 #
289 # Specify a default for real_root=
290 #REAL_ROOT="/dev/one/two/gentoo"