50 lines
1.9 KiB
Text
50 lines
1.9 KiB
Text
|
# Contributor: David Davies-Jones <david@exultantmonkey.co.uk>
|
||
|
# Maintainer: David Davies-Jones <david@exultantmonkey.co.uk>
|
||
|
# Reference: <https://postmarketos.org/vendorkernel>
|
||
|
# Kernel config based on: arch/arm/configs/lineageos_chagallwifi_defconfig
|
||
|
|
||
|
pkgname=linux-samsung-chagallwifi
|
||
|
pkgver=3.4.39
|
||
|
pkgrel=0
|
||
|
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"
|
||
|
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl xz"
|
||
|
|
||
|
# Source
|
||
|
_repository="android_kernel_samsung_exynos5420"
|
||
|
_commit="61dd0870a1982be7567f9cb288f3f76f03f017f4"
|
||
|
_config="config-$_flavor.$arch"
|
||
|
source="
|
||
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_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="b10abf35473b5ac8109d35c86485c1a83e7874feb9fa15bd69f0d5a3f063ecaa94914cb86e6ed0cb3f8c8cb2d89f93ba51b651f095d364ddb00688a887532081 linux-samsung-chagallwifi-61dd0870a1982be7567f9cb288f3f76f03f017f4.tar.gz
|
||
|
14ceb782138b8fb3fdd8e14d26773b0813a44925804a9e47f2d96f5058459a9bd1e91add25820e39f283e8dff0bbf30d185b06da466386c549c93e07b8ca420f config-samsung-chagallwifi.armv7
|
||
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
||
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch"
|