Enable options for SHIFTphone 8, and enable vibration motor driver for Fairphone 5. Manual kconfig changes: * TOUCHSCREEN_FOCALTECH_FT3658U=m * INPUT_AW86927=m * DRM_PANEL_SHIFT_SH8804B=m * LEDS_QCOM_LPG=m Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6934>
60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
|
|
|
_flavor="postmarketos-qcom-sc7280"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.16.1
|
|
pkgrel=0
|
|
pkgdesc="Mainline Kernel fork for SC7280/SM7325/QCM6490 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://github.com/sc7280-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl python3"
|
|
|
|
_repo="linux"
|
|
_config="config-$_flavor.$arch"
|
|
_tag="v$pkgver-sc7280"
|
|
|
|
# Source
|
|
source="
|
|
https://github.com/sc7280-mainline/$_repo/archive/refs/tags/$_tag/$_repo-$_tag.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/$_repo-$pkgver-sc7280"
|
|
|
|
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() {
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
make 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 -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
}
|
|
|
|
sha512sums="
|
|
e57b2fb5d1dff2f707814ea1b1e638259c8cb716384bd622344eeb5617238a297440beaf6612727bb9c678df263beb028906b4e29590aa4b483065293100ddbc linux-v6.16.1-sc7280.tar.gz
|
|
7b240cf34cd2e168bf3a995496b4196d25ea0acab7d03097bb8aba958acc07736c46c6bec8ec0d2076092f500923ea2c735e9e5e52633ac512e92df69fa8e558 config-postmarketos-qcom-sc7280.aarch64
|
|
"
|