pmaports/device/community/linux-postmarketos-qcom-sm6350/APKBUILD
Luca Weiss 027866c8d4
{community,main}/*: enable USB_CONFIGFS_NCM (MR 4511)
See also #1797 and !3670

[ci:skip-build] already built successfully in CI
2023-10-30 20:17:27 -07:00

59 lines
1.7 KiB
Text

# Maintainer: Luca Weiss <luca@z3ntu.xyz>
_flavor="postmarketos-qcom-sm6350"
pkgname=linux-$_flavor
pkgver=6.4.2
pkgrel=1
pkgdesc="Mainline Kernel fork for SM6350 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"
_commit="f33e98821f41bc160a6985355c4a2d1dc5223afa"
# Source
source="
$_repo-$_commit.tar.gz::https://github.com/z3ntu/$_repo/archive/$_commit/$_repo-$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repo-$_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"
}
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="
310907bca81377fd4753cf9365ffa5e7eeef13fb0d14c99487f14a8284a717fcf70aa360c7612aa6970498f7241f4606d1ebcef0b3f2477d147b51af983a92ac linux-f33e98821f41bc160a6985355c4a2d1dc5223afa.tar.gz
5999fbbc61d789b639a530105298b31308b31886143317bb033634b58f10151676518949f18318d63bbf188f52958be5df4fa7dbd1ab204431a50464870897f6 config-postmarketos-qcom-sm6350.aarch64
"