# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) buildarch=20 pkgbase=linux-rpi-legacy _commit=d261fd9f97da8b6b3ed1fa613cc3fd6abb41f0be _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _desc="RPi 1/Zero/Zero W only" pkgver=5.10.88 pkgrel=2 pkgdesc='Linux' url="http://www.kernel.org/" arch=(armv6h armv7h) license=(GPL2) makedepends=( bc kmod inetutils ) options=('!strip') source=("linux-$pkgver-$pkgrel-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" cmdline.txt config.txt config 0001-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=('2b83b925d6e066f27793613840217867' '31c02f4518d46deb5f0c2ad1f8b083cd' '7c2cace68dd229483b28ba7147347811' 'cc16a5ed6a4f6fd75cf675f0a4b15ec9' 'e15bac8034085a38ecd4a57584caa819' '86d4a35722b5410e3b29fc92dae15d4b' '0a5f16bfec6ad982a2f6782724cca8ba' '69e1db90d78f691dc446fe2ab94727eb') # setup vars if [[ $CARCH == "armv6h" ]]; then _kernel=kernel.img elif [[ $CARCH == "armv7h" ]]; then _kernel=kernel7.img fi _image=zImage _config=config _bconfig=config.txt KARCH=arm prepare() { cd "${srcdir}/${_srcname}" # temp fix for https://github.com/raspberrypi/linux/issues/4660 # also https://archlinuxarm.org/forum/viewtopic.php?f=65&t=15629 patch -Np1 -i ../0001-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') install=${pkgname}.install backup=('boot/config.txt' 'boot/cmdline.txt') replaces=('linux-raspberrypi-latest' 'linux-raspberrypi') cd "${srcdir}/${_srcname}" local kernver="$(