# Maintainer: Minecrell # Co-Maintainer: Nikita Travkin # Kernel config based on: arch/arm64/configs/msm8916_defconfig _flavor="postmarketos-qcom-msm8916" pkgname=linux-$_flavor pkgver=6.0.2 # When making kernel config changes please also submit a PR to # https://github.com/msm8916-mainline/linux/blob/master/kernel/configs/pmos.config # since the kernel config is regenerated on upgrades and all changes will be lost! pkgrel=1 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 pmb:cross-native pmb:kconfigcheck-community " makedepends=" bash bison findutils flex gmp-dev mpc1-dev mpfr-dev openssl-dev perl postmarketos-installkernel " # 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_MOD_STRIP=1 \ INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs 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=" 566fa5e8cc3a994c5e400e442894cc32dc0b37722351e17b96f9a6538889f3d5d586b5809b34a4638cc0bc52b0cda46d5fde73c6e1e67865f8671971e45de9e4 linux-postmarketos-qcom-msm8916-v6.0.2-msm8916.tar.gz 26fd8b2b38a66f05c67e6200fef31a6cbea8fd99e2331c2960049b26a39bc91539e33d394c0b7286c20f030666c0ab8f439c4899226476a852647fbcd12d77bc config-postmarketos-qcom-msm8916.aarch64 315d1f6c666e320ea9a7c8c12223d0c9afe049e4fd752b4d06a61365d75a996f60c74c0b481eea102118cfde7a3a3cc549e01a99f342cf0e6fa9f66b78d34b03 config-postmarketos-qcom-msm8916.armv7 "