2023-06-26 22:43:01 +00:00
|
|
|
# Maintainer: M0Rf30 <morf3089@gmail.com>
|
|
|
|
# Co-Maintainer: Ultra-azu <ultra.public@proton.me>
|
2021-06-17 00:09:42 +00:00
|
|
|
# Kernel config based on: defconfig, msm8953.config, and device configs
|
2020-06-20 21:24:50 +00:00
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-msm8953"
|
|
|
|
pkgname=linux-$_flavor
|
2024-03-09 19:39:42 +00:00
|
|
|
pkgver=6.7.9
|
2024-02-17 15:46:18 +00:00
|
|
|
pkgrel=0
|
2022-12-17 17:28:40 +00:00
|
|
|
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon MSM8953"
|
2020-06-20 21:24:50 +00:00
|
|
|
arch="aarch64"
|
2023-04-29 20:29:15 +00:00
|
|
|
_carch="arm64"
|
2020-06-20 21:24:50 +00:00
|
|
|
url="https://github.com/msm8953-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
2021-07-19 21:40:01 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2023-04-29 20:29:15 +00:00
|
|
|
pmb:kconfigcheck-community
|
|
|
|
"
|
2021-10-12 10:11:12 +00:00
|
|
|
makedepends="
|
2022-12-17 17:28:40 +00:00
|
|
|
bash
|
2021-10-12 10:11:12 +00:00
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
2023-04-29 20:29:15 +00:00
|
|
|
"
|
2020-06-20 21:24:50 +00:00
|
|
|
|
2023-12-31 00:24:39 +00:00
|
|
|
_tag="$pkgver-r0"
|
2022-12-17 17:28:40 +00:00
|
|
|
|
2020-06-20 21:24:50 +00:00
|
|
|
source="
|
2023-09-05 21:51:25 +00:00
|
|
|
$pkgname-v$_tag.tar.gz::$url/archive/v$_tag.tar.gz
|
2022-12-17 17:28:40 +00:00
|
|
|
config-$_flavor.aarch64
|
2020-06-20 21:24:50 +00:00
|
|
|
"
|
2023-09-05 21:51:25 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2020-06-20 21:24:50 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2023-04-29 20:29:15 +00:00
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
2020-06-20 21:24:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2023-04-29 20:29:15 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
2020-06-20 21:24:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
2022-12-17 17:28:40 +00:00
|
|
|
|
2020-06-20 21:24:50 +00:00
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2022-12-17 17:28:40 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2020-06-20 21:24:50 +00:00
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
2022-12-17 17:28:40 +00:00
|
|
|
install -Dm644 "$builddir/include/config/kernel.release" \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
2020-06-20 21:24:50 +00:00
|
|
|
}
|
2022-12-17 17:28:40 +00:00
|
|
|
|
2021-06-06 01:20:37 +00:00
|
|
|
sha512sums="
|
2024-03-09 19:39:42 +00:00
|
|
|
900036c6c771a6da5ae70baf34cb2959d136ff10cca44c5303ea163174fbef9444cd567def6ac45be08455c6fa74828bcfb32d646bdc806c96ccae1c213cee0b linux-postmarketos-qcom-msm8953-v6.7.9-r0.tar.gz
|
|
|
|
9fd465c9d3532ff7ff1ca2ac445cf1ea6080176d17dae5cce6a0510536dc5af175c00640af13fc09f5ecb6bf1f094dd0c62387642bc90805b0008ef5c650f9a0 config-postmarketos-qcom-msm8953.aarch64
|
2021-06-06 01:20:37 +00:00
|
|
|
"
|