2022-01-22 12:44:03 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm8250"
|
|
|
|
pkgname=linux-$_flavor
|
2023-04-07 13:24:41 +00:00
|
|
|
pkgver=6.4.0_rc2
|
2023-08-14 00:31:01 +00:00
|
|
|
pkgrel=2
|
2022-01-22 12:44:03 +00:00
|
|
|
pkgdesc="Mainline kernel fork for SM8250"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
2023-03-27 11:09:57 +00:00
|
|
|
url="https://gitlab.com/sm8250-mainline/linux"
|
2022-01-22 12:44:03 +00:00
|
|
|
license="GPL-2.0-only"
|
2022-07-04 11:46:12 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
2023-08-14 00:31:01 +00:00
|
|
|
pmb:kconfigcheck-community
|
2022-07-04 11:46:12 +00:00
|
|
|
"
|
2022-01-22 12:44:03 +00:00
|
|
|
makedepends="
|
|
|
|
bash
|
|
|
|
bison
|
2022-07-04 11:46:12 +00:00
|
|
|
findutils
|
2022-01-22 12:44:03 +00:00
|
|
|
flex
|
2022-07-04 11:46:12 +00:00
|
|
|
installkernel
|
2022-01-22 12:44:03 +00:00
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
"
|
|
|
|
|
|
|
|
# Source
|
2023-04-07 13:24:41 +00:00
|
|
|
_tag="sm8250-6.4.0-rc2"
|
2022-01-22 12:44:03 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
2023-04-07 13:24:41 +00:00
|
|
|
$pkgname-$_tag.tar.gz::https://gitlab.com/sm8250-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
|
2022-01-22 12:44:03 +00:00
|
|
|
$_config
|
|
|
|
"
|
2023-04-07 13:24:41 +00:00
|
|
|
builddir="$srcdir/linux-$_tag"
|
2022-01-22 12:44:03 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2022-07-04 11:46:12 +00:00
|
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
2022-01-22 12:44:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2022-07-04 11:46:12 +00:00
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
2022-01-22 12:44:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-07-04 11:46:12 +00:00
|
|
|
mkdir -p "$pkgdir"/boot
|
2022-01-22 12:44:03 +00:00
|
|
|
|
2022-07-04 11:46:12 +00:00
|
|
|
make zinstall modules_install dtbs_install \
|
2022-01-22 12:44:03 +00:00
|
|
|
ARCH="$_carch" \
|
2022-07-04 11:46:12 +00:00
|
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
2022-01-22 12:44:03 +00:00
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2022-07-04 11:46:12 +00:00
|
|
|
INSTALL_MOD_STRIP=1 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2022-07-04 11:46:12 +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
|
2022-01-22 12:44:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-04-07 13:24:41 +00:00
|
|
|
a798fe5920765ced2d8158d43c757b6b7960ead6a34dcb67db725eb74d0b0d781ca81b69491726e09e6a3393c981ab6d0bcdbd6a3fa16147dd5c053ce58a9ade linux-postmarketos-qcom-sm8250-sm8250-6.4.0-rc2.tar.gz
|
2023-08-14 00:31:01 +00:00
|
|
|
7ff1eece377110272a8fd6ebeda49c0474f5028d6e44a1e8b4bec9542651110370234a9649a46cb2414611a6aaf727be59d333b9b0cb4a0c7bfa95967d266178 config-postmarketos-qcom-sm8250.aarch64
|
2022-01-22 12:44:03 +00:00
|
|
|
"
|