# Maintainer: Alexey Min # Kernel config based on: arch/arm64/configs/defconfig _flavor="postmarketos-qcom-sdm660" pkgname=linux-$_flavor pkgver=5.10_rc6 pkgrel=6 pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon 660 SoC" arch="aarch64" url="https://kernel.org/" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables " makedepends="bison findutils flex installkernel openssl-dev perl" _commit="377c8d37a09558550590ebcfa222100cebf051e4" source=" linux-sdm660-mainline-$_commit.tar.gz::https://github.com/sdm660-mainline/linux/archive/$_commit.tar.gz config-$_flavor.aarch64 " _carch="arm64" builddir="$srcdir/linux-$_commit" prepare() { default_prepare cp -v "$srcdir/config-$_flavor.$CARCH" "$builddir"/.config } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" } package() { # bootloader requires compressed kernel install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \ "$pkgdir/boot/vmlinuz" install -D "$builddir/include/config/kernel.release" \ "$pkgdir/usr/share/kernel/$_flavor/kernel.release" make modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_MOD_STRIP=1 \ INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb" } sha512sums=" 081613314b05dac4cb22bda7cd14064080737906f3d8c9c37f4b9a068c114fd5752ecde9598f80636355ae30e72a78c38c98b996fb9a72d413100b8ec0c9a466 linux-sdm660-mainline-377c8d37a09558550590ebcfa222100cebf051e4.tar.gz f59bc4700110ceaa345b6b3eab2621e2a637b2f2c0d14ebb6d8e4f62993f983d498cde13fffe7da70419d9cf3468d80824f9f98497a1506cdc02e6b6495fd456 config-postmarketos-qcom-sdm660.aarch64 "