linux: update
This commit is contained in:
parent
f239ae96ec
commit
e042dc1db4
1 changed files with 8 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
|||
pkgbase=linux # Build stock -ARCH kernel
|
||||
#pkgbase=linux-custom # Build kernel with a different name
|
||||
_srcname=linux
|
||||
pkgver=4.16rc1.r189.g1cf17410ad12
|
||||
pkgver=4.16rc1.r227.g659210bbdd7c
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
url="https://www.kernel.org/"
|
||||
|
@ -50,8 +50,10 @@ CONFIG_LOCALVERSION="${_kernelname}"
|
|||
CONFIG_LOCALVERSION_AUTO=n
|
||||
END
|
||||
|
||||
# set extraversion to pkgrel
|
||||
sed -i "/^EXTRAVERSION =/s/=.*/= -${pkgrel}/" Makefile
|
||||
# set extraversion to pkgrel and empty localversion
|
||||
sed -e "/^EXTRAVERSION =/s/=.*/= -${pkgrel}/" \
|
||||
-e "/^EXTRAVERSION =/aLOCALVERSION =" \
|
||||
-i Makefile
|
||||
|
||||
# don't run depmod on 'make install'. We'll do this ourselves in packaging
|
||||
sed -i '2iexit 0' scripts/depmod.sh
|
||||
|
@ -77,7 +79,7 @@ END
|
|||
build() {
|
||||
cd ${_srcname}
|
||||
|
||||
make ${MAKEFLAGS} LOCALVERSION= bzImage modules
|
||||
make bzImage modules
|
||||
}
|
||||
|
||||
_package() {
|
||||
|
@ -91,12 +93,12 @@ _package() {
|
|||
cd ${_srcname}
|
||||
|
||||
# get kernel version
|
||||
_kernver="$(make LOCALVERSION= kernelrelease)"
|
||||
_kernver="$(make kernelrelease)"
|
||||
_basekernel=${_kernver%%-*}
|
||||
_basekernel=${_basekernel%.*}
|
||||
|
||||
mkdir -p "${pkgdir}"/{boot,usr/lib/modules}
|
||||
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}/usr" modules_install
|
||||
make INSTALL_MOD_PATH="${pkgdir}/usr" modules_install
|
||||
cp arch/x86/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
|
||||
|
||||
# make room for external modules
|
||||
|
|
Loading…
Add table
Reference in a new issue