2022-01-22 12:44:03 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
2024-05-27 23:39:30 +00:00
|
|
|
# Maintainer: Jianhua Lu <lujianhua000@gmail.com>
|
2022-01-22 12:44:03 +00:00
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-sm8250"
|
|
|
|
pkgname=linux-$_flavor
|
2024-05-27 23:39:30 +00:00
|
|
|
pkgver=6.10.0
|
2024-07-28 15:27:48 +00:00
|
|
|
pkgrel=1
|
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
|
|
|
|
openssl-dev
|
|
|
|
perl
|
2024-06-06 21:29:58 +00:00
|
|
|
postmarketos-installkernel
|
2024-05-27 23:39:30 +00:00
|
|
|
python3
|
2022-01-22 12:44:03 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
# Source
|
2024-02-02 03:50:32 +00:00
|
|
|
_tag="sm8250-$pkgver"
|
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="
|
2024-05-27 23:39:30 +00:00
|
|
|
2fdaa13c25c573a1b41dec1c6ad71bdbb4bb18f81c41aea1d114e631215371d7970e5a6a407d977366cacfcfe66229788668942c774fddb56037a493e87b2402 linux-postmarketos-qcom-sm8250-sm8250-6.10.0.tar.gz
|
2024-07-28 15:27:48 +00:00
|
|
|
7ac069d4d8dda94eb547a50564838632dc40f663fbd9abcd8d367ab8344e3dde8e62f6339a63c96a8654b474d83f4726cd61d78d81655581439ce0a84ce05ee4 config-postmarketos-qcom-sm8250.aarch64
|
2022-01-22 12:44:03 +00:00
|
|
|
"
|