2023-08-25 13:40:17 +00:00
|
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sc7280"
|
|
|
|
pkgname=linux-$_flavor
|
2024-03-14 11:06:39 +00:00
|
|
|
pkgver=6.8.0
|
|
|
|
pkgrel=0
|
2023-08-25 13:40:17 +00:00
|
|
|
pkgdesc="Mainline Kernel fork for SC7280/SM7325/QCM6490 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2024-03-14 11:06:39 +00:00
|
|
|
url="https://github.com/sc7280-mainline/linux"
|
2023-08-25 13:40:17 +00:00
|
|
|
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-10-30 10:38:57 +00:00
|
|
|
_tag="v$pkgver-sc7280"
|
2023-08-25 13:40:17 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2024-03-14 11:06:39 +00:00
|
|
|
https://github.com/sc7280-mainline/$_repo/archive/refs/tags/$_tag/$_repo-$_tag.tar.gz
|
2023-08-25 13:40:17 +00:00
|
|
|
$_config
|
|
|
|
"
|
2023-10-30 10:38:57 +00:00
|
|
|
builddir="$srcdir/$_repo-$pkgver-sc7280"
|
2023-08-25 13:40:17 +00:00
|
|
|
|
|
|
|
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="
|
2024-03-14 11:06:39 +00:00
|
|
|
1f813000ad22d7d74e57ee2fc46d337f4dd6542f355501e3880d6e074e59e1a142b10c3f941ff60bdd85e8838aed2b8a67ded3b81827d41606565d1c00d92654 linux-v6.8.0-sc7280.tar.gz
|
|
|
|
0bf65c10fe1302dc7aad57dc39855cfbfc86ebe65fcaa0082aac6a70829089287840b572c80320db93c14a64f72086fd2a073f334b942d35cc63663c0152a918 config-postmarketos-qcom-sc7280.aarch64
|
2023-08-25 13:40:17 +00:00
|
|
|
"
|