d25c061ee2
New features: * AW8695 haptics driver (for FP4) * Interconnect
61 lines
1.7 KiB
Text
61 lines
1.7 KiB
Text
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
_flavor="postmarketos-qcom-sm6350"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.19_rc1
|
|
pkgrel=0
|
|
pkgdesc="Mainline Kernel fork for SM6350 devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://github.com/z3ntu/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-nftables
|
|
"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
_repo="linux"
|
|
_config="config-$_flavor.$arch"
|
|
_commit="c564e78794983b1c949a9f999c9d529ca369448e"
|
|
|
|
# Source
|
|
source="
|
|
$_repo-$_commit.tar.gz::https://github.com/z3ntu/$_repo/archive/$_commit/$_repo-$_commit.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/$_repo-$_commit"
|
|
|
|
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
|
|
|
|
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"/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="
|
|
cb852063e5ef3c8856c7ccf5c85acc141ae9cd8ef0c6b34e63bccf1ca5a0b32d3d1464ca75301e0a48ccf9601c97d74f6c7d98f2a42f51543702eb2e96b8e820 linux-c564e78794983b1c949a9f999c9d529ca369448e.tar.gz
|
|
70e65603d06fa90163133453b553435434dacba44740215b1276a4cdfaaa9942cbc404f3c4f4f8d95b3bcd600950533dac7a99e5a10db7129b69676c8d7765b7 config-postmarketos-qcom-sm6350.aarch64
|
|
"
|