genkernel.conf.template 8.5 KB

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