# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) pkgbase=linux-rpi _commit=28c081c5c63583b85c20219ccd10e2cdf725842c _srcname=linux-${_commit} _kernelname=${pkgbase#linux} pkgver=5.15.78 pkgrel=1 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 linux.preset 60-linux.hook 90-linux.hook ) md5sums=('9e35dd23e8fd6782d9b7ec11a7cc50d6' '3bab7426d8c8818dda8353da3892a41f' 'f66a7ea3feb708d398ef57e4da4815e9' '86d4a35722b5410e3b29fc92dae15d4b' '0a5f16bfec6ad982a2f6782724cca8ba' '441ec084c47cddc53e592fb0cbce4edf') md5sums_armv7h=('6f6fc7cdf18930dd937c358082a5ac20' 'aedda0148db2692971671e6aa90ad9ff') md5sums_aarch64=('36c7f594332ac5cdf92f0e6be7a7f7b3' '7e4403dea857e40005bf76beda9927ff') # 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 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=('wireless-regdb: to set the correct wireless channels of your country') provides=("linux=${pkgver}" 'WIREGUARD-MODULE') conflicts=('linux' 'uboot-raspberrypi') install=${pkgname}.install backup=('boot/config.txt' 'boot/cmdline.txt') replaces=('linux-raspberrypi-latest' 'linux-raspberrypi4') cd "${srcdir}/${_srcname}" local kernver="$(