# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) buildarch=20 pkgbase=linux-rpi-legacy _commit=48f234641072c3619fa8c357b93e4f5131899cb6 _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _desc="RPi 1/Zero/Zero W only" pkgver=5.10.87 pkgrel=1 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 linux.preset 60-linux.hook 90-linux.hook ) md5sums=('4ffd0ba5cd6510aa5ddcf4234a57ecb3' '31c02f4518d46deb5f0c2ad1f8b083cd' '9669d916a5929a2eedbd64477f83d99e' '0de8feb422dbd1cb5561d86f3d063245' '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="$(