@ -83,7 +83,7 @@ else
fi
fi
pkgname = ( " ${ pkgbase } " " ${ pkgbase } -headers " )
pkgname = ( " ${ pkgbase } " " ${ pkgbase } -headers " )
_basekernel = 5.7
_basekernel = 5.7
_sub = rc7
_sub = 0
pkgver = " ${ _basekernel } " ." ${ _sub } "
pkgver = " ${ _basekernel } " ." ${ _sub } "
pkgrel = 1
pkgrel = 1
pkgdesc = 'Linux-tkg'
pkgdesc = 'Linux-tkg'
@ -93,7 +93,8 @@ license=('GPL2')
makedepends = ( 'xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'libelf' 'patchutils' 'flex' 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick' 'git' )
makedepends = ( 'xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'libelf' 'patchutils' 'flex' 'python-sphinx' 'python-sphinx_rtd_theme' 'graphviz' 'imagemagick' 'git' )
optdepends = ( 'schedtool' )
optdepends = ( 'schedtool' )
options = ( '!strip' )
options = ( '!strip' )
source = ( " https://git.kernel.org/torvalds/t/linux- ${ _basekernel } - ${ _sub } .tar.gz "
source = ( " https://www.kernel.org/pub/linux/kernel/v5.x/linux- ${ _basekernel } .tar.xz "
#"https://www.kernel.org/pub/linux/kernel/v5.x/patch-${pkgver}.xz"
'config.x86_64' # stock Arch config
'config.x86_64' # stock Arch config
#'config_hardened.x86_64' # hardened Arch config
#'config_hardened.x86_64' # hardened Arch config
90-cleanup.hook
90-cleanup.hook
@ -119,8 +120,8 @@ source=("https://git.kernel.org/torvalds/t/linux-${_basekernel}-${_sub}.tar.gz"
0011-ZFS-fix.patch
0011-ZFS-fix.patch
#0012-linux-hardened.patch
#0012-linux-hardened.patch
)
)
sha256sums = ( ' a65ccee5e098c62bce7a053c322b3eba96904561a785e42c46b76069b323dc87 '
sha256sums = ( ' de8163bb62f822d84f7a3983574ec460060bf013a78ff79cd7c979ff1ec1d7e0 '
' 0352c5ef2030d6bbdeae2325454d20575339917411c646004e5c7b7b5794db60 '
' 9e516aaa68e57a07f428d8bca20ffcfca5dba505d397911ac604e00512132f7b '
'1e15fc2ef3fa770217ecc63a220e5df2ddbcf3295eb4a021171e7edd4c6cc898'
'1e15fc2ef3fa770217ecc63a220e5df2ddbcf3295eb4a021171e7edd4c6cc898'
'66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997'
'66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997'
'31dc68e84aecfb7d069efb1305049122c65694676be8b955634abcf0675922a2'
'31dc68e84aecfb7d069efb1305049122c65694676be8b955634abcf0675922a2'
@ -193,7 +194,7 @@ prepare() {
ln -s " ${ _where } /customization.cfg " " ${ srcdir } " # workaround
ln -s " ${ _where } /customization.cfg " " ${ srcdir } " # workaround
cd " ${ srcdir } /linux- ${ _basekernel } -${ _sub } "
cd " ${ srcdir } /linux- ${ _basekernel } "
msg2 "Setting version..."
msg2 "Setting version..."
scripts/setlocalversion --save-scmversion
scripts/setlocalversion --save-scmversion
@ -759,7 +760,7 @@ prepare() {
# Community patches
# Community patches
if [ -n " $_community_patches " ] ; then
if [ -n " $_community_patches " ] ; then
if [ ! -d " $_where /../../community-patches " ] ; then
if [ ! -d " $_where /../../community-patches " ] ; then
cd " $_where /../.. " && git clone https://github.com/Frogging-Family/community-patches.git && cd " ${ srcdir } /linux- ${ _basekernel } -${ _sub } "
cd " $_where /../.. " && git clone https://github.com/Frogging-Family/community-patches.git && cd " ${ srcdir } /linux- ${ _basekernel } "
fi
fi
_community_patches = ( $_community_patches )
_community_patches = ( $_community_patches )
for _p in ${ _community_patches [@] } ; do
for _p in ${ _community_patches [@] } ; do
@ -885,7 +886,7 @@ prepare() {
}
}
build( ) {
build( ) {
cd " ${ srcdir } /linux- ${ _basekernel } -${ _sub } "
cd " ${ srcdir } /linux- ${ _basekernel } "
# Use custom compiler paths if defined
# Use custom compiler paths if defined
if [ -n " ${ CUSTOM_GCC_PATH } " ] ; then
if [ -n " ${ CUSTOM_GCC_PATH } " ] ; then
@ -923,7 +924,7 @@ hackbase() {
provides = ( " linux= ${ pkgver } " " ${ pkgbase } " VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
provides = ( " linux= ${ pkgver } " " ${ pkgbase } " VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE)
replaces = ( virtualbox-guest-modules-arch wireguard-arch)
replaces = ( virtualbox-guest-modules-arch wireguard-arch)
cd " ${ srcdir } /linux- ${ _basekernel } -${ _sub } "
cd " ${ srcdir } /linux- ${ _basekernel } "
# get kernel version
# get kernel version
local _kernver = " $( <version) "
local _kernver = " $( <version) "
@ -956,7 +957,7 @@ hackheaders() {
pkgdesc = " Headers and scripts for building modules for the $pkgdesc kernel "
pkgdesc = " Headers and scripts for building modules for the $pkgdesc kernel "
provides = ( " linux-headers= ${ pkgver } " " ${ pkgbase } -headers= ${ pkgver } " )
provides = ( " linux-headers= ${ pkgver } " " ${ pkgbase } -headers= ${ pkgver } " )
cd " ${ srcdir } /linux- ${ _basekernel } -${ _sub } "
cd " ${ srcdir } /linux- ${ _basekernel } "
local builddir = " ${ pkgdir } /usr/lib/modules/ $( <version) /build "
local builddir = " ${ pkgdir } /usr/lib/modules/ $( <version) /build "
msg2 "Installing build files..."
msg2 "Installing build files..."