# Maintainer: Henrik Grimler # Co-Maintainer: Jenneron # Kernel config based on: arch/arm/configs/exynos_defconfig # and Hardkernel's odroidxu4_defconfig pkgname=linux-postmarketos-exynos5 pkgver=6.6.41 pkgrel=1 pkgdesc="Mainline kernel fork for Samsung Exynos5 devices" arch="armv7" _carch="arm" _flavor="${pkgname#linux-}" url="https://gitlab.com/exynos5-mainline/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community " makedepends=" bash bison findutils flex postmarketos-installkernel openssl-dev perl gmp-dev mpc1-dev mpfr-dev xz " # Source _config="config-$_flavor.$arch" case $pkgver in *.*.*) _kernver=${pkgver%.0};; *.*) _kernver=$pkgver;; esac _tag="v${pkgver//_/-}-exynos5-lts" source=" $pkgname-$_tag.tar.bz2::$url/-/archive/$_tag/linux-$_tag.tar.bz2 $_config " builddir="$srcdir/linux-$_tag" prepare() { default_prepare cp "$srcdir/config-$_flavor.$CARCH" .config } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" } 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=" f82cebbe5683baca5f1e2f7c51d3132d84e52dc553170ed21229b8c2e3d46aa5abd06b5059f8fc336034d39a9040ad96b35c704f6d027b8cd32ead0f3d9e6036 linux-postmarketos-exynos5-v6.6.41-exynos5-lts.tar.bz2 ade407b0743c9411c5adea994fa6281f8cde943e42ac4229be2fc32ca96f9f59c86d211734845adcaa92a35c526996c221a590394e922e97e9e226ccc0086f38 config-postmarketos-exynos5.armv7 "