mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
rpi-kernel: update to 4.1.7.
This commit is contained in:
parent
6776ff1e29
commit
14f08ce147
1 changed files with 16 additions and 10 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'rpi-kernel'
|
# Template file for 'rpi-kernel'
|
||||||
#
|
#
|
||||||
_githash="6b30ac82c3595887416c7870c35c2cc522f801cc"
|
_githash="a43aae208a42640548b952838b450f31f731afd1"
|
||||||
_gitshort="${_githash:0:7}"
|
_gitshort="${_githash:0:7}"
|
||||||
|
|
||||||
pkgname=rpi-kernel
|
pkgname=rpi-kernel
|
||||||
version=4.1.6
|
version=4.1.7
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="linux-${_githash}"
|
wrksrc="linux-${_githash}"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -12,7 +12,7 @@ homepage="http://www.kernel.org"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
short_desc="The Linux kernel for Raspberry Pi (${version%.*} series [git ${_gitshort}])"
|
short_desc="The Linux kernel for Raspberry Pi (${version%.*} series [git ${_gitshort}])"
|
||||||
distfiles="https://github.com/raspberrypi/linux/archive/${_githash}.tar.gz"
|
distfiles="https://github.com/raspberrypi/linux/archive/${_githash}.tar.gz"
|
||||||
checksum=98182df1da1b2f24fed340890c9819b4ec5337071e6f57ef067b7302ba084337
|
checksum=41170d0ef8e0a7fdfb26acd27790df5aaf0d52b2315f8238242b44bf1c436a9a
|
||||||
|
|
||||||
_kernver="${version}_${revision}"
|
_kernver="${version}_${revision}"
|
||||||
|
|
||||||
|
@ -49,13 +49,16 @@ do_configure() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use upstream default configuration, no need to maintain ours.
|
# Use upstream default configuration, no need to maintain ours.
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "armv7l" ]; then
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
armv7l*)
|
||||||
echo "CONFIG_USER_NS=y" >> arch/arm/configs/bcm2709_defconfig
|
echo "CONFIG_USER_NS=y" >> arch/arm/configs/bcm2709_defconfig
|
||||||
make ${makejobs} ${_args} ARCH=arm bcm2709_defconfig
|
make ${makejobs} ${_args} ARCH=arm bcm2709_defconfig
|
||||||
else
|
;;
|
||||||
|
armv6l*)
|
||||||
echo "CONFIG_USER_NS=y" >> arch/arm/configs/bcmrpi_defconfig
|
echo "CONFIG_USER_NS=y" >> arch/arm/configs/bcmrpi_defconfig
|
||||||
make ${makejobs} ${_args} ARCH=arm bcmrpi_defconfig
|
make ${makejobs} ${_args} ARCH=arm bcmrpi_defconfig
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Always use our revision to CONFIG_LOCALVERSION to match our pkg version.
|
# Always use our revision to CONFIG_LOCALVERSION to match our pkg version.
|
||||||
sed -i -e "s|^\(CONFIG_LOCALVERSION=\).*|\1\"_${revision}\"|" .config
|
sed -i -e "s|^\(CONFIG_LOCALVERSION=\).*|\1\"_${revision}\"|" .config
|
||||||
|
@ -78,11 +81,15 @@ do_install() {
|
||||||
|
|
||||||
vmkdir boot
|
vmkdir boot
|
||||||
# Generate kernel.img and install it to destdir.
|
# Generate kernel.img and install it to destdir.
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "armv7l" ]; then
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
armv7l*)
|
||||||
./mkknlimg --dtok arch/arm/boot/zImage ${DESTDIR}/boot/kernel7.img
|
./mkknlimg --dtok arch/arm/boot/zImage ${DESTDIR}/boot/kernel7.img
|
||||||
else
|
;;
|
||||||
|
armv6l*)
|
||||||
./mkknlimg --dtok arch/arm/boot/zImage ${DESTDIR}/boot/kernel.img
|
./mkknlimg --dtok arch/arm/boot/zImage ${DESTDIR}/boot/kernel.img
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
vmkdir boot/overlays
|
vmkdir boot/overlays
|
||||||
mv arch/arm/boot/dts/overlays/*.dtb ${DESTDIR}/boot/overlays
|
mv arch/arm/boot/dts/overlays/*.dtb ${DESTDIR}/boot/overlays
|
||||||
mv arch/arm/boot/dts/*.dtb ${DESTDIR}/boot
|
mv arch/arm/boot/dts/*.dtb ${DESTDIR}/boot
|
||||||
|
@ -174,7 +181,6 @@ rpi-kernel-headers_package() {
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
noverifyrdeps=yes
|
noverifyrdeps=yes
|
||||||
noshlibprovides=yes
|
noshlibprovides=yes
|
||||||
replaces="kernel-rpi-headers>=0"
|
|
||||||
short_desc="The Linux kernel headers for Raspberry Pi (${version%.*} series [git ${_gitshort}])"
|
short_desc="The Linux kernel headers for Raspberry Pi (${version%.*} series [git ${_gitshort}])"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/src
|
vmove usr/src
|
||||||
|
|
Loading…
Add table
Reference in a new issue