# Reference: # Kernel config based on: arch/arm64/configs/defconfig _flavor="postmarketos-qcom-sm8250" pkgname=linux-$_flavor pkgver=5.19.0_rc5 pkgrel=0 pkgdesc="Mainline kernel fork for SM8250" arch="aarch64" _carch="arm64" url="https://github.com/lujianhua/linux" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-nftables " makedepends=" bash bison findutils flex installkernel openssl-dev perl " # Source _commit="73df9964ab67db7e01eb4a54860c77eec731ee45" _config="config-$_flavor.$arch" source=" $pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz $_config " builddir="$srcdir/linux-$_commit" _outdir="out" 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 make zinstall 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=" b8d0fffd3bdd6b1cb1b206e1fcce457510e9d91ffcbe8524b9dab4dd9479860967b9fc863ccdc7d6fdfa34247582a9bbfbcdc23be64a7ebd049ef7fc59e2a092 linux-postmarketos-qcom-sm8250-73df9964ab67db7e01eb4a54860c77eec731ee45.tar.gz f6281a5d1437bbe12fc6a54e5f480e435d6aee4589956cc92175892e4d33016024f6937a9260bfee49217c973a206f8e778cd7b9e51cef09f404673a87795561 config-postmarketos-qcom-sm8250.aarch64 "