pmaports/device/testing/linux-postmarketos-qcom-sm8250/APKBUILD
Newbyte 70efe55031
linux-*: install dtbs to /boot/dtbs (MR 3254)
[ci:ignore-count]: Too many packages probably
[ci:skip-build]: No way this would finish in time
2022-10-09 17:04:30 +02:00

66 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=5.19.0
pkgrel=1
pkgdesc="Mainline kernel fork for SM8250"
arch="aarch64"
_carch="arm64"
url="https://github.com/lujianhua/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
_commit="858fabb41e9eedca992616d4dc191483a3c8b2c1"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/linux-$_commit"
_outdir="out"
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="
3ef691a4f0162942fc0ca393ba51fcc43657562e0744dd33601cbcea9248ede5282cfb674717402d6e20dbe7ae5b0f060201d50418f6d682e8921d0eb00afde1 linux-postmarketos-qcom-sm8250-858fabb41e9eedca992616d4dc191483a3c8b2c1.tar.gz
16580485bd471e6436964cb22800f64b1bdc88f0a0e6af8dde3b5f6e7c21aa41eeb44f1c6867fc0e50cb5675f03e1f7735587b3b5648945da4ccb49464dfbf22 config-postmarketos-qcom-sm8250.aarch64
"