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-03-27 11:09:57 +00:00
|
|
|
pkgver=6.3.0_rc4
|
2022-08-27 05:51:43 +00:00
|
|
|
pkgrel=0
|
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
|
|
|
|
"
|
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-03-27 11:09:57 +00:00
|
|
|
_commit="33ca6f1ddae2ea1aeac52b9218105b2abdc54e61"
|
2022-01-22 12:44:03 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
2023-03-27 11:09:57 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://gitlab.com/sm8250-mainline/linux/-/archive/$_commit.tar.gz
|
2022-01-22 12:44:03 +00:00
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
|
|
|
|
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-03-27 11:09:57 +00:00
|
|
|
65d26ce88b2df792000c32f841cdf18bd9b8e072404ba31ea5a5b541b9dd381c26115fc6ea3e0cb0c86024f585508b9e5e85ff439d3e33ce1f01e90e7e07924a linux-postmarketos-qcom-sm8250-33ca6f1ddae2ea1aeac52b9218105b2abdc54e61.tar.gz
|
|
|
|
af09b1a7ffd64d9a5dfc907c6ab506eb446cf106dcf6d039c5020c5971047fa44422c8b9bc557e162e2b4c8c6eba201cb1830be5c978394649d2540c419755bd config-postmarketos-qcom-sm8250.aarch64
|
2022-01-22 12:44:03 +00:00
|
|
|
"
|