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
|
2018-12-22 19:03:50 +00:00
|
|
|
pkgrel=3
|
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-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
|
|
|
|
7ed4290977b393fa5111eaff6c5513a0eb0dd7cf4447d70e26a38e670e45331ccd2fd1b4e56b0598019121ca08116e057304aa36c932a454616e8b0956c095c8 config-sony-tulip.aarch64"
|