# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) buildarch=12 pkgbase=linux-rpi _commit=cd1b7bebe7248d9caae337e0b02e42ec0522745a _srcname=linux-${_commit} _kernelname=${pkgbase#linux} pkgver=5.10.90 pkgrel=2 pkgdesc='Linux' url="http://www.kernel.org/" arch=(armv7h aarch64) license=(GPL2) makedepends=( bc kmod inetutils ) options=('!strip') source_armv7h=('config' 'config.txt') source_aarch64=('config8' 'config8.txt') source=("linux-$pkgver-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" cmdline.txt 0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch 0002-revert-gamma.patch::https://gitlab.manjaro.org/manjaro-arm/packages/core/linux-rpi4/-/raw/master/revert-gamma.diff?inline=false linux.preset 60-linux.hook 90-linux.hook ) md5sums=('bb0e9a302de9cd0728777558fec3d040' '31c02f4518d46deb5f0c2ad1f8b083cd' 'f66a7ea3feb708d398ef57e4da4815e9' 'e15bac8034085a38ecd4a57584caa819' '86d4a35722b5410e3b29fc92dae15d4b' '0a5f16bfec6ad982a2f6782724cca8ba' '441ec084c47cddc53e592fb0cbce4edf') md5sums_armv7h=('d30e4c4eda62d16311edfc2d5e4c63fd' 'a9a05a9e8487584b10a0191dd53e5170') md5sums_aarch64=('9de6ade322ef7079838f74eb7e7d8bad' 'e302936d860e78ca8e965459e64b2e5b') # setup vars if [[ $CARCH == "armv7h" ]]; then _kernel=kernel7.img KARCH=arm _image=zImage _config=config _bconfig=config.txt elif [[ $CARCH == "aarch64" ]]; then _kernel=kernel8.img KARCH=arm64 _image=Image _config=config8 _bconfig=config8.txt fi prepare() { cd "${srcdir}/${_srcname}" # consistent behavior of lscpu on arm/arm64 patch -Np1 -i ../0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch # temp fix for https://github.com/raspberrypi/linux/issues/4660 # also https://archlinuxarm.org/forum/viewtopic.php?f=65&t=15629 patch -Np1 -i ../0002-revert-gamma.patch echo "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname echo "Setting config..." cp ../"$_config" .config make olddefconfig make -s kernelrelease > version echo "Prepared $pkgbase version $(=0.7' 'firmware-raspberrypi') optdepends=('crda: to set the correct wireless channels of your country') provides=('kernel26' "linux=${pkgver}" 'WIREGUARD-MODULE') conflicts=('kernel26' 'linux' 'uboot-raspberrypi') install=${pkgname}.install backup=('boot/config.txt' 'boot/cmdline.txt') replaces=('linux-raspberrypi-latest' 'linux-raspberrypi4') cd "${srcdir}/${_srcname}" local kernver="$(