Files
pmaports-rtwo/device/testing/linux-postmarketos-qcom-sm7635/APKBUILD
T
Luca Weiss 487c0eb8f4 linux-postmarketos-qcom-sm7635: upgrade to 6.16
From the first revision, the compatibles and names were changed from
sm7635 to milos, to follow the new upstream naming guidelines.

Significant Milos-specific changes:
* UFS (internal storage) now works
* CCI I2C enablement including the EEPROMs on the camera sensors
* Partial IPA (mobile data) enablement, at least allows ModemManager to
  detect the modem, but mobile data is still broken.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6962>
2025-08-25 12:12:42 +00:00

60 lines
1.6 KiB
Bash

# Maintainer: Luca Weiss <luca@lucaweiss.eu>
_flavor="postmarketos-qcom-sm7635"
pkgname=linux-$_flavor
pkgver=6.16
pkgrel=0
pkgdesc="Mainline Kernel fork for Qualcomm Milos SoC (SM7635, etc.) devices"
arch="aarch64"
_carch="arm64"
url="https://github.com/z3ntu/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-community
"
makedepends="bash bison findutils flex installkernel openssl-dev perl python3"
_repo="linux"
_config="config-$_flavor.$arch"
_tag="v$pkgver-milos"
# Source
source="
https://github.com/z3ntu/$_repo/archive/refs/tags/$_tag/$_repo-$_tag.tar.gz
$_config
"
builddir="$srcdir/$_repo-$pkgver-milos"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$arch" .config
}
build() {
unset LDFLAGS
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
}
package() {
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
"$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="
1a945df593c8df5ec997cab3db2009d35a4f44d5df8be4b8a7ba4a047578cb332a5537c560bd2d62c86403e9c283ba1ef856797e0204c2415ad51b905c843338 linux-v6.16-milos.tar.gz
2601d70b937319c962dd12bbbc52752b1afcdb8f67ad0fcef4c675e796b2936bb4605082702c15cac46ce65a38e1b91d9c5dfa6580b555739fce4bdd17d36d80 config-postmarketos-qcom-sm7635.aarch64
"