# Maintainer: graysky # Maintainer: Kevin Mihelich # Maintainer: Oleg Rakhmanov # Maintainer: Dave Higham # Contributer: Jan Alexander Steffens (heftig) buildarch=8 pkgbase=linux-rpi-16k _commit=4f2f75a30253653e99b112129598702435ba6d24 _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _regen= pkgver=6.6.44 pkgrel=1 pkgdesc='Linux' url="https://github.com/raspberrypi/linux" arch=(aarch64) license=(GPL2) makedepends=( bc kmod inetutils ) options=('!strip') source=("linux-$pkgver-${_commit:0:10}.tar.gz::https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" cmdline.txt config.txt config8 0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch linux.preset archarm.diffconfig ) md5sums=('4fcab406d565d5e5d790370bf99d003b' '3bab7426d8c8818dda8353da3892a41f' '16c484af9f72b9275afcf83a6b8eab36' '572a3fe9ce1d3ab4fd4b9bf1f2cb38a2' 'a157c5bfc0f03d0728c92bd953b06265' '86d4a35722b5410e3b29fc92dae15d4b' 'c8f84694321e249492c80149833671d7') # setup vars _kernel=kernel8.img KARCH=arm64 _image=Image _config=config8 prepare() { cd "${srcdir}/${_srcname}" # consistent behavior of lscpu on arm/arm64 patch -p1 -i ../0001-Make-proc-cpuinfo-consistent-on-arm64-and-arm.patch echo "Setting version..." echo "-$pkgrel" > localversion.10-pkgrel echo "${pkgbase#linux}" > localversion.20-pkgname if [[ $_regen -eq 1 ]]; then # useful on two point releases to keep shit straight echo "Applying custom shit to bcm2712_defconfig" make bcm2712_defconfig cat ../archarm.diffconfig >> .config make olddefconfig # bcm2712_defconfig inserts a value for CONFIG_LOCALVERSION= so set this to null sed '/^CONFIG_LOCALVERSION=/s,.*$,CONFIG_LOCALVERSION="",' .config >$startdir/newconfig.$_config echo "verify that newconfig.$_config is fit for purpose then redefine $_config" exit else echo "Setting config..." cp ../"$_config" .config make olddefconfig diff -u ../"$_config" .config || : make -s kernelrelease > version echo "Prepared $pkgbase version $(=0.7' raspberrypi-bootloader ) optdepends=( 'wireless-regdb: to set the correct wireless channels of your country' ) provides=( linux="${pkgver}" KSMBD-MODULE WIREGUARD-MODULE ) conflicts=( linux linux-rpi uboot-raspberrypi ) install=${pkgname}.install backup=( boot/config.txt boot/cmdline.txt ) cd "${srcdir}/${_srcname}" local modulesdir="$pkgdir/usr/lib/modules/$(