Package Details: linux-clear-headers 6.10.10-1

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)

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: Invokes make menuconfig (default configuration menu) before compilation starts
_makenconfig: Invokes make nconfig (nicer configuration menu) before compilation starts
_makexconfig: Invokes make xconfig (GUI configuration menu) before compilation starts
_use_current: Will use the configuration of the running kernel, if the running kernel is compiled with IKCONFIG_PROC
_copyfinalconfig: Copies the final kernel configuration into the repository root as kconfig-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 is 40 (Generic-x86-64), which is \compatible with all amd64 processors. Must be a number
_debug: Force enables debug options when set to y, force disables debug options when set to n or uses the config defaults when unset

All 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.

Latest Comments

« First ‹ Previous 1 .. 6 7 8 9 10 11 12 13 14 15 16 .. 49 Next › Last »

k0r0ng commented on 2022-01-11 15:06 (UTC)

Why CONFIG_KPROBES not included by default?

d00d00 commented on 2021-12-11 05:13 (UTC)

@metak @Moviuro You're both legends. Compiling on Skylake for Atom with single short script now, no interaction required. Thank you so much!

saltyming commented on 2021-12-10 12:31 (UTC)

@metak I can confirm that 5.15.7-3 and 5.15.7-4 changes work fine here! Happy to use clang kernel with new dkms support :)

metak commented on 2021-12-10 11:58 (UTC)

@d00d00 Added in 5.15.7-2. https://bugs.archlinux.org/task/72756

@xuanruiqi Added in 5.15.7-3. Haven't tried it too much so test it and we'll see.

@Moviuro Added in 5.15.7-4. I also changed it for the other variables as well.

Moviuro commented on 2021-12-10 11:13 (UTC)

Could we get the following diff in the PKGBUILD? rationale: I can now do _subarch=26 makepkg -sriCfc; and it correctly compiles for skylake, with no interaction from me. That way, I don't need to edit the PKGBUILD, or wait until I'm asked for the subarch in an interactive way.

The : "${var:="value"}" is a POSIX-compliant way to set a variable to a default value (in our case: the empty string), but only if it wasn't already set. This change has no impact for people who simply type makepkg, and it will still ask them (interactively) which subarch to compile for.

diff --git a/PKGBUILD b/PKGBUILD
index 13880d4..ff19d30 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -62,7 +62,7 @@ _localmodcfg=
 #  39. Generic-x86-64-v4 (GENERIC_CPU4)
 #  40. Intel-Native optimizations autodetected by GCC (MNATIVE_INTEL)
 #  41. AMD-Native optimizations autodetected by GCC (MNATIVE_AMD)
-_subarch=
+: "${_subarch:=""}"

 # Use the current kernel's .config file
 # Enabling this option will use the .config of the RUNNING kernel rather than

xuanruiqi commented on 2021-12-09 06:50 (UTC)

Could we have an option to enable Clang builds for the kernel? I would like to use a Clang/LLVM build with LTO.

d00d00 commented on 2021-12-09 00:21 (UTC) (edited on 2021-12-09 00:30 (UTC) by d00d00)

Hello! Would it be possible for you to add the KSMBD module to the default build for this kernel? It's a kernel-level SMB daemon that works really well on lighter-weight NAS machines and whatnot. It requires these configuration changes to be added to the PKGBUILD (assuming SMB Direct is desired):

# KSMBD
scripts/config --module SMB_SERVER \
--enable SMB_SERVER_SMBDIRECT

And it requires KSMBD-MODULE to be added to provides(). Sorry if this is too niche a request, and thank you for your work maintaining this package.

metak commented on 2021-12-01 12:43 (UTC) (edited on 2021-12-01 12:43 (UTC) by metak)

@mizzunet .cmdline file is meant for systemd-boot loader, but kernel should boot just fine without any modifications to cmd boot line.
If you're using GRUB then after installing this package you should only have to regerate grub.cfg file. See: 1 2

mizzunet commented on 2021-11-27 12:41 (UTC)

I'm having this error message for boot entry Arch Linux, with Linux linux-clear-bin.cmdline I do have another boot entry regarding clear, Arch Linux, with Linux linux-clear-bin which can be booted into.

Loading Linux linux
Error: premature end of file /vmlinuz-linux-clear-bin.cmdline
Loading initial ramdisk
Error: you need to load the kernel first
Press a key to continue

I have adjusted cmd boot line as pinned comment, that is

GRUB_CMDLINE_LINUX="quiet console=tty0 console=ttyS0,115200n8 cryptomgr.notests initcall_debug intel_iommu=igfx_off kvm-intel.nested=1 no_timer_check noreplace-smp page_alloc.shuffle=1 rcupdate.rcu_expedited=1 rootfstype=ext4,btrfs,xfs,f2fs tsc=reliable rw"

then had executed sudo grub-mkconfig -o /boot/grub/grub.cfg

saltyming commented on 2021-11-10 23:44 (UTC)

@metak It worked. Thanks^^