Files
pmaports-rtwo/device/testing/linux-postmarketos-mediatek-mt6768/APKBUILD
T
Jami Kettunen b8c64a14f7 device/*: drop my "maintainership" of msm8998/mt6763/mt6768 stuff
I've not touched anything in pmaports (or mainline aarch64 stuff in
general besides my Snapdragon X Elite laptop which I thankfully didn't
have to bringup myself) for about 3 years at this point so I think that
ship has sailed by now.

[ci:skip-build]: orphaning the packages
[ci:skip-vercheck]

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6971
2025-09-05 18:03:42 +02:00

71 lines
1.9 KiB
Bash

# Maintainer:
# Mainline Linux kernel fork with patches for MediaTek MT6768 devices
# Kernel config based on: arch/arm64/configs/mt6768_defconfig
_flavor="postmarketos-mediatek-mt6768"
pkgname=linux-$_flavor
pkgver=6.1_rc5
pkgrel=3
_commit="d8741eb21ebe5b989e69e40a058cd2d593397ae2"
pkgdesc="Mainline Kernel fork for MT6768-based devices"
arch="aarch64"
_carch="arm64"
_config="config-$_flavor.$arch"
url="https://gitlab.com/mtk-mainline/mt6768/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
"
makedepends="
android-tools
bash
bison
findutils
flex
linux-headers
openssl-dev
perl
postmarketos-installkernel
xz
"
# Source
source="
https://gitlab.com/mtk-mainline/mt6768/linux/-/archive/$_commit/linux-$_commit.tar.gz
$_config
"
builddir="$srcdir/linux-$_commit"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$arch" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1))-$_flavor"\
V=1
}
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
dtbodir="$builddir/$_outdir/arch/arm64/boot/dts/mediatek"
mkdtboimg create "$pkgdir/boot/dtbo.img" \
"$dtbodir/mt6769z-volla-mimameid-minimal-dtbo.dtb"
}
sha512sums="
20cd7ce324ff0a29a1ceaf0c69e77d619c0b21c924c0913214070308774cb88f1c803bef0da0a85d9bbca3797eadd7f63bb9bc6cf256350c658a8820c275c1e3 linux-d8741eb21ebe5b989e69e40a058cd2d593397ae2.tar.gz
deb140228aa10fd2fb56b69c9fbacb0b7ba3fcf6039453c02cc4f5a47eb7c6444672b5583931019609ac255b492700ef4ac1972c3844db71ffc2f89fa1f9356d config-postmarketos-mediatek-mt6768.aarch64
"