66 lines
1.7 KiB
Text
66 lines
1.7 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
_flavor="postmarketos-qcom-sm8250"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.6.0
|
|
pkgrel=0
|
|
pkgdesc="Mainline kernel fork for SM8250"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
url="https://gitlab.com/sm8250-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-nftables
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
findutils
|
|
flex
|
|
installkernel
|
|
openssl-dev
|
|
perl
|
|
"
|
|
|
|
# Source
|
|
_tag="sm8250-6.6.0"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_tag.tar.gz::https://gitlab.com/sm8250-mainline/linux/-/archive/$_tag/linux-$_tag.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/linux-$_tag"
|
|
|
|
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 \
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
|
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="
|
|
babc2cd2d505a5a109042b7815f58e6969216ad5c48920c0bb11d96700e58381762e09d36973c9161f3ac5a92c7185dbdf2592db1ff4058f9f972319737bdbe4 linux-postmarketos-qcom-sm8250-sm8250-6.6.0.tar.gz
|
|
6161f51f95965715bf80cabf7a986a88cffd4b7cb127d51009e5092d8f3dae911c6a028b2a25ff0c59da8601cdfb036c0f680ddc2b04da5db1beb18bdeba0834 config-postmarketos-qcom-sm8250.aarch64
|
|
"
|