2021-06-30 19:22:57 +00:00
|
|
|
# Maintainer: Ultracoolguy <ultracoolguy@disroot.org>
|
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
|
2023-01-08 21:32:51 +00:00
|
|
|
pkgver=6.1.0
|
2023-04-23 13:11:42 +00:00
|
|
|
pkgrel=1
|
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"
|
|
|
|
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
|
2022-12-17 17:28:40 +00:00
|
|
|
pmb:kconfigcheck-containers
|
|
|
|
pmb:kconfigcheck-iwd
|
2021-07-19 21:40:01 +00:00
|
|
|
pmb:kconfigcheck-nftables
|
2022-12-17 17:28:40 +00:00
|
|
|
pmb:kconfigcheck-waydroid
|
2021-07-19 21:40:01 +00:00
|
|
|
"
|
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
|
2022-12-17 17:28:40 +00:00
|
|
|
"
|
2020-06-20 21:24:50 +00:00
|
|
|
|
|
|
|
# Source
|
2023-01-08 21:32:51 +00:00
|
|
|
_commit="b5b016f951f44dcc5a584d31843ea7e0ce5bf1c2"
|
2022-12-17 17:28:40 +00:00
|
|
|
|
2020-06-20 21:24:50 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/msm8953-mainline/linux/archive/$_commit.tar.gz
|
2022-12-17 17:28:40 +00:00
|
|
|
config-$_flavor.aarch64
|
2020-06-20 21:24:50 +00:00
|
|
|
"
|
2022-12-17 17:28:40 +00:00
|
|
|
|
|
|
|
_carch="arm64"
|
|
|
|
|
2020-06-20 21:24:50 +00:00
|
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2022-12-17 17:28:40 +00:00
|
|
|
cp -v "$srcdir/config-$_flavor.$CARCH" "$builddir"/.config
|
2020-06-20 21:24:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2023-04-23 16:08:59 +00:00
|
|
|
# V=1: workaround for pma#1990
|
2020-06-20 21:24:50 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2023-04-23 16:08:59 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" \
|
|
|
|
V=1
|
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="
|
2023-01-08 21:32:51 +00:00
|
|
|
3dfa002828db13baa9beb59aa7512051cec149924c2e29cc6ae87938ee6fe74b9ac013e0fb62e4be7213666f700b6e37f0d27b2bb860a54b4f0649f55e4a9590 linux-postmarketos-qcom-msm8953-b5b016f951f44dcc5a584d31843ea7e0ce5bf1c2.tar.gz
|
2023-04-23 13:11:42 +00:00
|
|
|
4d39e837a6fdaf8022197c76bafbe5f87ab3cf82ceff10a86b029510cd1acb9ffa0476245046f09228f539439b02b40a6f93be1c79ff215d340a32e58cdbc6f5 config-postmarketos-qcom-msm8953.aarch64
|
2021-06-06 01:20:37 +00:00
|
|
|
"
|