64e1496e73
Add an initial port for the Fairphone 5 smartphone. This includes firmware and close-to-mainline kernel package. [ci:skip-build]: Already built successfully in CI
59 lines
1.7 KiB
Text
59 lines
1.7 KiB
Text
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
_flavor="postmarketos-qcom-sc7280"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.5.0
|
|
pkgrel=0
|
|
pkgdesc="Mainline Kernel fork for SC7280/SM7325/QCM6490 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-community
|
|
"
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
|
|
|
_repo="linux"
|
|
_config="config-$_flavor.$arch"
|
|
_commit="0f7331bd2d4470c9e135f7d1c05deee1076893a3"
|
|
|
|
# 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() {
|
|
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="
|
|
a0123de96f68ee15d98f2b251ac794b3a91c94d824d931e6ad7f585f53ca56f3369d97e65c560458eba46c30378832d32003459c771eb8179e370239337c75d9 linux-0f7331bd2d4470c9e135f7d1c05deee1076893a3.tar.gz
|
|
2bad9a9c26069868a2ab6808627d73c60edc187a2e0376eb57c96dd797ee0f7e8ec98840482972c7f68f69e7ab3606b03a9583ba3d5c7a2c60c93dcf279efcc4 config-postmarketos-qcom-sc7280.aarch64
|
|
"
|