pmaports/device/testing/linux-postmarketos-qcom-sm8250/APKBUILD
Musk Wasis 2146027219
testing/linux-postmarketos-qcom-sm8250: Enable BTRFS (MR 4143)
[ci:skip-build]: already built successfully in CI
2023-08-07 09:12:50 +02:00

65 lines
1.7 KiB
Text

# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/defconfig
_flavor="postmarketos-qcom-sm8250"
pkgname=linux-$_flavor
pkgver=6.4.0_rc2
pkgrel=1
pkgdesc="Mainline kernel fork for SM8250"
arch="aarch64"
_carch="arm64"
url="https://gitlab.com/sm8250-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-nftables
"
makedepends="
bash
bison
findutils
flex
installkernel
openssl-dev
perl
"
# Source
_tag="sm8250-6.4.0-rc2"
_config="config-$_flavor.$arch"
source="
$pkgname-$_tag.tar.gz::https://gitlab.com/sm8250-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
$_config
"
builddir="$srcdir/linux-$_tag"
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() {
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="
a798fe5920765ced2d8158d43c757b6b7960ead6a34dcb67db725eb74d0b0d781ca81b69491726e09e6a3393c981ab6d0bcdbd6a3fa16147dd5c053ce58a9ade linux-postmarketos-qcom-sm8250-sm8250-6.4.0-rc2.tar.gz
4e8fe18cabc2861635bf5ba0f6f2c004b3bc856368744316288b3aff405ef450d1fccfa9e4f84e863b8e6e9a7426ea8d40dd260ff0870764843fc85446d85928 config-postmarketos-qcom-sm8250.aarch64
"