Advertisement
r-c-d

Gentoo Genkernel Config

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