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-03-24 23:08:34 +00:00
|
|
|
pkgver=4.9.308
|
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-03-24 23:08:34 +00:00
|
|
|
_commit="c6c68b86bd3bc487cb26037d3cbc3e1262c81b61"
|
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-03-24 23:08:34 +00:00
|
|
|
845aa62b1e52e34466432665c9b7cf71a6dd17a827802149a54bc184bfd75da1d4dba383573f939465cc1f2665bdcbb17fbaa96a4f6e7704523af3373f9fa6e3 linux-xiaomi-vince-c6c68b86bd3bc487cb26037d3cbc3e1262c81b61.tar.gz
|
|
|
|
74a53cf412a54aca51e2697062e457db6ab166a3bc217752224a12afdac66e4d858d4e17cd4fa814e54e5f0cbc028df1bffadb0a8f6e504c16bbf94dea06572a config-xiaomi-vince.aarch64
|
2021-06-24 22:54:45 +00:00
|
|
|
"
|