pmaports/device/testing/linux-bq-gohan/APKBUILD
Antoine Fontaine c1628ecdce
cross/arch-bin-masquerade, main/anbox-image, linux-*: use pmb:cross-native (MR 1169)
https://gitlab.com/postmarketOS/pmbootstrap/-/issues/1910

[skip ci]: CI fails because it can't download every release tarball to
           check checksums in 3h.
2020-04-25 10:50:38 +02:00

52 lines
1.6 KiB
Text

# Contributor: Federico Amedeo Izzo <federico@izzo.pro>
# Maintainer: Federico Amedeo Izzo <federico@izzo.pro>
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/gohan_defconfig
pkgname=linux-bq-gohan
pkgver=3.10.84
pkgrel=0
pkgdesc="BQ Aquaris X5 Plus kernel fork"
arch="armv7"
_carch="arm"
_flavor="bq-gohan"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl gcc4 linux-headers"
# Compiler: GCC 4 (doesn't boot when compiled with newer versions)
if [ "${CC:0:5}" != "gcc4-" ]; then
CC="gcc4-$CC"
HOSTCC="gcc4-gcc"
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
fi
# Source
_repository="android_kernel_bq_msm8976"
_commit="19147fab27a5104598d615c4ea939aee2e18ade8"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
}
sha512sums="4e9c7984e567482d7b550ee2bd737eca38355995935ea2653f6f9f605818813e3a3c0d9c4f3649c6897cf172b0009f020e8e3de129e6f64bf2874349b4ff8081 linux-bq-gohan-19147fab27a5104598d615c4ea939aee2e18ade8.tar.gz
42e2a1a8b1750b5b4e7bdd74bb54ebbf80d2d07bf8f64c5a0c2a91472ed7e8233fccd89d62ad8ff1cc44ba633cfbdf2ab101c60010a1aa37b364368ceac8af8c config-bq-gohan.armv7"