2023-09-12 16:52:28 +00:00
|
|
|
# Maintainer: Danila Tikhonov <danila@jiaxyga.com>
|
|
|
|
# Co-Maintainer: David Wronek <davidwronek@gmail.com>
|
2022-12-10 10:17:10 +00:00
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm7150"
|
|
|
|
pkgname=linux-$_flavor
|
2023-09-12 16:52:28 +00:00
|
|
|
pkgver=6.6.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
|
|
|
|
"
|
|
|
|
makedepends="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
|
2023-09-12 16:52:28 +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}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
|
|
|
}
|
|
|
|
|
|
|
|
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="
|
2023-09-12 16:52:28 +00:00
|
|
|
b77cf09c086cf0f2ef12d3593849c320fd2005a2fdd0d9e5c1e2121c6fb7979c49bb5fd7d09ff8cffbd7400ebf329d5fb1f592e5456bc0ccf70b629e958eed08 linux-postmarketos-qcom-sm7150-v6.6.1-r0.tar.gz
|
|
|
|
293b4a84f4ea0774e552faf41c53232245995948183df10ba0e90834b1057210e1706832b60bf8a639024e840f8ac7ea173829faae00a71b64bbb28cf81d202c config-postmarketos-qcom-sm7150.aarch64
|
2022-12-10 10:17:10 +00:00
|
|
|
"
|