2024-06-28 15:03:26 +00:00
|
|
|
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
2021-09-30 11:03:46 +00:00
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm6350"
|
|
|
|
pkgname=linux-$_flavor
|
2024-06-28 14:51:58 +00:00
|
|
|
pkgver=6.9.7
|
2024-07-31 09:39:22 +00:00
|
|
|
pkgrel=3
|
2023-12-15 15:13:49 +00:00
|
|
|
pkgdesc="Mainline Kernel fork for SM6350/SM7225 devices"
|
2021-09-30 11:03:46 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2024-05-17 08:20:16 +00:00
|
|
|
url="https://github.com/sm6350-mainline/linux"
|
2021-09-30 11:03:46 +00:00
|
|
|
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="
|
2024-05-17 08:20:16 +00:00
|
|
|
https://github.com/sm6350-mainline/$_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="
|
2024-06-28 14:51:58 +00:00
|
|
|
2d432d2e9cf681c55a8406d1c9122ebdde8fdd0dee12815b785bfc9446527bec25a812b297e88d893685fa32b45afd752ae13ae2c28bf6e53f9699e4f7021dae linux-v6.9.7-sm6350.tar.gz
|
2024-07-31 09:39:22 +00:00
|
|
|
06f71580b32172ffe6e46b6b7032ea03bd6deeece7a1f1ad777e4de7bf3d31588b4d75062ccb0c2cb3330124f3d49423bab79e73c1637ceedf44d10e104e3572 config-postmarketos-qcom-sm6350.aarch64
|
2021-09-30 11:03:46 +00:00
|
|
|
"
|