mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
pinephone-kernel: update to 5.10.12.
This commit is contained in:
parent
9ee82f36f6
commit
3b030aa945
2 changed files with 334 additions and 296 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,15 +1,15 @@
|
||||||
# Template file for 'pinephone-kernel'
|
# Template file for 'pinephone-kernel'
|
||||||
pkgname=pinephone-kernel
|
pkgname=pinephone-kernel
|
||||||
version=5.8.10
|
version=5.10.12
|
||||||
revision=1
|
revision=1
|
||||||
_commit=b8647e317c32f64543c32465abb7b4651e6e3199
|
_tag=orange-pi-5.10-20210130-2109
|
||||||
wrksrc="linux-${_commit}"
|
wrksrc="linux-${_tag}"
|
||||||
short_desc="Linux kernel and modules (${version%.*} series)"
|
short_desc="Linux kernel and modules (${version%.*} series)"
|
||||||
maintainer="John Sullivan <jsullivan@csumb.edu>"
|
maintainer="John Sullivan <jsullivan@csumb.edu>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
homepage="https://www.kernel.org"
|
homepage="https://www.kernel.org"
|
||||||
distfiles="https://github.com/megous/linux/archive/${_commit}.tar.gz"
|
distfiles="https://github.com/megous/linux/archive/${_tag}.tar.gz"
|
||||||
checksum=65c154fde37f38334ccd2038765954536f78a504ef4460a3021cb8e33f64de6a
|
checksum=7ef48ee91f6b6cfdc74f3dc73753903748bcda3282f1ac6e2ff33d392f6c30ca
|
||||||
python_version=3
|
python_version=3
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ noshlibprovides=yes
|
||||||
preserve=yes
|
preserve=yes
|
||||||
|
|
||||||
hostmakedepends="tar xz bc elfutils-devel flex gmp-devel kmod libmpc-devel
|
hostmakedepends="tar xz bc elfutils-devel flex gmp-devel kmod libmpc-devel
|
||||||
libressl-devel perl uboot-mkimage cpio"
|
libressl-devel perl uboot-mkimage cpio pahole python3"
|
||||||
|
|
||||||
_kernver="${version}_${revision}"
|
_kernver="${version}_${revision}"
|
||||||
triggers="kernel-hooks"
|
triggers="kernel-hooks"
|
||||||
|
@ -41,42 +41,51 @@ mutable_files="
|
||||||
/usr/lib/modules/${_kernver}/modules.alias.bin
|
/usr/lib/modules/${_kernver}/modules.alias.bin
|
||||||
/usr/lib/modules/${_kernver}/modules.devname"
|
/usr/lib/modules/${_kernver}/modules.devname"
|
||||||
|
|
||||||
|
# reproducible build
|
||||||
|
export KBUILD_BUILD_TIMESTAMP=${SOURCE_DATE_EPOCH:-0}
|
||||||
|
export KBUILD_BUILD_USER=voidlinux
|
||||||
|
export KBUILD_BUILD_HOST=voidlinux
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
_cross="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
|
||||||
|
fi
|
||||||
|
if [ "${_patchver}" ]; then
|
||||||
|
_version="EXTRAVERSION=${_patchver}"
|
||||||
|
fi
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
# 5.8 misses Documentation/DocBook. We ship the directory from 4.12 here.
|
local arch=arm64
|
||||||
|
|
||||||
|
# 5.10 misses Documentation/DocBook. We ship the directory from 4.12 here.
|
||||||
cp -a $FILESDIR/DocBook -t Documentation
|
cp -a $FILESDIR/DocBook -t Documentation
|
||||||
|
|
||||||
local arch _args
|
if [ -f ${FILESDIR}/pinephone-dotconfig-custom ]; then
|
||||||
arch=arm64
|
msg_normal "Detected a custom .config file for pinephone, using it.\n"
|
||||||
|
cp -f ${FILESDIR}/pinephone-dotconfig-custom .config
|
||||||
if [ "$CROSS_BUILD" ]; then
|
make ${makejobs} ARCH=$arch ${_cross} oldconfig
|
||||||
_args="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
|
elif [ -f ${FILESDIR}/pinephone-dotconfig ]; then
|
||||||
|
msg_normal "Detected a .config file for pinephone, using it.\n"
|
||||||
|
cp -f $FILESDIR/pinephone-dotconfig .config
|
||||||
|
make ${makejobs} ARCH=$arch ${_cross} oldconfig
|
||||||
|
else
|
||||||
|
msg_normal "Defaulting to 'pinephone_defconfig'.\n"
|
||||||
|
make ${makejobs} ARCH=$arch ${_cross} pinephone_defconfig
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp $FILESDIR/config .config || make ARCH=$arch $_args pinephone_defconfig
|
|
||||||
|
|
||||||
# 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
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
local arch _cross _args
|
local arch=arm64
|
||||||
_args="Image modules dtbs"
|
|
||||||
arch=arm64
|
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
_cross="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
|
|
||||||
fi
|
|
||||||
if [ "${_patchver}" ]; then
|
|
||||||
_version="EXTRAVERSION=${_patchver}"
|
|
||||||
fi
|
|
||||||
export LDFLAGS=
|
export LDFLAGS=
|
||||||
make ARCH=$arch ${_version} ${_cross} ${makejobs} prepare
|
make ARCH=$arch ${_version} ${_cross} ${makejobs} prepare
|
||||||
make ARCH=$arch ${_version} ${_cross} ${makejobs} ${_args}
|
make ARCH=$arch ${_version} ${_cross} ${makejobs} Image modules dtbs
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
local arch subarch _args hdrdest
|
local arch=arm64 subarch _args hdrdest
|
||||||
arch=arm64
|
|
||||||
|
|
||||||
# Run depmod after compressing modules.
|
# Run depmod after compressing modules.
|
||||||
sed -i '2iexit 0' scripts/depmod.sh
|
sed -i '2iexit 0' scripts/depmod.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue