2023-09-12 16:52:28 +00:00
|
|
|
# Maintainer: Danila Tikhonov <danila@jiaxyga.com>
|
2024-05-27 08:16:33 +00:00
|
|
|
# Co-Maintainer: David Wronek <david@mainlining.org>
|
2024-02-12 06:44:48 +00:00
|
|
|
# Co-Maintainer: Jens Reidel <adrian@travitia.xyz>
|
2022-12-10 10:17:10 +00:00
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm7150"
|
|
|
|
pkgname=linux-$_flavor
|
2024-02-12 06:44:48 +00:00
|
|
|
pkgver=6.7.4
|
2024-01-03 08:02:19 +00:00
|
|
|
pkgrel=1
|
|
|
|
_pkgrel=0
|
2022-12-10 10:17:10 +00:00
|
|
|
pkgdesc="Mainline Kernel fork for SM7150 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
url="https://github.com/sm7150-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
|
|
|
"
|
2024-01-03 08:02:19 +00:00
|
|
|
makedepends="bison findutils flex openssl-dev perl postmarketos-installkernel"
|
2022-12-10 10:17:10 +00:00
|
|
|
|
2024-01-03 08:02:19 +00:00
|
|
|
_tag="$pkgver-r$_pkgrel"
|
2022-12-10 10:17:10 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
source="
|
2023-09-12 16:52:28 +00:00
|
|
|
$pkgname-v$_tag.tar.gz::$url/archive/v$_tag.tar.gz
|
|
|
|
config-$_flavor.$arch
|
2022-12-10 10:17:10 +00:00
|
|
|
"
|
2023-09-12 16:52:28 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2022-12-10 10:17:10 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2024-01-03 08:02:19 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((_pkgrel + 1 ))-$_flavor"
|
2022-12-10 10:17:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
2023-01-11 23:06:11 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2022-12-10 10:17:10 +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-02-12 06:44:48 +00:00
|
|
|
e5159ef56d28f2e4cc071801c82255d8aa047cc9066aa491ac5a7094eae4b08ec217c042b166cf081e34292b1b6ff957d86545e590d585f3d9516020a37cfb8c linux-postmarketos-qcom-sm7150-v6.7.4-r0.tar.gz
|
|
|
|
e20fbfd096a261a558dd7195d1dbe1148fca86774ae7cd21597b275074aaeba998a449d0547b84cd22a467ba8900856161bd01f06fd4054a1cdf66ab5482ec9d config-postmarketos-qcom-sm7150.aarch64
|
2022-12-10 10:17:10 +00:00
|
|
|
"
|