# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) buildarch=20 pkgbase=linux-rpi-legacy _commit=b42c23e39f9f5ada0c1dba16cadd93d3f376fdbd _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _desc="RPi 1/Zero/Zero W only" pkgver=5.10.92 pkgrel=2 pkgdesc='Linux' url="http://www.kernel.org/" arch=(armv6h armv7h) license=(GPL2) makedepends=( bc kmod inetutils ) options=('!strip' '!distcc') source=("linux-$pkgver-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" cmdline.txt config.txt config linux.preset 60-linux.hook 90-linux.hook ) md5sums=('0f31de4e4a03115db47bfa63adc4fb97' '31c02f4518d46deb5f0c2ad1f8b083cd' '7c2cace68dd229483b28ba7147347811' '8c9f4df9503130411595ddd7b482d885' '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}" 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="$(