Package Base Details: linux-xanmod-lts

Git Clone URL: https://aur.archlinux.org/linux-xanmod-lts.git (read-only, click to copy)
Submitter: figue
Maintainer: figue (figuepluto, jfigueras)
Last Packager: figue
Votes: 13
Popularity: 0.000000
First Submitted: 2017-11-22 02:00 (UTC)
Last Updated: 2024-04-22 06:43 (UTC)

Pinned Comments

figue commented on 2018-12-15 22:40 (UTC) (edited on 2021-02-23 18:07 (UTC) by figue)

Please, check new release. You have now several variables to enable/disable features.

References:

##
## The following variables can be customized at build time. Use env or export to change at your wish
##
##   Example: env _microarchitecture=99 use_numa=n use_tracers=n use_pds=n makepkg -sc
##
## Look inside 'choose-gcc-optimization.sh' to choose your microarchitecture
## Valid numbers between: 0 to 99
## Default is: 0 => generic
## Good option if your package is for one machine: 99 => native
if [ -z ${_microarchitecture+x} ]; then
  _microarchitecture=0
fi

## Disable NUMA since most users do not have multiple processors. Breaks CUDA/NvEnc.
## Archlinux and Xanmod enable it by default.
## Set variable "use_numa" to: n to disable (possibly increase performance)
##                             y to enable  (stock default)
if [ -z ${use_numa+x} ]; then
  use_numa=y
fi

## For performance you can disable FUNCTION_TRACER/GRAPH_TRACER. Limits debugging and analyzing of the kernel.
## Stock Archlinux and Xanmod have this enabled. 
## Set variable "use_tracers" to: n to disable (possibly increase performance)
##                                y to enable  (stock default)
if [ -z ${use_tracers+x} ]; then
  use_tracers=y
fi

# Compile ONLY used modules to VASTLY reduce the number of modules built
# and the build time.
#
# To keep track of which modules are needed for your specific system/hardware,
# give module_db script a try: https://aur.archlinux.org/packages/modprobed-db
# This PKGBUILD read the database kept if it exists
#
# More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db
if [ -z ${_localmodcfg} ]; then
  _localmodcfg=n
fi

# Tweak kernel options prior to a build via nconfig
_makenconfig=

Personally I'm running now xanmod kernel compiled with this:

env use_numa=n use_tracers=n makepkg -s

Also, you can now put a file in your local repo to build this package with a custom config. You have to call this file myconfig.

Reference:

  # Put the file "myconfig" at the package folder (this will take preference) or "${XDG_CONFIG_HOME}/linux-xanmod/myconfig"
  # If we detect partial file with scripts/config commands, we execute as a script
  # If not, it's a full config, will be replaced

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

Markospox commented on 2020-02-14 20:05 (UTC)

How can I use this:

--build=x86_64-linux-gnu --disable-vtable-verify --disable-werror --enable-bootstrap --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-gnu-unique-object --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-multilib --enable-nls --enable-offload-targets=nvptx-none,hsa --enable-plugin --enable-shared --enable-threads=posix --host=x86_64-linux-gnu --program-prefix=x86_64-linux-gnu- --target=x86_64-linux-gnu --with-abi=m64 --with-arch-32=i686 --with-default-libstdcxx-abi=new --with-gcc-major-version-only --with-multilib-list=m32,m64,mx32 --with-target-system-zlib=auto --with-tune=generic --without-cuda-driver -v

to have possibly more tweaked kernel? Do I set CFLAGS to this? (https://www.phoronix.com/scan.php?page=article&item=xanmod-2020-kernel&num=1)

figue commented on 2019-02-06 22:10 (UTC)

For me, it looks like Arch kernel...

figue@pluto ~ % uname -a
Linux pluto 4.19.19-xanmod10-1-xanmod-lts #1 SMP PREEMPT Wed Feb 6 21:46:53 CET 2019 x86_64 GNU/Linux

but if you want to change I think you need to recompile. Keep your source files (don't use pacman wrappers or -c flag in makepkg) to rebuild if you need to test with CONFIG_LOCALVERSION.

figue commented on 2019-02-06 16:57 (UTC)

@Markospox I'll take a look later at home, maybe I need to merge something from the linux-lts PKGBUILD... Cheers

Markospox commented on 2019-02-06 13:22 (UTC)

How to change version? I get somehow 4.19.19-xanmod10-1-MANJARO-xanmod-lts-4.19.19 and I'd like 4.19.19-xanmod10-1-MANJARO

src/version: 4.19.19-xanmod10-1-MANJARO-xanmod-lts-4.19.19 src/linux-4.19.19-xanmod10/localversion: -xanmod10 src/linux-4.19.19-xanmod10/localversion.10-pkgrel: -1 src/linux-4.19.19-xanmod10/localversion.20-pkgname: -MANJARO CONFIG_LOCALVERSION="" in src/linux-4.19.19-xanmod10/.config

it'd be great if it was without recompiling the whole thing..