71389586f8
[ci:skip-build]: already built successfully in CI
65 lines
1.7 KiB
Text
65 lines
1.7 KiB
Text
# Maintainer: M0Rf30 <morf3089@gmail.com>
|
|
# Co-Maintainer: Ultra-azu <ultra.public@proton.me>
|
|
# Kernel config based on: defconfig, msm8953.config, and device configs
|
|
|
|
_flavor="postmarketos-qcom-msm8953"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.5.2
|
|
pkgrel=0
|
|
pkgdesc="Close to mainline linux kernel for Qualcomm Snapdragon MSM8953"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://github.com/msm8953-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
findutils
|
|
flex
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
|
|
_tag="$pkgver-r1"
|
|
|
|
source="
|
|
$pkgname-v$_tag.tar.gz::$url/archive/v$_tag.tar.gz
|
|
config-$_flavor.aarch64
|
|
"
|
|
builddir="$srcdir/linux-$_tag"
|
|
|
|
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 -Dm644 "$builddir/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
}
|
|
|
|
sha512sums="
|
|
72603a44b0a41937be7b2a9bb31b062034396bc6c78c16226f98604fee57a1e9ae6c659ec1692d48e0fde0bb06aca30048c795d15e74c26ab79cd60f0064be73 linux-postmarketos-qcom-msm8953-v6.5.2-r1.tar.gz
|
|
6e8d1667f2dea647ef0e0d3a778387f5952054df25523eff485d7d0b27916c93f89171929b742cb9a705498e5365e5f22d545faa1f2264037afd8ee357eb6691 config-postmarketos-qcom-msm8953.aarch64
|
|
"
|