diff options
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -82,7 +82,6 @@ pkgrel=${xanmod} pkgdesc='Linux Xanmod - Stable Mainline [MAIN]' 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 |