pmaports/device/testing/linux-sony-tulip/APKBUILD

53 lines
1.8 KiB
Text
Raw Normal View History

2018-11-01 17:31:55 +00:00
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/aosp_kanuti_tulip_defconfig
pkgname=linux-sony-tulip
2018-11-01 17:31:55 +00:00
pkgver=3.10
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"
options="!strip !check !tracedeps pmb:cross-native"
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"
HOSTCC="gcc6-gcc"
2018-11-01 17:31:55 +00:00
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source
_repository="kernel_kanuti"
_commit="d8e51bc7dd6bde228f1d9a7ddcf664845c4f07fb"
_config="config-$_flavor.$arch"
2018-11-01 17:31:55 +00:00
source="
$pkgname-$_commit.tar.gz::https://github.com/bartcubbins/$_repository/archive/$_commit.tar.gz
2018-11-01 17:31:55 +00:00
$_config
gcc10-extern_YYLOC_global_declaration.patch
2018-11-01 17:31:55 +00:00
"
builddir="$srcdir/$_repository-$_commit"
2018-11-01 17:31:55 +00:00
prepare() {
default_prepare
. 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() {
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
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch"