79be2d5074
- Add support for the rear camera on xiaomi-scorpio - Improve charging from SDPs - Add extcon support on oneplus-oneplus3(t) - Add container and zram kconfig checks to APKBUILD [ci:skip-build] Already built successfuly on CI in MR
58 lines
1.7 KiB
Text
58 lines
1.7 KiB
Text
# Maintainer: Yassine Oudjana (Tooniis) <y.oudjana@protonmail.com>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="postmarketos-qcom-msm8996"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.16.12
|
|
pkgrel=0
|
|
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8996 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/msm8996-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-nftables
|
|
pmb:kconfigcheck-anbox
|
|
pmb:kconfigcheck-containers
|
|
pmb:kconfigcheck-zram
|
|
"
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
# Source
|
|
_tag=v${pkgver//_/-}-msm8996
|
|
source="
|
|
linux-$_tag.tar.gz::$url/-/archive/$_tag/linux-$_tag.tar.gz
|
|
config-$_flavor.$arch
|
|
"
|
|
builddir="$srcdir/linux-$_tag"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/boot
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
make modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
}
|
|
sha512sums="
|
|
2cbe733bf4c76417ff7f0222564dcfb8d1c183d74c926dd0959b9b3ed794899d3306cce7b1c78d34400ca6c9bed6ae4fe6e52d5e9cc86fef4ec26f45bfdc426b linux-v5.16.12-msm8996.tar.gz
|
|
aec533a349a2fc7e9ad8bc0ee9bc574f387d22bb75b03a1735761e2f89bf209341e5353d886651d67bb01676e75709f399d908715eb7dcc547baa70a63503c14 config-postmarketos-qcom-msm8996.aarch64
|
|
"
|