# 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=5.18.5 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 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" 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=" 59cdc82bf4a2fb255aeb05e3554dd95b27b1c4835fcff7e7347dbc9464d1593e0325bd8ee0eb9e8e46ac48e3af7da3795b81f67e76f8384d8fdd69f59d3745ae linux-postmarketos-exynos5-v5.18.5-exynos5.tar.bz2 28014dffd66921421bfff49e90436e6672191228a76119da196ed0b86b8525f611176074efc056e8438fe284b8aabd1d31fab389f978ba9cdfc018f6b50606e8 config-postmarketos-exynos5.armv7 "