2020-05-24 10:11:50 +00:00
|
|
|
# Maintainer: m0rf30 <morf3089@gmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/vince_defconfig
|
|
|
|
|
|
|
|
pkgname=linux-xiaomi-vince
|
2022-06-11 16:46:26 +00:00
|
|
|
pkgver=4.9.317
|
2021-10-30 14:24:33 +00:00
|
|
|
pkgrel=0
|
2020-05-24 10:11:50 +00:00
|
|
|
pkgdesc="Xiaomi Redmi Note 5 Plus kernel fork"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="xiaomi-vince"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2021-10-30 14:24:33 +00:00
|
|
|
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl"
|
2020-05-24 10:11:50 +00:00
|
|
|
|
|
|
|
# Source
|
2021-10-30 14:24:33 +00:00
|
|
|
_repository="android_kernel_xiaomi_vince"
|
2022-06-11 16:46:26 +00:00
|
|
|
_commit="997fb667ef0b17bbc3bc20a32b6366ea9989a58a"
|
2020-05-24 10:11:50 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2021-10-30 14:24:33 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/GhostMaster69-dev/$_repository/archive/$_commit.tar.gz
|
2020-05-24 10:11:50 +00:00
|
|
|
$_config
|
|
|
|
"
|
2021-04-25 20:54:02 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2020-05-24 10:11:50 +00:00
|
|
|
_outdir="out"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2021-10-30 14:24:33 +00:00
|
|
|
. downstreamkernel_prepare
|
2020-05-24 10:11:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
|
|
|
}
|
|
|
|
|
2021-06-24 22:54:45 +00:00
|
|
|
sha512sums="
|
2022-06-11 16:46:26 +00:00
|
|
|
18551ea131b9969a93b6da4d5803543ce875662edd10a258a0fb06a5fc6eac51f9fb8567790de47e2cb920afe69f92ac5ac39390b01a8e55aa7c6428ec6d57f7 linux-xiaomi-vince-997fb667ef0b17bbc3bc20a32b6366ea9989a58a.tar.gz
|
|
|
|
2f682f5868710d42f82ad345b2b8e68a215e7dd3755a15379ebf1fd85bcc769b071e88435315205564a37472f3025a6e2536785104cbd9d4d3c31d72d52c0450 config-xiaomi-vince.aarch64
|
2021-06-24 22:54:45 +00:00
|
|
|
"
|