2020-01-15 20:26:34 +00:00
|
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
2019-06-23 10:58:45 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/msm8916_defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-msm8916"
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-$_flavor
|
2020-04-20 10:15:21 +00:00
|
|
|
pkgver=5.7_rc2
|
2020-02-20 10:31:39 +00:00
|
|
|
pkgrel=0
|
2019-06-23 10:58:45 +00:00
|
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8916 devices"
|
2019-12-07 14:00:13 +00:00
|
|
|
arch="aarch64 armv7"
|
2019-06-23 10:58:45 +00:00
|
|
|
url="https://github.com/msm8916-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-02-20 10:31:39 +00:00
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
2019-06-23 10:58:45 +00:00
|
|
|
|
2019-12-07 14:00:13 +00:00
|
|
|
# Architecture
|
|
|
|
case "$CARCH" in
|
|
|
|
aarch64) _carch="arm64" ;;
|
|
|
|
arm*) _carch="arm" ;;
|
|
|
|
esac
|
|
|
|
|
2019-06-23 10:58:45 +00:00
|
|
|
# Source
|
2019-12-23 11:47:03 +00:00
|
|
|
_tag=v${pkgver//_/-}-msm8916
|
2019-06-23 10:58:45 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$_tag.tar.gz::$url/archive/$_tag.tar.gz
|
2019-12-07 14:00:13 +00:00
|
|
|
config-$_flavor.aarch64
|
|
|
|
config-$_flavor.armv7
|
2019-06-23 10:58:45 +00:00
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-${_tag#v}"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2019-12-07 14:00:13 +00:00
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
2019-06-23 10:58:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
|
|
|
|
2020-04-20 10:15:21 +00:00
|
|
|
sha512sums="5329ef196b4a66d5831ba5addf3c132b1b2ccd0ff92a3f52228a46fa6b0e89b8fc7c8f59b9835f7bcfbb8c3cf1c49c0f3eccfbad10184d6c5cd2d9ef7ecaa5e5 linux-postmarketos-qcom-msm8916-v5.7-rc2-msm8916.tar.gz
|
|
|
|
e9a1a6016b363f1cb1630bed821975749fce37561e922a552cb42285438463984f2318bb25d7c01befd85d78c3c99dd3ece7790d5df8170bebbaecc7158494cf config-postmarketos-qcom-msm8916.aarch64
|
|
|
|
ff7ffaf453df420fb7f0206b05e8388f7f8ef18fc0b2418e480c09eac3abfb11885584a61330ee055d951532acefed80cf79e9293e9c408621ac49cdcdf2803b config-postmarketos-qcom-msm8916.armv7"
|