2018-10-12 18:59:03 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/aosp_rhine_amami_defconfig
|
2017-06-30 15:19:46 +00:00
|
|
|
|
2018-10-12 18:59:03 +00:00
|
|
|
pkgname="linux-sony-amami"
|
2017-06-30 15:19:46 +00:00
|
|
|
pkgver=3.10.84
|
2019-01-04 00:49:40 +00:00
|
|
|
pkgrel=5
|
2018-10-12 18:59:03 +00:00
|
|
|
pkgdesc="Sony Xperia Z1 Compact kernel fork"
|
2019-01-04 00:49:40 +00:00
|
|
|
arch="armv7"
|
2018-10-12 18:59:03 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="sony-amami"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2017-06-30 15:19:46 +00:00
|
|
|
options="!strip !check !tracedeps"
|
2018-10-12 18:59:03 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="kernel"
|
|
|
|
_commit="2134cafba220b32c43701368413ee333b41b7fe0"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2017-06-30 15:19:46 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/sonyxperiadev/$_repository/archive/$_commit.tar.gz
|
2017-06-30 15:19:46 +00:00
|
|
|
$_config
|
2018-10-12 18:59:03 +00:00
|
|
|
gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
gcc8-fix-put-user.patch
|
2018-10-19 07:39:21 +00:00
|
|
|
downstream-backport-getrandom.patch
|
2017-06-30 15:19:46 +00:00
|
|
|
"
|
|
|
|
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2017-06-30 15:19:46 +00:00
|
|
|
|
|
|
|
prepare() {
|
2018-10-12 18:59:03 +00:00
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2017-06-30 15:19:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2018-10-12 18:59:03 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2017-06-30 15:19:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2017-06-30 15:19:46 +00:00
|
|
|
}
|
|
|
|
|
2018-10-12 18:59:03 +00:00
|
|
|
sha512sums="fae2299d9d36956be71f40ae724ac0a5069b53d440c114184f82495550c76743e9275e37ad00f6d4a012d32e91a580f424cdb1a1222647c5f2fd678a405a225f linux-sony-amami-2134cafba220b32c43701368413ee333b41b7fe0.tar.gz
|
2019-01-04 00:49:40 +00:00
|
|
|
0896618a3bb536dc5f8d9932fe704e8f279000207054039bf8df25e89fb9b2d7d70175cbc4af2ee42982ff7af39fd98c41ec5d79d517a36d9ac3fad5344ce615 config-sony-amami.armv7
|
2018-10-12 18:59:03 +00:00
|
|
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
2018-11-30 16:51:42 +00:00
|
|
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
2018-10-19 07:39:21 +00:00
|
|
|
b921570e799682d3ac6bff5dae2c7a69da24cd6988e57605fea0bd039e8b677e8335e11846c51798a5fb15011eaf0495fe6a410833a244319140798d7b70fea1 downstream-backport-getrandom.patch"
|