5.16.18-2 (clr 5.16.18-1137) improve _debug option

This commit is contained in:
Josip Ponjavic 2022-03-31 17:18:40 +02:00
parent a6e7f48a23
commit 04515bcf6c
2 changed files with 17 additions and 9 deletions

View file

@ -1,7 +1,7 @@
pkgbase = linux-clear
pkgdesc = Clear Linux
pkgver = 5.16.18
pkgrel = 1
pkgrel = 2
url = https://github.com/clearlinux-pkgs/linux
arch = x86_64
license = GPL2
@ -16,7 +16,7 @@ pkgbase = linux-clear
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.16.tar.xz
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.16.tar.sign
source = https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-5.16.18.xz
source = linux-clear::git+https://github.com/clearlinux-pkgs/linux.git#tag=5.16.17-1136
source = linux-clear::git+https://github.com/clearlinux-pkgs/linux.git#tag=5.16.18-1137
source = more-uarches-20211114.tar.gz::https://github.com/graysky2/kernel_compiler_patch/archive/20211114.tar.gz
source = 0001-pci-Enable-overrides-for-missing-ACS-capabilities.patch::https://raw.githubusercontent.com/xanmod/linux-patches/6b08df20f31708099a7fbccf5448958b4836118f/linux-5.16.y-xanmod/pci_acso/0001-pci-Enable-overrides-for-missing-ACS-capabilities.patch
source = 0001-sysctl-add-sysctl-to-disallow-unprivileged-CLONE_NEW.patch::https://raw.githubusercontent.com/xanmod/linux-patches/6b08df20f31708099a7fbccf5448958b4836118f/linux-5.16.y-xanmod/userns/0001-sysctl-add-sysctl-to-disallow-unprivileged-CLONE_NEW.patch

View file

@ -74,7 +74,9 @@
# Enable compiling with LLVM
: "${_use_llvm_lto:=""}"
# Enable debug options
# Enable/Disable debug options
# Set 'y' to enable, 'n' to force disable debug options if already enabled in your
# .config file or leave empty to ignore debug options.
: "${_debug:=""}"
### IMPORTANT: Do no edit below this line unless you know what you're doing
@ -82,10 +84,10 @@
_major=5.16
_minor=18
_srcname=linux-${_major}
_clr=${_major}.17-1136
_clr=${_major}.18-1137
pkgbase=linux-clear
pkgver=${_major}.${_minor}
pkgrel=1
pkgrel=2
pkgdesc='Clear Linux'
arch=('x86_64')
url="https://github.com/clearlinux-pkgs/linux"
@ -149,8 +151,8 @@ prepare() {
echo "Setting config..."
cp -Tf $srcdir/$pkgbase/config ./.config
### Enable extra stuff from arch kernel
echo "Enable extra stuff from arch kernel..."
### Enable extra options
echo "Enable extra options..."
# General setup
scripts/config --set-str DEFAULT_HOSTNAME archlinux \
@ -228,12 +230,18 @@ prepare() {
--enable HAVE_GCC_PLUGINS
fi
if [ -n "$_debug" ]; then
if [ "$_debug" == "y" ]; then
scripts/config --enable DEBUG_INFO \
--enable DEBUG_INFO_BTF \
--enable DEBUG_INFO_DWARF4 \
--enable PAHOLE_HAS_SPLIT_BTF \
--enable DEBUG_INFO_BTF_MODULES
elif [ "$_debug" == "n" ]; then
scripts/config --disable DEBUG_INFO \
--disable DEBUG_INFO_BTF \
--disable DEBUG_INFO_DWARF4 \
--disable PAHOLE_HAS_SPLIT_BTF \
--disable DEBUG_INFO_BTF_MODULES
fi
make ${BUILD_FLAGS[*]} olddefconfig
@ -340,7 +348,7 @@ _package-headers() {
install -Dt "$builddir/tools/objtool" tools/objtool/objtool
# required when DEBUG_INFO_BTF_MODULES is enabled
if [ -n "$_debug" ]; then
if [ -f tools/bpf/resolve_btfids/resolve_btfids ]; then
install -Dt "$builddir/tools/bpf/resolve_btfids" tools/bpf/resolve_btfids/resolve_btfids
fi