# Maintainer: Luca Weiss _flavor="postmarketos-qcom-sm6350" pkgname=linux-$_flavor pkgver=5.16_rc7 pkgrel=0 pkgdesc="Mainline Kernel fork for SM6350 devices" arch="aarch64" _carch="arm64" url="https://github.com/z3ntu/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables " makedepends="bison findutils flex installkernel openssl-dev perl" _repo="linux" _config="config-$_flavor.$arch" _commit="cf7283c73c655f365a563fb2cc9d090ff41cef2d" # Source source=" $_repo-$_commit.tar.gz::https://github.com/z3ntu/$_repo/archive/$_commit/$_repo-$_commit.tar.gz $_config " builddir="$srcdir/$_repo-$_commit" prepare() { default_prepare cp "$srcdir/config-$_flavor.$arch" .config } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" } package() { mkdir -p "$pkgdir"/boot install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \ "$pkgdir/boot/vmlinuz" make modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_PATH="$pkgdir"/boot/ \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_MOD_STRIP=1 \ 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=" becbc70463d228bdab21fbf46bc31ee63d82f4432c8469fbe7ab8ad362163f8d4050d69822e3d12e381fcf94f798294d8c86f8dbc7601811b08cdb006f6342a4 linux-cf7283c73c655f365a563fb2cc9d090ff41cef2d.tar.gz ff806350c70ee1ea65582c340d2b37a785eb3718c0028b50fbe36864f159bbe2d3c36413a55bc3070ffbb6450d6d7373014f8adee91fa9af5d340d0724097ea1 config-postmarketos-qcom-sm6350.aarch64 "