# Maintainer: David Davies-Jones # Reference: # Kernel config based on: arch/arm/configs/lineageos_chagallwifi_defconfig pkgname=linux-samsung-chagallwifi pkgver=3.4.113 pkgrel=1 pkgdesc="Samsung Galaxy Tab S 10.5 kernel fork" arch="armv7" _carch="arm" _flavor="samsung-chagallwifi" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native" makedepends="bash bc bison devicepkg-dev flex openssl-dev perl xz" # Source _repository="android_kernel_samsung_exynos5420" _commit="e434b9d0170c86d1ee063b1915921c4af73effad" _config="config-$_flavor.$arch" source=" $pkgname-$_commit.tar.gz::https://github.com/exynos5420/$_repository/archive/$_commit.tar.gz $_config gcc7-give-up-on-ilog2-const-optimizations.patch gcc8-fix-put-user.patch " builddir="$srcdir/$_repository-$_commit" _outdir="out" prepare() { default_prepare . downstreamkernel_prepare } build() { unset LDFLAGS make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" } package() { downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir" } sha512sums="058d72726920b7d670ab32156168546be39975164a867dbeb38b236988a3014f302fc094d9fb3ecff2379aac7d31014cc25ac1d1e0d390ce282e6aa799857391 linux-samsung-chagallwifi-e434b9d0170c86d1ee063b1915921c4af73effad.tar.gz 437f7450b07ff6098531649242317ce767b9f51bfd1a1184a5e094b6d674ad7b2de175e36b45bd1cf5ab069c073f6eae2ad77505938e4fe3e052c3f96cd5204b config-samsung-chagallwifi.armv7 77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch 197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch"