pmaports/device/testing/linux-postmarketos-mediatek-mt81xx/APKBUILD

73 lines
1.8 KiB
Text
Raw Normal View History

# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=linux-postmarketos-mediatek-mt81xx
pkgver=6.8_rc6_git20240228
pkgrel=0
pkgdesc="Mediatek MT8186/8192/8195 kernel package"
arch="aarch64"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip
!check
!tracedeps
pmb:cross-native
pmb:kconfigcheck-community
"
makedepends="
bash
bison
findutils
flex
openssl-dev
perl
gmp-dev
mpc1-dev
mpfr-dev
xz
postmarketos-installkernel
"
# Source
_flavor="${pkgname#linux-}"
_config="config-$_flavor.$arch"
_repository="chromeos-kernel"
_carch="arm64"
_flavor="${pkgname#linux-}"
_commit="edc400c8d9b44140edf742bcd9ea9ad1414e58ec"
source="
$pkgname-$_commit.tar.gz::https://gitlab.collabora.com/google/$_repository/-/archive/$_commit/chromeos-kernel-$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
prepare() {
default_prepare
cp "$srcdir/$_config" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" \
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"/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="
03bc7f07d04dfe10c5d82f28f41dc9e371cbdc841ffe2293521563c26dbbab7d3318859a43dc8290bf46ef3f48a06d05be9b35faaa7ca2d0ad36d4c8296a855a linux-postmarketos-mediatek-mt81xx-edc400c8d9b44140edf742bcd9ea9ad1414e58ec.tar.gz
6086b6d01e8306c41958e4a78bff3863f2f0c6fcc476f5a7bdc0999e78230f260f18cae47b2ec164a6bb94cf51a4fc7a9492b91f43e6cae83011160a4ad7abf1 config-postmarketos-mediatek-mt81xx.aarch64
"