For those unfamiliar with CFLAGs/-march optimizations
> https://wiki.gentoo.org/wiki/Safe_CFLAGS
Info on what option to choose, the differences, etc..
tl;dr -march=native
is usually ideal
Git Clone URL: | https://aur.archlinux.org/linux-clear.git (read-only, click to copy) |
---|---|
Package Base: | linux-clear |
Description: | Linux kernel with patches from Clear Linux which allow for higher performance. This package includes header files and scripts for building kernel modules. |
Upstream URL: | https://github.com/clearlinux-pkgs/linux |
Keywords: | clear clearlinux intel kernel |
Licenses: | GPL-2.0-only |
Submitter: | metak |
Maintainer: | JeremyStarTM |
Last Packager: | JeremyStarTM |
Votes: | 73 |
Popularity: | 1.71 |
First Submitted: | 2018-01-18 21:47 (UTC) |
Last Updated: | 2024-09-14 15:49 (UTC) |
« First ‹ Previous 1 .. 9 10 11 12 13 14 15 16 17 18 19 .. 49 Next › Last »
> https://wiki.gentoo.org/wiki/Safe_CFLAGS
Info on what option to choose, the differences, etc..
tl;dr -march=native
is usually ideal
==> ERROR: Failure while downloading https://github.com/graysky2/kernel_compiler_patch/archive/20210817.tar.gz How to solve?
@xawiw Previously I removed that build parameter from PKGBUILD file because the proper way is to set it with MAKEFLAGS
in /etc/makepkg.conf
.
@Dobbie03 If you don't want native optimizations then choose skylake
.
What option should I choose for a Coffee Lake Core i9 9900?
@metak Can you please add multi-threading to the build parameters?
make bzImage modules -j$(nproc --all)
@PedroDePacas Version 20210606
was removed because of the broken patch for kernel versions 4.19-5.4. Fixed now.
@metak Hi. I'm getting this error:
Failure while downloading https://github.com/graysky2/kernel_compiler_patch/archive/20210606.tar.gz`
How can I fix it?
@metak, thanks, that was the case. Apparently 3G proved a bit low!. though i did check the usage and it stop while 250-300M was still available. and why the heck was i even using ram, my nvme SSD seems to be faster then that. thanks again for the tip.
@Khaithang Have you tried compiling on SSD/HD instread of in RAM to check you're not running out of space? BUILDDIR=/tmp/makepkg
Pinned Comments
JeremyStarTM commented on 2024-08-06 19:37 (UTC) (edited on 2024-08-18 08:22 (UTC) by JeremyStarTM)
The PKGBUILD supports customization via environment variables. Here's a list of all of them:
_makemenuconfig
: Invokesmake menuconfig
(default configuration menu) before compilation starts_makenconfig
: Invokesmake nconfig
(nicer configuration menu) before compilation starts_makexconfig
: Invokesmake xconfig
(GUI configuration menu) before compilation starts_use_current
: Will use the configuration of the running kernel, if the running kernel is compiled withIKCONFIG_PROC
_copyfinalconfig
: Copies the final kernel configuration into the repository root askconfig-new
before compilation starts_localmodcfg
: Only compiles modules found in modprobed-db's database (which decreases compilation time and kernel size)_use_llvm_lto
: Compiles the kernel with LLVM instead of GCC. Should work, if not write a comment_subarch
: Specifies the sub architecture to compile for (see the PKGBUILD file for a list of all subarches). Default is40
(Generic-x86-64), which is \compatible with all amd64 processors. Must be a number_debug
: Force enables debug options when set toy
, force disables debug options when set ton
or uses the config defaults when unsetAll of these variables just need to be set for them to apply, except for
_subarch
and_debug
.If you want a dead simple way to compile this package, you can try out my build tool. It includes a few no nonsense changes to the kernel configuration and allows you to configure the PKGBUILD in a simple manner and decrease build time. And if you don't want that, using
makepkg
as-is works fine too.JeremyStarTM commented on 2024-08-06 19:19 (UTC) (edited on 2024-08-06 19:40 (UTC) by JeremyStarTM)
Kernel has been updated and is now maintained again.
Thank you metak for creating this package in the first place.