|
127 | 127 | # Use this only if you have Turing+ GPU |
128 | 128 | : "${_build_nvidia_open:=no}" |
129 | 129 |
|
130 | | -# Build a debug package with non-stripped vmlinux |
131 | | -: "${_build_debug:=no}" |
132 | | - |
133 | 130 | # ATTENTION: Do not modify after this line |
134 | 131 | _is_lto_kernel() { |
135 | 132 | [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] |
@@ -162,7 +159,7 @@ _kernuname="${pkgver}-${_pkgsuffix}" |
162 | 159 | arch=('x86_64') |
163 | 160 | url="https://github.com/CachyOS/linux-cachyos" |
164 | 161 | license=('GPL-2.0-only') |
165 | | -options=('!strip' '!debug' '!lto') |
| 162 | +options=('!lto' 'zipkmod') |
166 | 163 | makedepends=( |
167 | 164 | bc |
168 | 165 | cpio |
@@ -605,38 +602,11 @@ _package-headers() { |
605 | 602 | echo "Removing loose objects..." |
606 | 603 | find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete |
607 | 604 |
|
608 | | - echo "Stripping build tools..." |
609 | | - local file |
610 | | - while read -rd '' file; do |
611 | | - case "$(file -Sib "$file")" in |
612 | | - application/x-sharedlib\;*) # Libraries (.so) |
613 | | - strip -v $STRIP_SHARED "$file" ;; |
614 | | - application/x-archive\;*) # Libraries (.a) |
615 | | - strip -v $STRIP_STATIC "$file" ;; |
616 | | - application/x-executable\;*) # Binaries |
617 | | - strip -v $STRIP_BINARIES "$file" ;; |
618 | | - application/x-pie-executable\;*) # Relocatable binaries |
619 | | - strip -v $STRIP_SHARED "$file" ;; |
620 | | - esac |
621 | | - done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0) |
622 | | - |
623 | | - echo "Stripping vmlinux..." |
624 | | - strip -v $STRIP_STATIC "$builddir/vmlinux" |
625 | | - |
626 | 605 | echo "Adding symlink..." |
627 | 606 | mkdir -p "$pkgdir/usr/src" |
628 | 607 | ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" |
629 | 608 | } |
630 | 609 |
|
631 | | -_package-dbg(){ |
632 | | - pkgdesc="Non-stripped vmlinux file for the $pkgdesc kernel" |
633 | | - depends=("${pkgbase}-headers") |
634 | | - |
635 | | - cd "${_srcname}" |
636 | | - mkdir -p "$pkgdir/usr/src/debug/${pkgbase}" |
637 | | - install -Dt "$pkgdir/usr/src/debug/${pkgbase}" -m644 vmlinux |
638 | | -} |
639 | | - |
640 | 610 | _package-zfs(){ |
641 | 611 | pkgdesc="zfs module for the $pkgdesc kernel" |
642 | 612 | depends=('pahole' "${pkgbase}=${_kernver}") |
@@ -689,7 +659,6 @@ _package-nvidia-open(){ |
689 | 659 | } |
690 | 660 |
|
691 | 661 | pkgname=("$pkgbase") |
692 | | -[ "$_build_debug" = "yes" ] && pkgname+=("$pkgbase-dbg") |
693 | 662 | pkgname+=("$pkgbase-headers") |
694 | 663 | [ "$_build_zfs" = "yes" ] && pkgname+=("$pkgbase-zfs") |
695 | 664 | [ "$_build_nvidia" = "yes" ] && pkgname+=("$pkgbase-nvidia") |
|
0 commit comments