# Maintainer: Minecrell # Kernel config based on: arch/arm64/configs/msm8916_defconfig _flavor="postmarketos-qcom-msm8916" pkgname="linux-$_flavor" pkgver=5.6_rc5 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="7c351b861830788d56a1e7fd5a0cd08fb556e75a2a45b5f4ae9eee5ff7c8aa459a797985a2802616e62af3b39674df6194e450f224d1c3965ed680d770e263b1 linux-postmarketos-qcom-msm8916-v5.6-rc5-msm8916.tar.gz cda23521a0a0c819e839f4eef4b3a05e8c3ae4f393765bd3e70ff1ce3741cec7483a50959dea8fcde50b9bf29776beb434097d4d7e7c21e03d1496126e226a3f config-postmarketos-qcom-msm8916.aarch64 6c94000893377b0f66d5b2e3041af780575320e7e239cd461bcbe7745a23d83151f2b3b7d861f2bbeeab1e9465bd96d97989b397ab5d104b0cfa4d39ca1bffbb config-postmarketos-qcom-msm8916.armv7"