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
|
2021-04-25 20:54:02 +00:00
|
|
|
pkgver=4.9.267
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=2
|
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-06-24 22:54:45 +00:00
|
|
|
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl sed"
|
2020-05-24 10:11:50 +00:00
|
|
|
|
|
|
|
# Source
|
2021-04-25 20:54:02 +00:00
|
|
|
_repository="kernel_xiaomi_vince"
|
|
|
|
_commit="1168c9c785b4995f08cc1eff89eec5ce286d2258"
|
2020-05-24 10:11:50 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2021-04-25 20:54:02 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/M0Rf30/$_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
|
|
|
|
REPLACE_GCCH=0 \
|
|
|
|
. downstreamkernel_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
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="
|
|
|
|
43544ac76a3f4a325ea4d7760d60e12375ccfaf6e6865f331d785b7482241a2ba5e78334a071e9471b83cbecdc50d5717eeef8baa4bf714674cd8b36c7569e5a linux-xiaomi-vince-1168c9c785b4995f08cc1eff89eec5ce286d2258.tar.gz
|
|
|
|
479fb6d64a6bf759cef502d911c2be76fb449417dfcd9bbc0ef76ce9f514b6310110b798e029f715359871afabe403576b99a28646ac5e6cfcfb7cabe052b3cb config-xiaomi-vince.aarch64
|
|
|
|
"
|