linux: update
This commit is contained in:
parent
a5137ce1b9
commit
e7c11c498d
1 changed files with 12 additions and 15 deletions
|
@ -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.15rc5.r0.g464e1d5f23cc
|
pkgver=4.15rc7.r111.g5f615b97cdea
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://www.kernel.org/"
|
url="https://www.kernel.org/"
|
||||||
|
@ -38,6 +38,7 @@ prepare() {
|
||||||
|
|
||||||
# add upstream patch
|
# add upstream patch
|
||||||
#patch -p1 -i ../patch-${pkgver}
|
#patch -p1 -i ../patch-${pkgver}
|
||||||
|
chmod +x tools/objtool/sync-check.sh # GNU patch doesn't support git-style file mode
|
||||||
|
|
||||||
# security patches
|
# security patches
|
||||||
|
|
||||||
|
@ -96,32 +97,26 @@ _package() {
|
||||||
_basekernel=${_kernver%%-*}
|
_basekernel=${_kernver%%-*}
|
||||||
_basekernel=${_basekernel%.*}
|
_basekernel=${_basekernel%.*}
|
||||||
|
|
||||||
mkdir -p "${pkgdir}"/{boot,lib/{modules,firmware},usr}
|
mkdir -p "${pkgdir}"/{boot,usr/lib/modules}
|
||||||
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
|
make LOCALVERSION= 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
|
||||||
local _extramodules="extramodules-${_basekernel}${_kernelname:--ARCH}"
|
local _extramodules="extramodules-${_basekernel}${_kernelname:--ARCH}"
|
||||||
ln -s "../${_extramodules}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
|
ln -s "../${_extramodules}" "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"
|
||||||
|
|
||||||
# add real version for building modules and running depmod from hook
|
# add real version for building modules and running depmod from hook
|
||||||
echo "${_kernver}" |
|
echo "${_kernver}" |
|
||||||
install -Dm644 /dev/stdin "${pkgdir}/lib/modules/${_extramodules}/version"
|
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modules/${_extramodules}/version"
|
||||||
|
|
||||||
# remove build and source links
|
# remove build and source links
|
||||||
rm "${pkgdir}"/lib/modules/${_kernver}/{source,build}
|
rm "${pkgdir}"/usr/lib/modules/${_kernver}/{source,build}
|
||||||
|
|
||||||
# remove the firmware
|
|
||||||
rm -r "${pkgdir}/lib/firmware"
|
|
||||||
|
|
||||||
# now we call depmod...
|
# now we call depmod...
|
||||||
depmod -b "${pkgdir}" -F System.map "${_kernver}"
|
depmod -b "${pkgdir}/usr" -F System.map "${_kernver}"
|
||||||
|
|
||||||
# add vmlinux
|
# add vmlinux
|
||||||
install -Dt "${pkgdir}/lib/modules/${_kernver}/build" -m644 vmlinux
|
install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/build" -m644 vmlinux
|
||||||
|
|
||||||
# move module tree /lib -> /usr/lib
|
|
||||||
mv -t "${pkgdir}/usr" "${pkgdir}/lib"
|
|
||||||
|
|
||||||
# sed expression for following substitutions
|
# sed expression for following substitutions
|
||||||
local _subst="
|
local _subst="
|
||||||
|
@ -170,7 +165,6 @@ _package-headers() {
|
||||||
install -Dt "${_builddir}/drivers/media/dvb-core" -m644 drivers/media/dvb-core/*.h
|
install -Dt "${_builddir}/drivers/media/dvb-core" -m644 drivers/media/dvb-core/*.h
|
||||||
|
|
||||||
# http://bugs.archlinux.org/task/13146
|
# http://bugs.archlinux.org/task/13146
|
||||||
install -Dt "${_builddir}/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/lgdt330x.h
|
|
||||||
install -Dt "${_builddir}/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h
|
install -Dt "${_builddir}/drivers/media/i2c" -m644 drivers/media/i2c/msp3400-driver.h
|
||||||
|
|
||||||
# http://bugs.archlinux.org/task/20402
|
# http://bugs.archlinux.org/task/20402
|
||||||
|
@ -197,6 +191,9 @@ _package-headers() {
|
||||||
# remove files already in linux-docs package
|
# remove files already in linux-docs package
|
||||||
rm -r "${_builddir}/Documentation"
|
rm -r "${_builddir}/Documentation"
|
||||||
|
|
||||||
|
# remove now broken symlinks
|
||||||
|
find -L "${_builddir}" -type l -printf 'Removing %P\n' -delete
|
||||||
|
|
||||||
# Fix permissions
|
# Fix permissions
|
||||||
chmod -R u=rwX,go=rX "${_builddir}"
|
chmod -R u=rwX,go=rX "${_builddir}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue