Advertisement
Guest User

Untitled

a guest
Mar 9th, 2023
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.95 KB | None | 0 0
  1. # linux-TkG config file
  2.  
  3. # Linux distribution you are using, options are "Arch", "Ubuntu", "Debian", "Fedora", "Suse", "Gentoo", "Generic".
  4. # It is automatically set to "Arch" when using PKGBUILD.
  5. # If left empty, the script will prompt
  6. _distro="Arch"
  7.  
  8. # Kernel Version - Options are "5.4", and from "5.7" to "5.19"
  9. # you can also set a specific kernel version, e.g. "6.0-rc4" or "5.10.51",
  10. # -> note however that a "z" too small on a "x.y.z" version may make patches fail
  11. # as they got adapted for newer "z" values.
  12. _version=""
  13.  
  14. #### MISC OPTIONS ####
  15.  
  16. # External config file to use - If the given file exists in path, it will override default config (customization.cfg) - Default is ~/.config/frogminer/linux-tkg.cfg
  17. _EXT_CONFIG_PATH=~/.config/frogminer/linux-tkg.cfg
  18.  
  19. # [Arch specific] Set to anything else than "true" to limit cleanup operations and keep source and files generated during compilation.
  20. # Default is "true".
  21. _NUKR="true"
  22.  
  23. # Git mirror to use to get the kernel sources, possible values are "kernel.org", "googlesource.com", "github.com" and "torvalds"
  24. _git_mirror="kernel.org"
  25.  
  26. # Root folder where to checkout the kernel sources (linux-src-git subdir) and build
  27. # Note: - Leave empty to use PKGBUILD's dir
  28. # - Start with a '/' for an absolute path in which `linux-tkg/linux-src-git/` will be created
  29. # - This setting can be used to set the work/build folder to a tmpfs folder
  30. # - Requires >= 32GB ram when building a full kernel, should work with less ram with modprobed-db
  31. _kernel_work_folder=""
  32.  
  33. # Permanent root folder where to keep the git clone (linux-kernel.git subdir) and fetch new blobs
  34. # Note: - Leave empty to use PKGBUILD's dir
  35. # - Start with a '/' for an absolute path in which `linux-tkg/linux-kernel.git/` will be created
  36. # - If your internet is faster than your storage, it may be wise to put this folder
  37. # in a tmpfs location (although it will reclone after each restart / tmpfs folder cleanup)
  38. _kernel_source_folder=""
  39.  
  40. # Custom compiler root dirs - Leave empty to use system compilers
  41. # Example: CUSTOM_GCC_PATH="/home/frog/PKGBUILDS/mostlyportable-gcc/gcc-mostlyportable-9.2.0"
  42. CUSTOM_GCC_PATH=""
  43.  
  44. # Custom LLVM compiler root dirs - Leave empty to use system llvm compiler
  45. # Example: CUSTOM_LLVM_PATH="/home/frog/PKGBUILDS/mostlyportable-llvm/llvm-mostlyportable-11.0.0"
  46. CUSTOM_LLVM_PATH=""
  47.  
  48. # Set to true to bypass makepkg.conf and use all available threads for compilation. False will respect your makepkg.conf options.
  49. _force_all_threads="true"
  50.  
  51. # Set to true to prevent ccache from being used and set CONFIG_GCC_PLUGINS=y (which needs to be disabled for ccache to work properly)
  52. _noccache="false"
  53.  
  54. # Set to true to use modprobed db to clean config from unneeded modules. Speeds up compilation considerably. Requires root - https://wiki.archlinux.org/index.php/Modprobed-db
  55. # Using this option can trigger user prompts if the config doesn't go smoothly.
  56. # !!!! Make sure to have a well populated db !!!! - Leave empty to be asked about it at build time
  57. _modprobeddb="false"
  58.  
  59. # modprobed-db database file location
  60. _modprobeddb_db_path=~/.config/modprobed.db
  61.  
  62. # Set to "1" to call make menuconfig, "2" to call make nconfig, "3" to call make xconfig, before building the kernel. Set to false to disable and skip the prompt.
  63. _menunconfig=""
  64.  
  65. # Set to true to generate a kernel config fragment from your changes in menuconfig/nconfig. Set to false to disable and skip the prompt.
  66. _diffconfig=""
  67.  
  68. # Set to the file name where the generated config fragment should be written to. Only used if _diffconfig is active.
  69. _diffconfig_name=""
  70.  
  71. # [install.sh: Generic and Gentoo specific] Dracut options when generating initramfs
  72. _dracut_options="--lz4"
  73.  
  74. #### KERNEL OPTIONS ####
  75.  
  76. # Name of the default config file to use for the kernel
  77. # Default (empty) : "config.x86_64" from the linux-tkg-config/5.y folder.
  78. # "running-kernel" : Picks the .config file from the currently running kernel.
  79. # It is recommended to be running an official kernel before running this script, to pick off a correct .config file
  80. # "config_hardened.x86_64" : config file for a hardened kernel, available for kernel version "5.13", "5.10" and "5.4" .
  81. # To get a complete hardened setup, you have to use "cfs" as _cpusched.
  82. # User provided value : custom user provided file, the given path should be relative to the PKGBUILD file. This enables for example to use a user stripped down .config file.
  83. # If the .config file isn't up to date with the chosen kernel version, any extra CONFIG_XXXX is set to its default value.
  84. # Note: the script copies the resulting .config file as "kernelconfig.new" next to the PKGBUILD as a convenience for an eventual re-use. It gets overwritten at each run.
  85. # One can use "kernelconfig.new" here to always use the latest edited .config file. modprobed-db needs to be used only once for its changes to be picked up.
  86. _configfile=""
  87.  
  88. # Determine whether to call "olddefconfig" (default) or "oldconfig" for manual config updating interaction.
  89. _config_updating="olddefconfig"
  90.  
  91. # Disable some non-module debugging - See PKGBUILD for the list
  92. _debugdisable="false"
  93.  
  94. # Strip the vmlinux file after build is done. Set to anything other than "true" if you require debug headers. Default is "true"
  95. _STRIP="true"
  96.  
  97. # LEAVE AN EMPTY VALUE TO BE PROMPTED ABOUT FOLLOWING OPTIONS AT BUILD TIME
  98.  
  99. # CPU scheduler - Options are "upds" (TkG's Undead PDS), "pds", "bmq", "muqss", "cacule", "tt", "bore" or "cfs" (kernel's default)
  100. _cpusched="pds"
  101.  
  102. # Compiler to use - Options are "gcc" or "llvm".
  103. # For advanced users.
  104. _compiler="llvm"
  105.  
  106. # Force the use of the LLVM Integrated Assembler whether using LLVM, LTO or not.
  107. # Set to "1" to enable.
  108. _llvm_ias=""
  109.  
  110. # Clang LTO mode, only available with the "llvm" compiler - options are "no", "full" or "thin".
  111. # ! This is currently experimental and might result in an unbootable kernel - Not recommended !
  112. # "no: do not enable LTO"
  113. # "full: uses 1 thread for Linking, slow and uses more memory, theoretically with the highest performance gains."
  114. # "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
  115. _lto_mode="thin"
  116.  
  117. # Apply PREEMPT_RT patchset to the kernel.
  118. # ! Only CFS CPU scheduler is compatible with this patchset !
  119. # Set to "1" to enable.
  120. _preempt_rt=""
  121.  
  122. # Forcibly apply the PREEMPT_RT patchset to the kernel, even when upstream does not officially support the kernel subversion.
  123. # ! This will still not apply when the patch itself or linux-tkg (see _version) do not support the kernel major version - Not recommended !
  124. # Set to "1" to enable.
  125. _preempt_rt_force=""
  126.  
  127. # CPU sched_yield_type - Choose what sort of yield sched_yield will perform
  128. # For PDS and MuQSS: 0: No yield. (Recommended option for gaming on PDS and MuQSS)
  129. # 1: Yield only to better priority/deadline tasks. (Default - can be unstable with PDS on some platforms)
  130. # 2: Expire timeslice and recalculate deadline. (Usually the slowest option for PDS and MuQSS, not recommended)
  131. # For BMQ: 0: No yield.
  132. # 1: Deboost and requeue task. (Default)
  133. # 2: Set rq skip task.
  134. _sched_yield_type="0"
  135.  
  136. # Round Robin interval is the longest duration two tasks with the same nice level will be delayed for. When CPU time is requested by a task, it receives a time slice equal
  137. # to the rr_interval in addition to a virtual deadline. When using yield_type 2, a low value can help offset the disadvantages of rescheduling a process that has yielded.
  138. # MuQSS default: 6ms"
  139. # PDS default: 4ms"
  140. # BMQ default: 2ms"
  141. # Set to "1" for 2ms, "2" for 4ms, "3" for 6ms, "4" for 8ms, or "default" to keep the chosen scheduler defaults.
  142. _rr_interval=""
  143.  
  144. # Set to "true" to disable FUNCTION_TRACER/GRAPH_TRACER, lowering overhead but limiting debugging and analyzing of kernel functions - Kernel default is "false"
  145. _ftracedisable="true"
  146.  
  147. # Set to "true" to disable NUMA, lowering overhead, but breaking CUDA/NvEnc on Nvidia equipped systems - Kernel default is "false"
  148. _numadisable="true"
  149.  
  150. # Set to "true" to enable misc additions - May contain temporary fixes pending upstream or changes that can break on non-Arch - Kernel default is "true"
  151. _misc_adds="true"
  152.  
  153. # Set to "0" for periodic ticks, "1" to use CattaRappa mode (enabling full tickless) and "2" for tickless idle only.
  154. # Full tickless can give higher performances in case you use isolation of CPUs for tasks
  155. # and it works only when using the nohz_full kernel parameter, otherwise behaves like idle.
  156. # Just tickless idle perform better for most platforms.
  157. _tickless="" # TODO: set true?
  158.  
  159. # Set to "true" to use ACS override patch - https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Bypassing_the_IOMMU_groups_.28ACS_override_patch.29 - Kernel default is "false"
  160. _acs_override=""
  161.  
  162. # Set to "true" to add Bcache filesystem support. You'll have to install bcachefs-tools-git from AUR for utilities - https://bcachefs.org/ - If in doubt, set to "false"
  163. # This can be buggy and isn't recommended on a production machine, also enabling this option will not allow you to enable MGLRU.
  164. _bcachefs="false"
  165.  
  166. # Set to "true" to enable support for winesync, an experimental replacement for esync - requires patched wine - https://repo.or.cz/linux/zf.git/shortlog/refs/heads/winesync4
  167. # ! Can't be used on multiple kernels installed side-by-side, which will require https://aur.archlinux.org/packages/winesync-dkms/ instead of this option !
  168. _winesync="false"
  169.  
  170. # Set to "true" to enable Binder and Ashmem, the kernel modules required to use the android emulator Anbox. ! This doesn't apply to 5.4.y !
  171. _anbox="false"
  172.  
  173. # A selection of patches from Zen/Liquorix kernel and additional tweaks for a better gaming experience (ZENIFY) - Default is "true"
  174. _zenify="true"
  175.  
  176. # compiler optimization level - 1. Optimize for performance (-O2); 2. Optimize harder (-O3); 3. Optimize for size (-Os) - Kernel default is "1"
  177. _compileroptlevel="2"
  178.  
  179. # CPU compiler optimizations - Defaults to prompt at kernel config if left empty
  180. # AMD CPUs : "k8" "k8sse3" "k10" "barcelona" "bobcat" "jaguar" "bulldozer" "piledriver" "steamroller" "excavator" "zen" "zen2" "zen3" "zen4" (zen3 opt support depends on GCC11) (zen4 opt support depends on GCC13)
  181. # Intel CPUs : "mpsc"(P4 & older Netburst based Xeon) "atom" "core2" "nehalem" "westmere" "silvermont" "sandybridge" "ivybridge" "haswell" "broadwell" "skylake" "skylakex" "cannonlake" "icelake" "goldmont" "goldmontplus" "cascadelake" "cooperlake" "tigerlake" "sapphirerapids" "rocketlake" "alderlake" "raptorlake" "meteorlake" (raptorlake and meteorlake opt support require GCC13)
  182. # Other options :
  183. # - "native_amd" (use compiler autodetection - Selecting your arch manually in the list above is recommended instead of this option)
  184. # - "native_intel" (use compiler autodetection and will prompt for P6_NOPS - Selecting your arch manually in the list above is recommended instead of this option)
  185. # - "generic" (kernel's default - to share the package between machines with different CPU µarch as long as they are x86-64)
  186. #
  187. # https://en.wikipedia.org/wiki/X86-64#Microarchitecture_Levels)
  188. # - "generic_v2" (depends on GCC11 - to share the package between machines with different CPU µarch supporting at least x86-64-v2
  189. # - "generic_v3" (depends on GCC11 - to share the package between machines with different CPU µarch supporting at least x86-64-v3
  190. # - "generic_v4" (depends on GCC11 - to share the package between machines with different CPU µarch supporting at least x86-64-v4
  191. _processor_opt="zen3"
  192.  
  193. # CacULE only - Enable Response Driven Balancer, an experimental load balancer for CacULE
  194. _cacule_rdb="false"
  195.  
  196. # CacULE only - Load balance time period - Default is 19
  197. # https://github.com/hamadmarri/cacule-cpu-scheduler/blob/master/patches/CacULE/RDB/rdb.patch#L56
  198. _cacule_rdb_interval="19"
  199.  
  200. # TT only - Enable High HZ patch (available for 5.15 only) - Default is "false"
  201. _tt_high_hz="false"
  202.  
  203. # MuQSS and PDS only - SMT (Hyperthreading) aware nice priority and policy support (SMT_NICE) - Kernel default is "true" - You can disable this on non-SMT/HT CPUs for lower overhead
  204. _smt_nice=""
  205.  
  206. # Trust the CPU manufacturer to initialize Linux's CRNG (RANDOM_TRUST_CPU) - Kernel default is "false"
  207. _random_trust_cpu="true"
  208.  
  209. # Timer frequency - "100" "250" "300" "500" "750" "1000" ("2000" is available for cacule cpusched only) - More options available in kernel config prompt when left empty depending on selected cpusched with the default option pointed with a ">" (2000 for cacule, 100 for muqss and 1000 for other cpu schedulers)
  210. _timer_freq=""
  211.  
  212. # Default CPU governor - "performance", "ondemand", "schedutil" or leave empty for default (schedutil)
  213. _default_cpu_gov="ondemand"
  214.  
  215. # Use an aggressive ondemand governor instead of default ondemand to improve performance on low loads/high core count CPUs while keeping some power efficiency from frequency scaling.
  216. # It still requires you to either set ondemand as default governor or to select it in some way at runtime.
  217. _aggressive_ondemand="false"
  218.  
  219. # [Advanced] Default TCP IPv4 algorithm to use. Options are: "yeah", "bbr", "cubic", "reno", "vegas" and "westwood". Leave empty if unsure.
  220. # This config option will not be prompted
  221. # Can be changed at runtime with the command line `# echo "$name" > /proc/sys/net/ipv4/tcp_congestion_control` where $name is one of the options above.
  222. # Default (empty) and fallback : cubic
  223. _tcp_cong_alg=""
  224.  
  225. # You can pass a default set of kernel command line options here - example: "intel_pstate=passive nowatchdog amdgpu.ppfeaturemask=0xfffd7fff mitigations=off"
  226. _custom_commandline="intel_pstate=passive split_lock_detect=off"
  227.  
  228. # Selection of Clearlinux patches
  229. _clear_patches="true"
  230.  
  231.  
  232. #### SPESHUL OPTION ####
  233.  
  234. # If you want to bypass the stock naming scheme and enforce something else (example : "linux") - Useful for some bootloaders requiring manual entry editing on each release.
  235. # !!! It will also change pkgname - If you don't explicitely need this, don't use it !!!
  236. _custom_pkgbase=""
  237.  
  238. # [non-Arch specific] Kernel localversion. Putting it to "Mario" will make for example the kernel version be 5.7.0-tkg-Mario (given by uname -r)
  239. # If left empty, it will use "-tkg-${_cpusched}${_compiler}" where "${_cpusched}" will be replaced by the user chosen scheduler, ${_compiler} will be replaced by "-llvm" if clang is used (nothing for GCC).
  240. _kernel_localversion=""
  241.  
  242. # Set to your maximum number of CPUs (physical + logical cores) - Lower means less overhead - You can set it to "$(nproc)" to use the current host's CPU(s) core count, or leave empty to use default
  243. # If you set this to a lower value than you have cores, some cores will be disabled
  244. # Default Arch kernel value is 320
  245. _NR_CPUS_value=""
  246.  
  247. #### LEGACY OPTIONS ####
  248.  
  249. # Set to "true" to enable support for fsync, an experimental replacement for esync found in Valve Proton 4.11+ - https://steamcommunity.com/games/221410/announcements/detail/2957094910196249305
  250. # Can be enabled alongside _futex_waitv on 5.13+ to use it as a fallback for older Proton builds
  251. _fsync="true"
  252.  
  253. # Set to "true" to enable backported patches to add support for the futex_waitv() syscall, a new interface for fsync. Upstream as of 5.16 and requires a wine/proton with builtin support for it - https://github.com/ValveSoftware/wine/pull/128
  254. # !! Disables futex2 interfaces support !!
  255. # https://github.com/andrealmeid/futex_waitv_patches
  256. _futex_waitv="true"
  257.  
  258. # Set to "true" to enable support for futex2, an experimental interface that can be used by proton-tkg and proton 5.13 experimental through Fsync - Can be enabled alongside fsync to use it as a fallback
  259. # https://gitlab.collabora.com/tonyk/linux/-/tree/futex2-dev
  260. _futex2="true"
  261.  
  262. # Set to "true" to add back missing symbol for AES-NI/AVX support on ZFS - This is a legacy option that can be ignored on 5.10+ kernels - https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel/export_kernel_fpu_functions.patch
  263. _zfsfix="true"
  264.  
  265. # MuQSS only - CPU scheduler runqueue sharing - No sharing (RQ_NONE), SMT (hyperthread) siblings (RQ_SMT), Multicore siblings (RQ_MC), Symmetric Multi-Processing (RQ_SMP), NUMA (RQ_ALL)
  266. # Valid values are "none", "smt", "mc", "mc-llc"(for zen), "smp", "all" - Kernel default is "smt"
  267. _runqueue_sharing=""
  268.  
  269. # MuQSS only - Make IRQ threading compulsory (FORCE_IRQ_THREADING) - Default is "false"
  270. _irq_threading="false"
  271.  
  272. # Set to "true" to add multi-generational LRU framework support on kernel 5.18+ - Improves memory pressure handling - https://lore.kernel.org/lkml/[email protected]/
  273. # Older kernel versions might have a patch available in the community-patches repo
  274. # Upstream as of 6.1
  275. # ! This option will be disabled when bcachefs is enabled !
  276. _mglru="true"
  277.  
  278. #### USER PATCHES ####
  279.  
  280. # community patches - add patches (separated by a space) of your choice by name from the community-patches dir
  281. # example: _community_patches="clear_nack_in_tend_isr.myrevert ffb_regression_fix.mypatch 0008-drm-amd-powerplay-force-the-trim-of-the-mclk-dpm-levels-if-OD-is-enabled.mypatch"
  282. _community_patches=""
  283.  
  284. # You can use your own patches by putting them in a subfolder called linux<version>-tkg-userpatches (e.g. linux510-tkg-userpatches) next to the PKGBUILD and giving them the .mypatch extension.
  285. # You can also revert patches by putting them in that same folder and giving them the .myrevert extension.
  286.  
  287. # Also, userpatches variable below must be set to true for the above to work.
  288. _user_patches="true"
  289.  
  290. # Apply all user patches without confirmation - !!! NOT RECOMMENDED !!!
  291. _user_patches_no_confirm="false"
  292.  
  293.  
  294. #### CONFIG FRAGMENTS ####
  295.  
  296. # You can use your own kernel config fragments by putting them in the same folder as the PKGBUILD and giving them the .myfrag extension.
  297.  
  298. # Also, the config fragments variable below must be set to true for the above to work.
  299. _config_fragments="true"
  300.  
  301. # Apply all config fragments without confirmation - !!! NOT RECOMMENDED !!!
  302. _config_fragments_no_confirm="false"
  303.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement