# Maintainer: Jenneron pkgname=linux-postmarketos-mediatek-mt81xx pkgver=6.8_rc2_git20240206 pkgrel=0 pkgdesc="Mediatek MT8186/8192/8195 kernel package" arch="aarch64" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community " makedepends=" bash bison findutils flex openssl-dev perl gmp-dev mpc1-dev mpfr-dev xz postmarketos-installkernel " # Source _flavor="${pkgname#linux-}" _config="config-$_flavor.$arch" _repository="chromeos-kernel" _carch="arm64" _flavor="${pkgname#linux-}" _commit="6533e11145e397a80ed22a969a5db818cf041524" source=" $pkgname-$_commit.tar.gz::https://gitlab.collabora.com/google/$_repository/-/archive/$_commit/chromeos-kernel-$_commit.tar.gz $_config " builddir="$srcdir/$_repository-$_commit" prepare() { default_prepare cp "$srcdir/$_config" .config } build() { unset LDFLAGS make ARCH="$_carch" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" } package() { mkdir -p "$pkgdir"/boot make zinstall modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_PATH="$pkgdir"/boot \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_MOD_STRIP=1 \ INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source install -D "$builddir"/include/config/kernel.release \ "$pkgdir"/usr/share/kernel/$_flavor/kernel.release } sha512sums=" 9ce29b88cbec06c9449ca164a216ff242d74971ded033372f713b5bf4b598b30c9b26e9c2542cd803a5b545c7fe0f205d8d3c007333dcf1233a77afa70473990 linux-postmarketos-mediatek-mt81xx-6533e11145e397a80ed22a969a5db818cf041524.tar.gz 57eb3551ea9f8f9493ee61c9f516059dfd5a643ef545781f663883490edeb2c1bbb352c20687f898495ed113fa736398512cf0eff1eb0adca441b0406a6414c2 config-postmarketos-mediatek-mt81xx.aarch64 "