Advertisement
Guest User

genkernel.conf

a guest
Oct 9th, 2012
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.21 KB | None | 0 0
  1. # Configuration file for genkernel
  2. # $Id: b39a952ab3df9371a15786986e417f187396a39c $
  3.  
  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.  
  9. # =========Common Command Line Option Defaults=========
  10.  
  11. # Should we install to $BOOTDIR? Default is "no" because genkernel is used in
  12. # catalyst and stage building.
  13. #INSTALL="yes"
  14.  
  15. # Run 'make oldconfig' before compiling this kernel?
  16. OLDCONFIG="yes"
  17.  
  18. # Run 'make menuconfig' before compiling this kernel?
  19. MENUCONFIG="no"
  20.  
  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.
  25. CLEAN="yes"
  26.  
  27. # Run 'make mrproper' before configuration/compilation?
  28. MRPROPER="yes"
  29.  
  30. # Override the arch detection?
  31. #ARCH_OVERRIDE="x86"
  32.  
  33. # Mount BOOTDIR automatically if it isn't mounted?
  34. MOUNTBOOT="yes"
  35.  
  36. # Make symlinks in BOOTDIR automatically?
  37. #SYMLINK="no"
  38.  
  39. # Save the new configuration in /etc/kernels upon
  40. # successfull compilation
  41. SAVE_CONFIG="yes"
  42.  
  43. # Use Color output in Genkernel?
  44. USECOLOR="yes"
  45.  
  46. # Clear build cache dir
  47. #CLEAR_CACHE_DIR="yes"
  48.  
  49. # Clear all tmp files and caches after genkernel has run
  50. #POSTCLEAR="1"
  51.  
  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
  57. #MAKEOPTS="-j2"
  58.  
  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.
  61. #LVM="no"
  62.  
  63. # Add in Luks support. Needs sys-fs/cryptsetup with -dynamic installed.
  64. #LUKS="no"
  65.  
  66. # Add in GnuPG support
  67. #GPG="no"
  68.  
  69. # Add DMRAID support.
  70. #DMRAID="no"
  71.  
  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.
  74. #BUSYBOX="yes"
  75.  
  76. # Includes mdadm/mdmon binaries in initramfs.
  77. # Without sys-fs/mdadm[static] installed, this will build a static mdadm.
  78. #MDADM="no"
  79.  
  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"
  84.  
  85. # Add Multipath support.
  86. #MULTIPATH="no"
  87.  
  88. # Add iSCSI support.
  89. #ISCSI="no"
  90.  
  91. # Include support for unionfs
  92. #UNIONFS="1"
  93.  
  94. # Enable copying of firmware into initramfs
  95. #FIRMWARE="no"
  96. # Specify directory to pull from
  97. #FIRMWARE_DIR="/lib/firmware"
  98. # Specify specific firmware files to include. This overrides FIRMWARE_DIR
  99. #FIRMWARE_FILES=""
  100.  
  101. # Enable disklabel support (copies blkid to initrd)
  102. DISKLABEL="yes"
  103.  
  104. # Add new kernel to grub?
  105. #BOOTLOADER="grub"
  106.  
  107. # Enable splashutils in early space (initrd). Default is "no".
  108. #SPLASH="yes"
  109.  
  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"
  114.  
  115.  
  116. # =========Keymap Settings=========
  117. #
  118. # Force keymap selection at boot
  119. #DOKEYMAPAUTO="yes"
  120.  
  121.  
  122. # Disables keymap selection support
  123. #KEYMAP="0"
  124.  
  125.  
  126. # =========Low Level Compile Settings=========
  127. #
  128. # GNU Make to use for kernel. See also the --kernel-make command line option.
  129. #KERNEL_MAKE="make"
  130.  
  131. # Compiler to use for the kernel (e.g. distcc). See also the --kernel-cc
  132. # command line option.
  133. #KERNEL_CC="gcc"
  134.  
  135. # Assembler to use for the kernel. See also the --kernel-as command line
  136. # option.
  137. #KERNEL_AS="as"
  138.  
  139. # Linker to use for the kernel. See also the --kernel-ld command line option.
  140. #KERNEL_LD="ld"
  141.  
  142. # GNU Make to use for the utilities. See also the --utils-make command line
  143. # option.
  144. #UTILS_MAKE="make"
  145.  
  146. # Compiler to use for the utilities (e.g. distcc). See also the --utils-cc
  147. # command line option.
  148. #UTILS_CC="gcc"
  149.  
  150. # Assembler to use for the utilities. See also the --utils-as command line
  151. # option.
  152. #UTILS_AS="as"
  153.  
  154. # Linker to use for the utilities. See also the --utils-ld command line
  155. # option.
  156. #UTILS_LD="ld"
  157.  
  158.  
  159. # Common prefix of cros compile commands
  160. #UTILS_CROSS_COMPILE="x86_64-pc-linux-gnu"
  161.  
  162.  
  163. # Value of CROSS_COMPILE utils variable
  164. # during kernel compilation
  165. #KERNEL_CROSS_COMPILE="x86_64-pc-linux-gnu"
  166.  
  167.  
  168. # =========GENKERNEL LOCATION CONFIGURATION============
  169. # Variables:
  170. # %%ARCH%% - Final determined architecture
  171. # %%CACHE%% - Final determined cache location
  172.  
  173. # Set genkernel's temporary work directory. Default is /var/tmp/genkernel
  174. #TMPDIR="/var/tmp/genkernel"
  175.  
  176. # Set the boot directory, default is /boot
  177. #BOOTDIR="/boot"
  178.  
  179. # Default share directory location
  180. GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
  181.  
  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"
  186. # Log output file
  187. LOGFILE="/var/log/genkernel.log"
  188. # Debug Level
  189. LOGLEVEL=1
  190.  
  191. # =========COMPILED UTILS CONFIGURATION============
  192. #
  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"
  198.  
  199. # Specifies a user created busybox config
  200. #BUSYBOX_CONFIG="/path/to/file"
  201.  
  202. BUSYBOX_VER="1.20.1"
  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"
  207.  
  208. DEVICE_MAPPER_VER="1.02.22"
  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"
  212.  
  213. LVM_VER="2.02.88"
  214. LVM_DIR="LVM2.${LVM_VER}"
  215. LVM_SRCTAR="${DISTDIR}/LVM2.${LVM_VER}.tgz"
  216. LVM_BINCACHE="%%CACHE%%/LVM2.${LVM_VER}-%%ARCH%%.tar.bz2"
  217.  
  218. MDADM_VER="3.1.5"
  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"
  222.  
  223. DMRAID_VER="1.0.0.rc14"
  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"
  227.  
  228. ISCSI_VER="2.0-872"
  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"
  232.  
  233. E2FSPROGS_VER="1.42"
  234. E2FSPROGS_DIR="e2fsprogs-${E2FSPROGS_VER}"
  235. E2FSPROGS_SRCTAR="${DISTDIR}/e2fsprogs-${E2FSPROGS_VER}.tar.gz"
  236. BLKID_BINCACHE="%%CACHE%%/blkid-${E2FSPROGS_VER}-%%ARCH%%.bz2"
  237.  
  238. FUSE_VER="2.8.6"
  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"
  242.  
  243. UNIONFS_FUSE_VER="0.24"
  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"
  247.  
  248. GPG_VER="1.4.11"
  249. GPG_DIR="gnupg-${GPG_VER}"
  250. GPG_SRCTAR="${DISTDIR}/gnupg-${GPG_VER}.tar.bz2"
  251. GPG_BINCACHE="%%CACHE%%/gnupg-${GPG_VER}-%%ARCH%%.bz2"
  252.  
  253.  
  254. # =========MISC KERNEL CONFIGURATION============
  255. #
  256. # Tag the kernel and ramdisk with a name:
  257. # If not defined the option defaults to
  258. # 'genkernel'
  259. #KNAME="genkernel"
  260.  
  261.  
  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
  265. #KERNEL_SOURCES="0"
  266.  
  267.  
  268. # Build a static (monolithic kernel)
  269. #BUILD_STATIC="1"
  270.  
  271.  
  272. # Make and install kernelz image (PowerPC)
  273. #GENZIMAGE="1"
  274.  
  275.  
  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
  279. # are run!
  280. #KERNCACHE="/path/to/file"
  281.  
  282.  
  283. # Prefix to kernel module destination, modules
  284. # will be installed in <prefix>/lib/modules
  285. # (.conf equivalent of --module-prefix=<dir>)
  286. #INSTALL_MOD_PATH=""
  287.  
  288.  
  289. # =========MISC INITRD CONFIGURATION============
  290. #
  291. # Copy all kernel modules to the ramdisk
  292. #ALLRAMDISKMODULES="1"
  293.  
  294.  
  295. # Don't copy any modules to the ramdisk
  296. #RAMDISKMODULES="0"
  297.  
  298.  
  299. # File to output a .tar.bz2'd kernel and ramdisk:
  300. # No modules outside of the ramdisk will be
  301. # included...
  302. #MINKERNPACKAGE="/path/to/file.bz2"
  303.  
  304.  
  305. # File to output a .tar.bz2'd modules after the
  306. # callbacks have run
  307. #MODULESPACKAGE="/path/to/file.bz2"
  308.  
  309.  
  310. # Directory structure to include in the initramfs,
  311. # only available on >=2.6 kernels
  312. #INITRAMFS_OVERLAY=""
  313.  
  314.  
  315. # Build the generated initramfs into the kernel instead of
  316. # keeping it as a separate file
  317. #INTEGRATED_INITRAMFS="1"
  318.  
  319.  
  320. # Create a self-contained env in the initramfs
  321. #NETBOOT="1"
  322.  
  323.  
  324. # =========MISC BOOT CONFIGURATION============
  325. #
  326. # Specify a default for real_root=
  327. #REAL_ROOT="/dev/one/two/gentoo"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement