# Maintainer: Venji10 # Reference: # Kernel config based on: arch/arm64/configs/beryllium_defconfig pkgname=linux-xiaomi-beryllium-mainline pkgver=5.2.0 pkgrel=1 pkgdesc="Xiaomi Poco F1 kernel fork, close to mainline" arch="aarch64" _carch="arm64" _flavor="xiaomi-beryllium" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native" makedepends="bison flex perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev openssl-dev" # Source _repository="linux-beryllium" _commit="3ca4b97b596fa220d8511894ee67a34493664a6c" _config="config-$_flavor.$arch" source=" $pkgname-$_commit.tar.gz::https://github.com/Venji10/$_repository/archive/$_commit.tar.gz $_config " builddir="$srcdir/$_repository-$_commit" prepare() { default_prepare REPLACE_GCCH=0 \ . downstreamkernel_prepare } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" } package() { downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" } sha512sums="4a834f11155b6cb7ca3e7da7f9a561b4f96a2288215ba46cf880f0b95e4ed3ebb5b911d99f1daf7d9e0f2480116e53ffef409e88980fac79026d951f10ef7db3 linux-xiaomi-beryllium-mainline-3ca4b97b596fa220d8511894ee67a34493664a6c.tar.gz 0821f35fc43fb075243c008481cb56682006394dcaee9b01d48411d6e44e8a432a8c67116399cfd3d50d9172c4c3b07c49165188f3d8966be55de47800812f7d config-xiaomi-beryllium.aarch64"