# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) buildarch=12 pkgbase=linux-raspberrypi4 _commit=1faafd963e48eafb3abd555e13496a773d858b02 _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _desc="Raspberry Pi 3/4/400" pkgver=5.10.63 pkgrel=15 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=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" cmdline.txt 0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch ) md5sums=('8b6f5b06d5a252cbb06ea1b33ee45c25' '31c02f4518d46deb5f0c2ad1f8b083cd' 'f66a7ea3feb708d398ef57e4da4815e9') md5sums_armv7h=('50e8caecceed5b0e959f1e62b0a481e8' '9669d916a5929a2eedbd64477f83d99e') md5sums_aarch64=('f7855453cf26a32256472c34f67748cf' '9669d916a5929a2eedbd64477f83d99e') # setup vars [[ $CARCH == "armv7h" ]] && _kernel=kernel7.img KARCH=arm _image=zImage _config=config _bconfig=config.txt [[ $CARCH == "aarch64" ]] && _kernel=kernel8.img KARCH=arm64 _image=Image _config=config8 _bconfig=config8.txt prepare() { cd "${srcdir}/${_srcname}" # consistent behavior of lscpu on arm/arm64 patch -Np1 -i ../0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.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') cd "${srcdir}/${_srcname}" local kernver="$(