linux: update

This commit is contained in:
nyyu 2018-02-18 09:32:49 +01:00
parent f239ae96ec
commit e042dc1db4

View file

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