2021-09-30 11:03:46 +00:00
|
|
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm6350"
|
|
|
|
pkgname=linux-$_flavor
|
2023-12-15 15:13:49 +00:00
|
|
|
pkgver=6.6.7
|
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Mainline Kernel fork for SM6350/SM7225 devices"
|
2021-09-30 11:03:46 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
url="https://github.com/z3ntu/linux"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-09-07 20:43:05 +00:00
|
|
|
pmb:kconfigcheck-community
|
2021-09-30 11:03:46 +00:00
|
|
|
"
|
2022-06-29 18:05:12 +00:00
|
|
|
makedepends="bash bison findutils flex installkernel openssl-dev perl"
|
2021-09-30 11:03:46 +00:00
|
|
|
|
|
|
|
_repo="linux"
|
|
|
|
_config="config-$_flavor.$arch"
|
2023-12-15 15:13:49 +00:00
|
|
|
_tag="v$pkgver-sm6350"
|
2021-09-30 11:03:46 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2023-12-15 15:13:49 +00:00
|
|
|
https://github.com/z3ntu/$_repo/archive/$_tag/$_repo-$_tag.tar.gz
|
2021-09-30 11:03:46 +00:00
|
|
|
$_config
|
|
|
|
"
|
2023-12-15 15:13:49 +00:00
|
|
|
builddir="$srcdir/$_repo-$pkgver-sm6350"
|
2021-09-30 11:03:46 +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 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2021-09-30 11:03:46 +00:00
|
|
|
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-12-15 15:13:49 +00:00
|
|
|
8578c42bf70700808f8d95cbe294cee5df391cf149f33f87f09aaae649ff128d48d3501dd958345c6205cb91836b2b969118197ac4ca35bd9d55b78522e53d5f linux-v6.6.7-sm6350.tar.gz
|
|
|
|
cbea50bf65de74e12a507b6402f598329412ca7c15257307a7c5a4acd65a22e088a49ba792317f942dadc1a5ed1cf9bd6b6ce7a04c63a2a900d7a92584a2f367 config-postmarketos-qcom-sm6350.aarch64
|
2021-09-30 11:03:46 +00:00
|
|
|
"
|