mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 11:07:13 +08:00
linux-lts move KERNEL_VERSION inside the function call
This commit is contained in:
parent
cd7afdbb90
commit
dbdd9837b2
@ -13,7 +13,7 @@
|
||||
# adding '+' in front of the pkgname cause
|
||||
# a pkgrel++ only (deps version updated too)
|
||||
#
|
||||
# GitLab-CI:0
|
||||
# GitLab-CI:1
|
||||
|
||||
#core_packages
|
||||
linux-lts
|
||||
|
@ -13,20 +13,21 @@ _extramodules=extramodules-CHAKRA-LTS
|
||||
source=("http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz")
|
||||
sha1sums=('213854ca8a83f9b5972db8fa873d346124e4bcb5')
|
||||
|
||||
KERNEL_VERSION=$(</usr/lib/modules/$_extramodules/version)
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$_pkgname-$pkgver"
|
||||
sed -i "/modinfo/s/s/usr\//" driver/Makefile
|
||||
}
|
||||
|
||||
build() {
|
||||
KERNEL_VERSION=$(cat /usr/lib/modules/$_extramodules/version)
|
||||
cd ndiswrapper-$pkgver
|
||||
|
||||
make -C driver KVERS_UNAME=${KERNEL_VERSION}
|
||||
make -C utils
|
||||
}
|
||||
|
||||
package() {
|
||||
KERNEL_VERSION=$(cat /usr/lib/modules/$_extramodules/version)
|
||||
cd ndiswrapper-$pkgver
|
||||
|
||||
make sbindir=usr/sbin usrsbindir=usr/bin KBUILD="/usr/lib/modules/$KERNEL_VERSION/build/" INST_DIR="usr/lib/modules/$_extramodules" \
|
||||
|
Loading…
Reference in New Issue
Block a user