2023-08-25 13:40:17 +00:00
|
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sc7280"
|
|
|
|
pkgname=linux-$_flavor
|
2023-09-20 15:05:52 +00:00
|
|
|
pkgver=6.5.0_git20230920
|
2023-08-25 13:40:17 +00:00
|
|
|
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"
|
2023-09-20 15:05:52 +00:00
|
|
|
_commit="6aa08e1508a0437c4ecb3a3837f611b699950836"
|
2023-08-25 13:40:17 +00:00
|
|
|
|
|
|
|
# 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="
|
2023-09-20 15:05:52 +00:00
|
|
|
ef033ec5afc7c4fcb87227de00a247215d435dee7846ed77d174b89c5bdd5c3a3bb0132128acef4dc7b8584a0c149a2cf6e90b5a4b506dd1ce307da7cce54a15 linux-6aa08e1508a0437c4ecb3a3837f611b699950836.tar.gz
|
2023-08-25 13:40:17 +00:00
|
|
|
2bad9a9c26069868a2ab6808627d73c60edc187a2e0376eb57c96dd797ee0f7e8ec98840482972c7f68f69e7ab3606b03a9583ba3d5c7a2c60c93dcf279efcc4 config-postmarketos-qcom-sc7280.aarch64
|
|
|
|
"
|