pmaports/device/community/linux-postmarketos-qcom-sm6350/APKBUILD
Luca Weiss 439227770f
linux-postmarketos-qcom-sm6350: enable CONFIG_RMNET (MR 4749)
Required for getting mobile data up, otherwise ModemManager fails to
connect with:

  Status     |                connected: no
             |    connection error name: org.freedesktop.ModemManager1.Error.MobileEquipment.Unknown
             | connection error message: failed to create net link for device: failed to add link for device: Could not allocate link: Failed to add link with mux id 1: Netlink message with transaction 27 failed
[ci:skip-build]: already built successfully in CI
2024-01-21 19:10:06 +01:00

59 lines
1.6 KiB
Text

# Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor="postmarketos-qcom-sm6350"
pkgname=linux-$_flavor
pkgver=6.7.0
pkgrel=1
pkgdesc="Mainline Kernel fork for SM6350/SM7225 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"
_repo="linux"
_config="config-$_flavor.$arch"
_tag="v$pkgver-sm6350"
# Source
source="
https://github.com/z3ntu/$_repo/archive/$_tag/$_repo-$_tag.tar.gz
$_config
"
builddir="$srcdir/$_repo-$pkgver-sm6350"
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="
2129b3fbf2ac585130ef53c768597fe7d4372b3f1fbbcafeae4ed781d2643884735d349aae72c885a510f28179fb37d5c1075c75e8f72676b8ab4600ededaba8 linux-v6.7.0-sm6350.tar.gz
2f3ce14bc425c26604ba1a40d014d005a6fbba206ed16d519b86279e29c10b55a31653899ed373464d7f7e92bcaa7d8552f01d8e405e5706bbb28695ad0ed0c8 config-postmarketos-qcom-sm6350.aarch64
"