Advertisement
lakecity

genkernel conf

Jan 9th, 2020
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.70 KB | None | 0 0
  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. # Install to $BOOTDIR
  11. #INSTALL="yes"
  12.  
  13. # Run 'make oldconfig' before compiling this kernel
  14. OLDCONFIG="no"
  15.  
  16. # Run 'make menuconfig' before compiling this kernel
  17. MENUCONFIG="yes"
  18.  
  19. # Run 'make gconfig' before compiling this kernel
  20. #GCONFIG="no"
  21.  
  22. # Run 'make nconfig' (ncurses 'menuconfig') before compiling this kernel
  23. #NCONFIG="no"
  24.  
  25. # Run 'make xconfig' before compiling this kernel
  26. #XCONFIG="no"
  27.  
  28. # Run 'make mrproper' before compiling this kernel
  29. MRPROPER="no"
  30.  
  31. # Run 'make clean' before compiling this kernel
  32. # Only needed if MRPROPER is set to NO because
  33. # MRPROPER implies 'make clean'.
  34. CLEAN="no"
  35.  
  36. # Mount BOOTDIR automatically if it isn't mounted
  37. #MOUNTBOOT="yes"
  38.  
  39. # Make symlinks in BOOTDIR automatically
  40. #SYMLINK="no"
  41.  
  42. # Save the new configuration in /etc/kernels upon
  43. # successfull compilation
  44. SAVE_CONFIG="yes"
  45.  
  46. # Enable color output in genkernel
  47. NOCOLOR="false"
  48.  
  49. # Clear build cache dir on gernkernel start
  50. #CLEAR_CACHEDIR="no"
  51.  
  52. # Clear all tmp files and caches after genkernel has run
  53. #POSTCLEAR="no"
  54.  
  55. # Check for x MB free disk space in BOOTDIR
  56. #CHECK_FREE_DISK_SPACE_BOOTDIR=0
  57.  
  58. # Check for x MB free disk space in kernel outputdir
  59. #CHECK_FREE_DISK_SPACE_KERNELOUTPUTDIR=0
  60.  
  61. # Genkernel uses an independent configuration for MAKEOPTS, and does not source
  62. # /etc/portage/make.conf . You can override the default setting by uncommenting
  63. # and tweaking the following line. Default setting is set up by
  64. # ${GK_SHARE}/${ARCH_OVERRIDE}/config.sh . The recommended value for -j
  65. # argument is: <number of processors>*<number of cores per processor>+1
  66. #MAKEOPTS="$(portageq envvar MAKEOPTS)"
  67.  
  68. # Run the kernel make at the following NICE level
  69. #NICE=10
  70.  
  71. # Add bcache support
  72. #BCACHE="no"
  73.  
  74. # Add LVM support
  75. #LVM="no"
  76.  
  77. # Add LUKS support
  78. #LUKS="no"
  79.  
  80. # Add GnuPG support
  81. #GPG="no"
  82.  
  83. # Add in early microcode support: this sets the kernel options for early microcode loading
  84. # Possible values: empty/"no", "all", "intel", "amd"
  85. #MICROCODE="all"
  86.  
  87. # Include early microcode in generated initramfs.
  88. # Only needed if system cannot load multiple initramfs.
  89. # NOTE: >=sys-boot/grub-2 will detect and auto-load {amd,intel}-uc.img file
  90. # provided by sys-firmware/intel-microcode[initramfs] or
  91. # sys-kernel/linux-firmware[initramfs].
  92. #MICROCODE_INITRAMFS="no"
  93.  
  94. # Add NFS support
  95. #NFS="no"
  96.  
  97. # Add DMRAID support
  98. #DMRAID="no"
  99.  
  100. # Add SSH support
  101. #SSH="no"
  102.  
  103. # Include busybox in the initramfs. If included, busybox is rebuilt
  104. # if the cached copy is out of date.
  105. #BUSYBOX="yes"
  106.  
  107. # Add MDRAID support
  108. #MDADM="no"
  109.  
  110. # Specify a custom mdadm.conf.
  111. # By default the initramfs will be built *without* an mdadm.conf and will auto-detect
  112. # arrays during bootup. Usually, this should not be needed.
  113. #MDADM_CONFIG="/etc/mdadm.conf"
  114.  
  115. # Add Multipath support
  116. #MULTIPATH="no"
  117.  
  118. # Add iSCSI support
  119. #ISCSI="no"
  120.  
  121. # Add e2fsprogs support
  122. #E2FSPROGS="no"
  123.  
  124. # Include support for unionfs
  125. #UNIONFS="no"
  126.  
  127. # Include support for zfs volume management. If unset, genkernel will attempt
  128. # to autodetect and enable this when rootfs is on zfs.
  129. #ZFS="no"
  130.  
  131. # Add BTRFS support
  132. #BTRFS="no"
  133.  
  134. # Add xfsprogs support
  135. #XFSPROGS="no"
  136.  
  137. # Install firmware onto root filesystem
  138. # Will conflict with sys-kernel/linux-firmware package
  139. #FIRMWARE_INSTALL="no"
  140.  
  141. # Add firmware(s) to initramfs
  142. #FIRMWARE="no"
  143.  
  144. # Specify directory to pull from
  145. #FIRMWARE_DIR="/lib/firmware"
  146.  
  147. # Specify a space-separated list of firmware files or directories to include,
  148. # relative to FIRMWARE_DIR. If empty or unset, the full contents of
  149. # FIRMWARE_DIR will be included.
  150. #FIRMWARE_FILES=""
  151.  
  152. # Add disklabel support (copies blkid to initramfs)
  153. #DISKLABEL="yes"
  154.  
  155. # Add new kernel to grub
  156. # Possible values: empty/"no", "grub", "grub2"
  157. #BOOTLOADER="no"
  158.  
  159. # Use sandbox when building initramfs
  160. #SANDBOX="yes"
  161.  
  162. # Embed and set font early on boot
  163. # Possible values: empty/"none", "current", <PSF file>
  164. #BOOTFONT="none"
  165.  
  166. # Add boot splash using splashutils
  167. #SPLASH="no"
  168.  
  169. # Use this splash theme. If commented out - the "default" name theme is used.
  170. # Also, SPLASH="yes" needs to be enabled for this one to work.
  171. # This supersedes the "SPLASH_THEME" option in '/etc/conf.d/splash'.
  172. #SPLASH_THEME="gentoo"
  173.  
  174. # Run "emerge @module-rebuild" automatically when possible and necessary
  175. # after kernel and modules have been compiled
  176. #MODULEREBUILD="yes"
  177.  
  178. # Run the specified command in the current environment after the kernel and
  179. # modules have been compiled, useful to rebuild external kernel module
  180. # (see MODULEREBUILD above) or installing additional
  181. # files (use 'copy_image_with_preserve dtb path/to/dtb dtb <kernelname>')
  182. #CMD_CALLBACK=""
  183.  
  184.  
  185. # =========Keymap Settings=========
  186. #
  187. # Force keymap selection at boot
  188. #DOKEYMAPAUTO="no"
  189.  
  190. # Enables keymap selection support
  191. #KEYMAP="yes"
  192.  
  193.  
  194. # =========Low Level Compile Settings=========
  195. #
  196. # GNU Make to use for kernel. See also the --kernel-make command line option.
  197. #KERNEL_MAKE="make"
  198.  
  199. # Compiler to use for the kernel (e.g. distcc). See also the --kernel-cc
  200. # command line option.
  201. #KERNEL_CC="gcc"
  202.  
  203. # Assembler to use for the kernel. See also the --kernel-as command line
  204. # option.
  205. #KERNEL_AS="as"
  206.  
  207. # Linker to use for the kernel. See also the --kernel-ld command line option.
  208. #KERNEL_LD="ld"
  209.  
  210. # GNU Make to use for the utilities. See also the --utils-make command line
  211. # option.
  212. #UTILS_MAKE="make"
  213.  
  214. # C Compiler to use for the utilities (e.g. distcc). See also the --utils-cc
  215. # command line option.
  216. #UTILS_CC="gcc"
  217.  
  218. # C++ Compiler to use for the utilities (e.g. distcc). See also the --utils-cxx
  219. # command line option.
  220. #UTILS_CXX="g++"
  221.  
  222. # Assembler to use for the utilities. See also the --utils-as command line
  223. # option.
  224. #UTILS_AS="as"
  225.  
  226. # Linker to use for the utilities. See also the --utils-ld command line
  227. # option.
  228. #UTILS_LD="ld"
  229.  
  230. # Target triple (i.e. aarch64-linux-gnu) to build for. If you do not
  231. # cross-compile, leave blank for auto detection.
  232. #CROSS_COMPILE=""
  233.  
  234. # Override default make target (bzImage). See also the --kernel-target
  235. # command line option. Useful to build a uImage on arm.
  236. #KERNEL_MAKE_DIRECTIVE_OVERRIDE="fooImage"
  237.  
  238. # Override default kernel binary path. See also the --kernel-binary
  239. # command line option. Useful to install a uImage on arm.
  240. #KERNEL_BINARY_OVERRIDE="arch/foo/boot/bar"
  241.  
  242.  
  243. # =========GENKERNEL LOCATION CONFIGURATION============
  244. #
  245. # Variables:
  246. # %%ARCH%% - Final determined architecture
  247. # %%CACHE%% - Final determined cache location
  248.  
  249. # Set genkernel's temporary work directory
  250. #TMPDIR="/var/tmp/genkernel"
  251.  
  252. # Set the boot directory, default is /boot
  253. #BOOTDIR="/boot"
  254.  
  255. # Default share directory location
  256. GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
  257.  
  258. # Location of the default cache
  259. CACHE_DIR="/var/cache/genkernel"
  260.  
  261. # Location of DISTDIR, where our source tarballs are stored
  262. DISTDIR="${GK_SHARE}/distfiles"
  263.  
  264. # Log output file
  265. LOGFILE="/var/log/genkernel.log"
  266.  
  267. # Debug Level
  268. LOGLEVEL=1
  269.  
  270.  
  271. # =========COMPILED UTILS CONFIGURATION============
  272. #
  273. # Default location of kernel source
  274. DEFAULT_KERNEL_SOURCE="/usr/src/linux"
  275.  
  276. # Default kernel config (only use to override using
  277. # arch/%%ARCH%%/kernel-config-${VER}.${PAT} !)
  278. #DEFAULT_KERNEL_CONFIG="${GK_SHARE}/arch/%%ARCH%%/kernel-config"
  279.  
  280. # Specifies a user created busybox config
  281. #BUSYBOX_CONFIG="/path/to/file"
  282.  
  283. # NOTE: Since genkernel 3.4.41 the version of
  284. # busybox, lvm, mdadm, ... have been moved to
  285. # /usr/share/genkernel/defaults/software.sh in order to
  286. # reduce the merging you have to do during etc-update.
  287. # You can still override these settings in here.
  288.  
  289.  
  290. # =========MISC KERNEL CONFIGURATION============
  291. #
  292. # Set kernel filename which will be used when kernel will be installed
  293. # into BOOTDIR. See man page to learn more about available placeholders.
  294. #KERNEL_FILENAME="vmlinuz-%%KV%%"
  295.  
  296. # Set kernel symlink name which will be used when kernel will be installed
  297. # into BOOTDIR and SYMLINK option is enabled
  298. #KERNEL_SYMLINK_NAME="kernel"
  299.  
  300. # This option will set kernel option CONFIG_LOCALVERSION.
  301. # Use special value "UNSET" to unset already set CONFIG_LOCALVERSION.
  302. #KERNEL_LOCALVERSION="-%%ARCH%%"
  303.  
  304. # This option is only valid if kerncache is
  305. # defined. If there is a valid kerncache no checks
  306. # will be made against a kernel source tree.
  307. #KERNEL_SOURCES="yes"
  308.  
  309. # Build a static (monolithic kernel)
  310. #BUILD_STATIC="no"
  311.  
  312. # Make and install kernelz image (PowerPC)
  313. #GENZIMAGE="no"
  314.  
  315. # Archive file created using tar containing kernel binary, content
  316. # of /lib/modules and the kernel config.
  317. # NOTE: Archive is created before the callbacks are run!
  318. #KERNCACHE="/path/to/file.tar.xz"
  319.  
  320. # Prefix to kernel module destination, modules
  321. # will be installed in <prefix>/lib/modules
  322. # (.conf equivalent of --module-prefix=<dir>)
  323. #INSTALL_MOD_PATH=""
  324.  
  325.  
  326. # =========MISC INITRAMFS CONFIGURATION============
  327. #
  328. # Set initramfs filename which will be used when initramfs will be
  329. # installed into BOOTDIR. See man page to learn more about available
  330. # placeholders.
  331. #INITRAMFS_FILENAME="initramfs-%%KV%%.img"
  332.  
  333. # Set initramfs symlink name which will be used when initramfs will be
  334. # installed into BOOTDIR and SYMLINK option is enabled
  335. #INITRAMFS_SYMLINK_NAME="initramfs"
  336.  
  337. # Copy all compiled kernel modules to the initramfs
  338. #ALLRAMDISKMODULES="no"
  339.  
  340. # Copy selected modules to the initramfs based on arch-specific modules_load file
  341. #RAMDISKMODULES="yes"
  342.  
  343. # Archive file created using tar containing kernel and initramfs.
  344. # NOTE: No modules outside of the initramfs will be included!
  345. #MINKERNPACKAGE="/path/to/file.tar.xz"
  346.  
  347. # Add additional modules to the initramfs using the module groups defined
  348. # in /usr/share/genkernel/defaults/modules_load (see this file for
  349. # more details). This would be used if, for example, you
  350. # required an additional crypto module or network device at boot
  351. # time and did not want to staticly compile these in the kernel.
  352. # Options take the form AMODULES_{group} where {group} is one of
  353. # the groups in modules_load (which are in the form MODULES_{group}).
  354. # Use this with caution.
  355. #AMODULES_group="module-to-include another-module"
  356.  
  357. # Override the default modules in the initramfs, for a given group, as defined by
  358. # /usr/share/genkernel/defaults/modules_load and the per-arch modules_load
  359. # files. You PROBABLY want to use AMODULES_* above, and NOT MODULES_* here.
  360. # If you use MODULES_* here, the default and per-arch modules will NOT be used.
  361. #MODULES_group1="some-module"
  362. #MODULES_group2="" # Load no modules for this group
  363.  
  364. # Archive file created using tar containing modules after
  365. # the callbacks have run
  366. #MODULESPACKAGE="/path/to/file.tar.xz"
  367.  
  368. # Directory structure to include in the initramfs,
  369. # only available on >=2.6 kernels
  370. #INITRAMFS_OVERLAY=""
  371.  
  372. # Build the generated initramfs into the kernel instead of
  373. # keeping it as a separate file
  374. #INTEGRATED_INITRAMFS="no"
  375.  
  376. # Compress generated initramfs
  377. #COMPRESS_INITRD="yes"
  378.  
  379. # Types of compression: best, xz, lzma, bzip2, gzip, lzop, fastest
  380. # "best" selects the best available compression method
  381. # "fastest" selects the fastest available compression method
  382. #COMPRESS_INITRD_TYPE="best"
  383.  
  384. # wrap initramfs using mkimage for u-boot bootloader
  385. # WRAP_INITRD=no
  386.  
  387. # Create a self-contained env in the initramfs
  388. #NETBOOT="no"
  389.  
  390.  
  391. # =========MISC BOOT CONFIGURATION============
  392. #
  393. # Specify a default for real_root=
  394. #REAL_ROOT="/dev/one/two/gentoo"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement