# Reference: # Kernel config based on: arch/arm64/configs/pinenote_defconfig pkgname=linux-pine64-pinenote pkgver=6.2.0 pkgrel=0 pkgdesc="Pine64 PineNote close to mainline fork" arch="aarch64" _carch="arm64" _flavor="pine64-pinenote" url="https://kernel.org" license="GPL-2.0-only" options="!strip !check !tracedeps pmb:cross-native" makedepends="bison findutils flex installkernel openssl-dev perl" # Source _config="config-$_flavor.$arch" _commit="e135fe39af47671ded230a8c92f6850a5985f0b6" source=" $pkgname-$pkgver.tar.gz::https://github.com/m-weigand/linux/archive/$_commit.tar.gz $_config " builddir="$srcdir/linux-$_commit" prepare() { default_prepare cp "$srcdir/config-$_flavor.$CARCH" .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" \ "$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"/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=" e127d44a19da6578528d23286d5c0b113e8dce0351d4e36471ba73a655de45864c0fda019459a07e0842d5375732c96d20ecde079b4ae678be5c2d5fb6944eb1 linux-pine64-pinenote-6.2.0.tar.gz bfb11501c04926efc6a2b6cc443aab2973d9ccd6107db870101f42ee1b046e6037a48b2dbf4f400e1850883f5f8a9d25f2dda0fcfc201df24c1f3f9aa42adf90 config-pine64-pinenote.aarch64 "