17 changes: 14 additions & 3 deletions core/linux-raspberrypi4/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
buildarch=12

pkgbase=linux-raspberrypi4
_commit=2b13c54592135b6fab269517ed687fa9f80bf8e5
_commit=0088fda9f99a68e9afb6668adf99d6a6e0e119a3
_srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_desc="Raspberry Pi 4"
pkgver=5.10.44
pkgrel=1
pkgrel=2
arch=('armv7h' 'aarch64')
url="http://www.kernel.org/"
license=('GPL2')
Expand All @@ -23,12 +23,18 @@ source=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz"
'cmdline.txt'
'linux.preset'
'0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch'
'0002-Revert-drm-Introduce-new-state-accessors-in-place-of.patch'
'0003-Revert-drm-vc4-Make-vc4_crtc_get_encoder-public.patch'
'0004-Revert-drm-vc4-Increase-the-core-clock-based-on-HVS-.patch'
'60-linux.hook'
'90-linux.hook')
md5sums=('a76355edf0c583b623b977213d191d0b'
md5sums=('3182aa0662a90169b1410d13daf2e481'
'31c02f4518d46deb5f0c2ad1f8b083cd'
'86d4a35722b5410e3b29fc92dae15d4b'
'f66a7ea3feb708d398ef57e4da4815e9'
'60d3c9aef3640bcffd56af279470d3f7'
'033b9494d50a28fa791e79a5a57928ef'
'e971270540d9760994d5b80a25a9811d'
'ce6c81ad1ad1f8b333fd6077d47abdaf'
'441ec084c47cddc53e592fb0cbce4edf')
md5sums_armv7h=('af18f07e44268238ae95cfe3814bb8f8'
Expand All @@ -53,6 +59,11 @@ prepare() {

# consistent behavior of lscpu on arm/arm64
patch -Np1 -i ../0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch

# see: https://archlinuxarm.org/forum/viewtopic.php?f=65&t=15398
patch -Np1 -i ../0002-Revert-drm-Introduce-new-state-accessors-in-place-of.patch
patch -Np1 -i ../0003-Revert-drm-vc4-Make-vc4_crtc_get_encoder-public.patch
patch -Np1 -i ../0004-Revert-drm-vc4-Increase-the-core-clock-based-on-HVS-.patch
}

build() {
Expand Down