main/linux-postmarketos-qcom-msm8994: new aport (MR 2411)
v5.14.15 kernel used (current newest stable). Intended to be used also on msm8992 which has nearly the same DTS. I haven't tested other functionality except boot to initramfs on huawei-angler and lg-bullhead. Some kernel config options set according to linux-postmarketos-qcom-msm8996. Signed-off-by: Petr Vorel <petr.vorel@gmail.com> [ci:skip-build] Already built on CI in MR
This commit is contained in:
parent
75a251552e
commit
b1ec255459
2 changed files with 7544 additions and 0 deletions
65
main/linux-postmarketos-qcom-msm8994/APKBUILD
Normal file
65
main/linux-postmarketos-qcom-msm8994/APKBUILD
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
# Maintainer: Petr Vorel <petr.vorel@gmail.com>
|
||||||
|
# Kernel config based on: arch/arm64/configs/defconfig
|
||||||
|
|
||||||
|
_flavor="postmarketos-qcom-msm8994"
|
||||||
|
pkgname=linux-$_flavor
|
||||||
|
pkgver=5.14.15
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Kernel mainline Qualcomm MSM8994 and MSM8992 devices"
|
||||||
|
arch="aarch64"
|
||||||
|
_carch="arm64"
|
||||||
|
url="https://kernel.org"
|
||||||
|
license="GPL-2.0-only"
|
||||||
|
options="!strip !check !tracedeps
|
||||||
|
pmb:cross-native
|
||||||
|
pmb:kconfigcheck-nftables
|
||||||
|
"
|
||||||
|
makedepends="
|
||||||
|
bison
|
||||||
|
findutils
|
||||||
|
flex
|
||||||
|
openssl-dev
|
||||||
|
perl
|
||||||
|
postmarketos-installkernel
|
||||||
|
xz
|
||||||
|
"
|
||||||
|
|
||||||
|
case $pkgver in
|
||||||
|
*.*.*) _kernver=${pkgver%.0};;
|
||||||
|
*.*) _kernver=$pkgver;;
|
||||||
|
esac
|
||||||
|
source="
|
||||||
|
https://cdn.kernel.org/pub/linux/kernel/v${_kernver%%.*}.x/linux-$_kernver.tar.xz
|
||||||
|
config-$_flavor.$arch
|
||||||
|
"
|
||||||
|
builddir="$srcdir/linux-$_kernver"
|
||||||
|
|
||||||
|
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"/usr/share/dtb
|
||||||
|
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="
|
||||||
|
f2549b5494ce2e8174b70d29282a60e072ca31d4a83e1e1f4b3f0acb150e1849fe4f2eaf6b6cb18ac758e723c3d53aa8686e4e6d9d7cb9696983ffe64f6a9b59 linux-5.14.15.tar.xz
|
||||||
|
599feb3a76f9d90e4a851a6037d810d34f5889de1ac32bfeb2f71dd9f756d197464132ed491a3f4dc7fbd16a7341431f765df0ebc8adec83bff82326777591a2 config-postmarketos-qcom-msm8994.aarch64
|
||||||
|
"
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue