2021-05-06 04:54:17 +00:00
|
|
|
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
|
|
# Co-Maintainer: Uclydde <julianbraha@gmail.com>
|
2022-03-04 23:22:49 +00:00
|
|
|
# Co-Maintainer: Alexey Min <alexeymin@postmarketos.org>
|
2021-05-06 04:54:17 +00:00
|
|
|
# Stable Linux kernel with patches for SM8150 devices
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig and sm8150.config
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm8150"
|
|
|
|
pkgname=linux-$_flavor
|
2022-03-04 23:22:49 +00:00
|
|
|
pkgver=5.17.0
|
2022-07-30 18:11:01 +00:00
|
|
|
pkgrel=1
|
2021-05-06 04:54:17 +00:00
|
|
|
pkgdesc="Mainline Kernel fork for SM8150 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
url="https://gitlab.com/sm8150-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
2021-07-19 21:21:19 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
|
|
|
"
|
2021-10-12 10:14:07 +00:00
|
|
|
makedepends="
|
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
"
|
2021-05-06 04:54:17 +00:00
|
|
|
|
|
|
|
_repo="linux"
|
|
|
|
_config="config-$_flavor.$arch"
|
2022-03-04 23:22:49 +00:00
|
|
|
_tag="v5.17.0-sm8150"
|
2021-05-06 04:54:17 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2022-03-04 23:22:49 +00:00
|
|
|
$_repo-$_tag.tar.bz2::https://gitlab.com/sm8150-mainline/linux/-/archive/$_tag/linux-$_tag.tar.bz2
|
2021-05-06 04:54:17 +00:00
|
|
|
$_config
|
|
|
|
"
|
2022-03-04 23:22:49 +00:00
|
|
|
builddir="$srcdir/$_repo-$_tag"
|
2021-05-06 04:54:17 +00:00
|
|
|
|
|
|
|
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 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2021-05-06 04:54:17 +00:00
|
|
|
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="
|
2022-03-04 23:22:49 +00:00
|
|
|
0cfcec980668ecdc1646c6398807367525058eb762d0410bb9443632febaa3f1c8d3164d165da20e6638fb625443aab5c37635bc0d347df685ce8e65308b752e linux-v5.17.0-sm8150.tar.bz2
|
|
|
|
71013301cb4432dad555600fddfee1fc86ecfca7fe9569ae35930c54a02a8b4cd70afa0e79fd0e5e9d64956dc888e9873cce1efd1cbb743095f877fd0940aac1 config-postmarketos-qcom-sm8150.aarch64
|
2021-05-06 04:54:17 +00:00
|
|
|
"
|