pmaports/device/testing/linux-jolla-sbj/APKBUILD

64 lines
2.3 KiB
Text
Raw Normal View History

2018-02-24 18:46:54 +00:00
# Kernel config based on: arch/arm/configs/msm8960_defconfig
pkgname=linux-jolla-sbj
pkgver=3.4.108
pkgrel=0
2018-02-24 18:46:54 +00:00
pkgdesc="Jolla phone kernel fork"
arch="armv7"
2018-02-24 18:46:54 +00:00
_carch="arm"
_flavor="jolla-sbj"
url="http://releases.sailfishos.org/sources/3.1.0.11/"
2018-02-24 18:46:54 +00:00
license="GPL2"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc6"
# Compiler: this kernel was only tested with GCC6. Feel free to make a merge
# request if you find out that it is booting working with newer GCCs as
# well. See <https://postmarketos.org/vendorkernel> for instructions.
if [ "${CC:0:5}" != "gcc6-" ]; then
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
2018-02-24 18:46:54 +00:00
# Source
_hash="3.1.0.11"
_config="config-$_flavor.$arch"
2018-02-24 18:46:54 +00:00
source="
$pkgname-$_hash.tar.bz2::http://releases.sailfishos.org/sources/$_hash/sailfish-$_hash-oss-adaptation-sbj.tar.bz2
2018-02-24 18:46:54 +00:00
$_config
01_fix-video-argb-setting.patch
2018-02-24 18:46:54 +00:00
02_gpu-msm-fix-gcc5-compile.patch
duplicate-return-address-definition.patch
"
_kver="kernel-adaptation-sbj-3.4.108.20190506.1"
_kernelarchive="$srcdir/sailfish-$_hash-oss-adaptation-sbj/kernel-adaptation-sbj/$_kver.tar.bz2"
builddir="$srcdir/$_kver"
2018-02-24 18:46:54 +00:00
prepare() {
cd "$srcdir"
tar -xf "$_kernelarchive"
2018-02-24 18:46:54 +00:00
cd "$ksrcdir"
default_prepare
. downstreamkernel_prepare
2018-02-24 18:46:54 +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-02-24 18:46:54 +00:00
}
sha512sums="
b43353cb1f5c0205535153515eed0c10ca652fc1b2f28c12a40e8dbce08e304c49991e8c155800711fb0c07012c820a26fbf4c931b9b015994b67b1dc4615ef6 linux-jolla-sbj-3.1.0.11.tar.bz2
cd008aafd3ae04dbf3f010e893fa2d47169a2045d1706a2f28d5175011da96ca1280a2c73692bb14f2e7452327d2e83f9fdc251997a51c8df9c3f4ae5eb03b10 config-jolla-sbj.armv7
e3083c260ed9c4fc0d83f43106700b6173876dbfae072f6e6696ac6785a4dc17771fbcb3e21601e04ed29a11bf0f7a2a09ad549375e0c34cea245c7f2e2bcbbd 01_fix-video-argb-setting.patch
2018-02-24 18:46:54 +00:00
7be03a9e78b7ac330a54b1f00509caa0621a95c0c55901878ad757f9dd69cc05ba2c8b5ea987063ae1224f92c4d090d515fa5d369e7755181a4871b0d0f82881 02_gpu-msm-fix-gcc5-compile.patch
9b15bf1f6cb66f54c785b0af6c9db8a7d63257e6fa3eeb0cbf47284334166aa6a7ff93e1b64ab69206c8047d64641199c0f5fcbc257bbe039263252fff45118e duplicate-return-address-definition.patch
"