pmaports/device/testing/linux-pine64-pinetab2/APKBUILD

72 lines
1.9 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/pinetab2_defconfig
# Maintainer: Danct12 <danct12@disroot.org>
# Co-Maintainer: Stefan Hansson <newbyte@postmarketos.org>
pkgname=linux-pine64-pinetab2
pkgver=6.9.8
_danctnix_kernel_rel=2
pkgrel=0
pkgdesc="Pine64 PineTab 2 mainline"
arch="aarch64"
_carch="arm64"
_flavor="pine64-pinetab2"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native"
depends="kmod"
makedepends="
bash
bison
findutils
flex
linux-headers
postmarketos-installkernel
openssl-dev
perl
xz
zstd
"
# Source
_tags="v$pkgver-danctnix$_danctnix_kernel_rel"
_config="config-$_flavor.$arch"
source="
$pkgname-$_tags.tar.gz::https://github.com/dreemurrs-embedded/linux-pinetab2/archive/$_tags.tar.gz
$_config
"
builddir="$srcdir/linux-pinetab2-${_tags:1}"
_outdir="out"
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() {
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="
65bfeb9d718f8105b46bdfffabb9fd4ac69ad969c912c342ab4b56fc652b1cc06550acd805a6df08b204e4860be344185641495e576a9753abd9e3d88ab220bc linux-pine64-pinetab2-v6.9.8-danctnix2.tar.gz
7053b57f5e6f1b5a0ff97442fe598f8cc0176037a7f664a4c1a83ff1f04eb2d7f3aa72aca78fd3ed12ecaee7d2755231985abc0a9dbd012006d404454a757a47 config-pine64-pinetab2.aarch64
"