2018-11-01 17:31:55 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/aosp_kanuti_tulip_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-sony-tulip
|
2018-11-01 17:31:55 +00:00
|
|
|
pkgver=3.10
|
2021-04-29 11:38:24 +00:00
|
|
|
pkgrel=5
|
2018-11-01 17:31:55 +00:00
|
|
|
pkgdesc="Sony Xperia M4 Aqua kernel fork"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="sony-tulip"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2018-12-22 19:03:50 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev openssl openssl-dev gcc6"
|
2018-11-01 17:31:55 +00:00
|
|
|
|
|
|
|
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
2018-11-30 20:56:06 +00:00
|
|
|
HOSTCC="gcc6-gcc"
|
2018-11-01 17:31:55 +00:00
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="kernel_kanuti"
|
|
|
|
_commit="d8e51bc7dd6bde228f1d9a7ddcf664845c4f07fb"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-11-01 17:31:55 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/bartcubbins/$_repository/archive/$_commit.tar.gz
|
2018-11-01 17:31:55 +00:00
|
|
|
$_config
|
2020-11-04 12:48:12 +00:00
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
2021-02-08 18:03:07 +00:00
|
|
|
0001-posix_acl-fix-bad-kernel-backport.patch
|
2018-11-01 17:31:55 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2018-11-01 17:31:55 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2018-11-01 17:31:55 +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"
|
2018-11-01 17:31:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="7372b4fdfca2fef3c8ae48c9353a6d7ea658fc8412e2b288ee1097d902f5d9b81a0b76f3fc0e1bc74a015ec34e84c4942608f0e522d628b3deb288f4b177428c linux-sony-tulip-d8e51bc7dd6bde228f1d9a7ddcf664845c4f07fb.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
d6b7c9e894f47318de19bbcb3e5969a93a5618dd91796a72556ad4b00ea5b2af50df3f919589eb372407fa9c99bca4deca5544f7bcd7b31070a4546f4aeb8c4a config-sony-tulip.aarch64
|
2021-02-08 18:03:07 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
62c27cb75bbfd65ead3a5345ab81e356f04da803b45ce14239d95694adc675c4dced89de7582ae2f0e229b176f545cc76a6706c9774d48eabcbb010f83623268 0001-posix_acl-fix-bad-kernel-backport.patch"
|