# Reference: # Kernel config based on: arch/arm64/configs/defconfig # Maintainer: Ferass El Hafidi # Co-Maintainer: exkc pkgname=linux-postmarketos-amlogic pkgver=6.5.5 pkgrel=0 pkgdesc="Mainline kernel for Amlogic devices" arch="aarch64" _carch="arm64" _flavor=postmarketos-amlogic url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native pmb:kconfigcheck-community " makedepends=" bash bc bison devicepkg-dev flex openssl-dev perl gmp-dev mpc1-dev mpfr-dev findutils postmarketos-installkernel gzip " _config="config-$_flavor.$arch" source=" $pkgname-$pkgver.tar.xz::https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$pkgver.tar.xz $_config 0001-add-xiaomi-once-support.patch 0002-add-x96-mini-support.patch " builddir="$srcdir/linux-$pkgver" prepare() { default_prepare cp -v "$srcdir"/$_config .config } build() { unset LDFLAGS make ARCH="$_carch" CC="${CC:-gcc}" \ KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" } package() { mkdir -p "$pkgdir"/boot make install modules_install dtbs_install \ ARCH="$_carch" \ INSTALL_MOD_STRIP=1 \ INSTALL_PATH="$pkgdir"/boot \ INSTALL_MOD_PATH="$pkgdir" \ INSTALL_DTBS_PATH="$pkgdir/boot/dtbs" install -D "$builddir"/include/config/kernel.release \ "$pkgdir/usr/share/kernel/$_flavor/kernel.release" } sha512sums=" c95ad978847915e044146f254c9cec7d3d32e4afc28a5cbbeec2f0591aef28f584f0a273f7bb5bd8706cd7cc849dfd0cdb764fbc2c84e8b3c1b0f30fb6bfd306 linux-postmarketos-amlogic-6.5.5.tar.xz d2a663bbd6842b612b4bcba8a00035e5f1ab20d62fd1f94c0cd57095c2c2e3095b69faddff5f16b4d7f73228cfbcb59000dcbe00276888c2279dbc2a0f513a24 config-postmarketos-amlogic.aarch64 9d664c9cc6168a7aa4804662886941744e92c0748e7b7b4fad2472740a4931c89a60cbc4a519913b58933718d02f33f48ff72ea182d912bcd50014ca8d7ff110 0001-add-xiaomi-once-support.patch 3ea569b69297fdb196006b1e1bd82a9dec8d89362ec3ef17918018b6c573143f299a968b8227119660442f6a6e0b795aa4c8a272f6bc23e9622f3fd41ddc97eb 0002-add-x96-mini-support.patch "