diff options
author | Joan Figueras | 2024-03-06 09:13:56 +0100 |
---|---|---|
committer | Joan Figueras | 2024-03-06 09:13:56 +0100 |
commit | f08d4371032b8af37d48b6be8e4c99a8c0cdd161 (patch) | |
tree | af07f313ddae5fbddb8efe1a750046e3ff65c233 | |
parent | aac0ce6c51840a84698d143c4eeeba8c9c13dd48 (diff) | |
download | aur-f08d4371032b8af37d48b6be8e4c99a8c0cdd161.tar.gz |
Some minor changes from arch kernel package
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -82,7 +82,6 @@ pkgrel=${xanmod} pkgdesc='Linux Xanmod - Rolling Release [EDGE]' url="http://www.xanmod.org/" arch=(x86_64) - license=(GPL2) makedepends=( bc @@ -222,7 +221,9 @@ prepare() { fi fi + msg2 "make ${_compiler_flags} olddefconfig" make ${_compiler_flags} olddefconfig + #diff -u CONFIGS/xanmod/gcc/${_config} .config || : make -s kernelrelease > version msg2 "Prepared %s version %s" "$pkgbase" "$(<version)" @@ -238,6 +239,7 @@ prepare() { build() { cd linux-${_major} make ${_compiler_flags} all + make -C tools/bpf/bpftool vmlinux.h feature-clang-bpf-co-re=1 } _package() { @@ -290,7 +292,7 @@ _package-headers() { msg2 "Installing build files..." install -Dt "$builddir" -m644 .config Makefile Module.symvers System.map \ - localversion.* version vmlinux + localversion.* version vmlinux tools/bpf/bpftool/vmlinux.h install -Dt "$builddir/kernel" -m644 kernel/Makefile install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile cp -t "$builddir" -a scripts @@ -299,7 +301,7 @@ _package-headers() { install -Dt "$builddir/tools/objtool" tools/objtool/objtool # required when DEBUG_INFO_BTF_MODULES is enabled - if [ -f "tools/bpf/resolve_btfids/resolve_btfids" ]; then install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids ; fi + install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids msg2 "Installing headers..." cp -t "$builddir" -a include |