89fa4dd264
- Update to Linux 5.6-rc3 - Fix orientation on wileyfox-crackling (add mount-matrix) - Fix sound (workaround inexistent backward compatibility in alsa-lib...)
56 lines
1.8 KiB
Text
56 lines
1.8 KiB
Text
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
# Kernel config based on: arch/arm64/configs/msm8916_defconfig
|
|
|
|
_flavor="postmarketos-qcom-msm8916"
|
|
pkgname="linux-$_flavor"
|
|
pkgver=5.6_rc3
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8916 devices"
|
|
arch="aarch64 armv7"
|
|
url="https://github.com/msm8916-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps"
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
# Architecture
|
|
case "$CARCH" in
|
|
aarch64) _carch="arm64" ;;
|
|
arm*) _carch="arm" ;;
|
|
esac
|
|
|
|
# Source
|
|
_tag=v${pkgver//_/-}-msm8916
|
|
source="
|
|
$pkgname-$_tag.tar.gz::$url/archive/$_tag.tar.gz
|
|
config-$_flavor.aarch64
|
|
config-$_flavor.armv7
|
|
"
|
|
builddir="$srcdir/linux-${_tag#v}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
sha512sums="9343f7bfcd62b548805cad200985f3690c9891c2122e3e34b6949fa7208541128e1c0267109e56c13bd817d3fdf0442e3d61b23c8210d5aa8e8ac39a1235c409 linux-postmarketos-qcom-msm8916-v5.6-rc3-msm8916.tar.gz
|
|
fbe2811698a1fe9e5ec962cf534b6f5bb38ae5c02e1de8c87ce428075b6bf4cf590bd1b5ec5958852a1641c9427d68aeac42cb8e8212b8744a267e477e323a49 config-postmarketos-qcom-msm8916.aarch64
|
|
84de500e56d936e2d8ba36c94d6bada4c7e26a71a847c1c644a4604879fb761ffd3985354350a0baecf80962fc3b004ade9dfffc1b60253372051dc1f3af3505 config-postmarketos-qcom-msm8916.armv7"
|