@derfehler sorry about that. I merged PKGBUILD with -edge yesterday, but I didn't test it. Should be fixed now.
@smn try to delete src directory before building it again
Git Clone URL: | https://aur.archlinux.org/linux-xanmod.git (read-only, click to copy) |
---|---|
Package Base: | linux-xanmod |
Description: | The Linux kernel and modules with Xanmod patches |
Upstream URL: | http://www.xanmod.org/ |
Licenses: | GPL2 |
Provides: | KSMBD-MODULE, NTFS3-MODULE, VIRTUALBOX-GUEST-MODULES, WIREGUARD-MODULE |
Replaces: | virtualbox-guest-modules-arch, wireguard-arch |
Submitter: | Yoshi2889 |
Maintainer: | figue (figuepluto, jfigueras) |
Last Packager: | figue |
Votes: | 132 |
Popularity: | 0.57 |
First Submitted: | 2017-02-14 09:40 (UTC) |
Last Updated: | 2025-03-07 22:08 (UTC) |
@derfehler sorry about that. I merged PKGBUILD with -edge yesterday, but I didn't test it. Should be fixed now.
@smn try to delete src directory before building it again
Even when pointing cp -vf CONFIGS/xanmod/gcc/${_config} .config to CONFIGS/x86-64/config, the package does not build for me (patches fail to apply).
when compiling there is an error that there is no file at the path “CONFIGS/xanmod/gcc/config_x86-64-v2”. Now the config is in a different path “CONFIGS/x86-64/config”
Hi. Module compression does not work without
scripts/config --enable CONFIG_MODULE_COMPRESS
@murlakatamenka thank you. Will be added in next release.
@figue localmodconfig
part could be updated:
Could be:
yes '' | make LSMOD="$HOME/.config/modprobed.db" localmodconfig
@figue @Riedler encountered the same error when compiling linux-xanmod 6.11.11-1. solution was adding scripts/config --disable CONFIG_BPF_EVENTS
to myconfig.
@figue oh sweet, didn't know that would work, will try. I'm linking gcc and clang to force it to use ccache, couldn't get it to work any other way
@Nebrassy I'm not sure why you need to link gcc or clang to /usr/local/bin
And -j should work if you have configured in /etc/makepkg.conf
to use ccache, the only method I've found is to do
ccache -M 10G
ln -s /usr/bin/ccache /usr/local/bin/gcc
ln -s /usr/bin/ccache /usr/local/bin/clang
not sure if there's a better way for it
also, I've noticed only a couple threads are being used, at least with clang that is, had to add this which made the build go much faster, especially with ccache.
From a1c25c2366bf57304896aa952580796b7e8e44ab Mon Sep 17 00:00:00 2001
From: nebrassy <nebras30@gmail.com>
Date: Wed, 31 Jul 2024 01:01:00 +0530
Subject: [PATCH] multithreading with clang
---
PKGBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PKGBUILD b/PKGBUILD
index 12d61b6..bf2d4e7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -36,7 +36,7 @@ fi
## Choose between GCC and CLANG config (default is GCC)
## Use the environment variable "_compiler=clang"
if [ "${_compiler}" = "clang" ]; then
- _compiler_flags="CC=clang HOSTCC=clang LLVM=1 LLVM_IAS=1"
+ _compiler_flags="CC=clang HOSTCC=clang LLVM=1 LLVM_IAS=1 -j $(($(nproc) - 1))"
fi
# Choose between the 4 main configs for stable branch. Default x86-64-v1 which use CONFIG_GENERIC_CPU2:
--
2.45.2
Pinned Comments
anlorsp commented on 2024-07-13 17:07 (UTC) (edited on 2024-07-15 04:53 (UTC) by anlorsp)
Adding
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)
This package have several variables to enable/disable features.
Personally I'm running now xanmod kernel compiled with this:
Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):
Code involved: