Make vmlinux stripping optional (#265)

* Update PKGBUILD

* Update customization.cfg

add option to toggle vmlinux stripping

* Update customization.cfg

* Preserve the message about stripping vmlinux

Co-authored-by: Etienne JUVIGNY <ti3nou@gmail.com>
This commit is contained in:
lordkitsuna
2021-06-17 03:51:11 -07:00
committed by GitHub
parent 52149ad829
commit e9ece39ace
2 changed files with 7 additions and 2 deletions

View File

@@ -725,8 +725,10 @@ hackheaders() {
mkdir -p "$pkgdir/usr/src"
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
echo "Stripping vmlinux..."
strip -v $STRIP_STATIC "$builddir/vmlinux"
if [ $_STRIP = "true" ]; then
echo "Stripping vmlinux..."
strip -v $STRIP_STATIC "$builddir/vmlinux"
fi
if [ $_NUKR = "true" ]; then
rm -rf "$srcdir" # Nuke the entire src folder so it'll get regenerated clean on next build

View File

@@ -76,6 +76,9 @@ _configfile=""
# Disable some non-module debugging - See PKGBUILD for the list
_debugdisable="false"
# Strip the vmlinux file after build is done. Set to anything other than "true" if you require debug headers. Default is "true"
_STRIP="true"
# LEAVE AN EMPTY VALUE TO BE PROMPTED ABOUT FOLLOWING OPTIONS AT BUILD TIME
# CPU scheduler - Options are "upds" (TkG's Undead PDS), "pds", "bmq", "muqss", "cacule" or "cfs" (kernel's default)