2020-01-10 22:09:43 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2017-11-19 19:31:08 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/aosp_rhine_honami_defconfig
|
|
|
|
|
|
|
|
pkgname="linux-sony-honami"
|
|
|
|
pkgver=3.10.84
|
2020-01-10 22:09:43 +00:00
|
|
|
pkgrel=4
|
2017-11-19 19:31:08 +00:00
|
|
|
pkgdesc="Sony Xperia Z1 kernel fork"
|
2019-03-09 19:43:36 +00:00
|
|
|
arch="armv7"
|
2017-11-19 19:31:08 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="sony-honami"
|
|
|
|
url="https://github.com/sonyxperiadev/kernel"
|
2020-01-10 22:09:43 +00:00
|
|
|
license="GPL-2.0-only"
|
2017-11-19 19:31:08 +00:00
|
|
|
options="!strip !check !tracedeps"
|
2020-01-10 22:09:43 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
2018-10-01 06:44:18 +00:00
|
|
|
|
2017-11-19 19:31:08 +00:00
|
|
|
# Source
|
|
|
|
_repository="kernel"
|
|
|
|
_commit="d78970c1afd9fad52cb4402c7bcb9701e8a06d41"
|
2020-01-10 22:09:43 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2017-11-19 19:31:08 +00:00
|
|
|
source="
|
2020-01-10 22:09:43 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/sonyxperiadev/$_repository/archive/$_commit.tar.gz
|
2017-11-19 19:31:08 +00:00
|
|
|
$_config
|
2020-01-10 22:09:43 +00:00
|
|
|
gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
gcc8-fix-put-user.patch
|
2017-11-19 19:31:08 +00:00
|
|
|
"
|
2020-01-10 22:09:43 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2017-11-19 19:31:08 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-01-10 22:09:43 +00:00
|
|
|
downstreamkernel_prepare "$srcdir" "$builddir" "$_config" "$_carch" "$HOSTCC"
|
2017-11-19 19:31:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2017-11-19 19:31:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="b76641c07489712d393f1d318b0d4138e5c7126d4b78cfc23bcde07911cba185d3872e886f69197bd3912e8b4c646b74fb6992dee0ce3829d2995531ac4f257e linux-sony-honami-d78970c1afd9fad52cb4402c7bcb9701e8a06d41.tar.gz
|
2020-01-10 22:09:43 +00:00
|
|
|
05e1a9509009f43cc76b957de7b8d072508c0b48c06ca5912f61aac3dfbabd9625dc7490a0af6f54fdf043dcb60faa1a262d6c3d2f1974783ea0067f020b5cd8 config-sony-honami.armv7
|
|
|
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch"
|