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
|
2023-08-05 17:15:27 +00:00
|
|
|
pkgver=6.4
|
|
|
|
pkgrel=0
|
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
|
2023-08-05 17:15:27 +00:00
|
|
|
xz
|
2021-10-12 10:14:07 +00:00
|
|
|
"
|
2021-05-06 04:54:17 +00:00
|
|
|
|
|
|
|
_repo="linux"
|
|
|
|
_config="config-$_flavor.$arch"
|
2023-08-05 17:15:27 +00:00
|
|
|
_commit="93f303701cafa17135d8ee563ffdc39f319783f1"
|
2021-05-06 04:54:17 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2023-08-05 17:15:27 +00:00
|
|
|
$_repo-$_tag.tar.bz2::https://gitlab.com/sm8150-mainline/linux/-/archive/$_commit/linux-$_commit.tar.bz2
|
2021-05-06 04:54:17 +00:00
|
|
|
$_config
|
|
|
|
"
|
2023-08-05 17:15:27 +00:00
|
|
|
builddir="$srcdir/$_repo-$_commit"
|
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="
|
2023-08-05 17:15:27 +00:00
|
|
|
fde637d245fa55525763d509caeb038005b419ddddfb28bd5087826c3b38e88126cacee048cdef191c2df67cb421cda19ad125ecaa83e0668de0d848a3f38318 linux-.tar.bz2
|
|
|
|
d4cebfea2a6230b3293db13853d8b5c5b5434fc7e18e112570fa79702d3d667963017b6d7a0d90d1b437865f177c42ac95d5c8f0e5f1733d4a5f5414f07e3e0f config-postmarketos-qcom-sm8150.aarch64
|
2021-05-06 04:54:17 +00:00
|
|
|
"
|