48 lines
1.4 KiB
Text
48 lines
1.4 KiB
Text
|
# Maintainer: Venji10 <bennisteinir@gmail.com>
|
||
|
|
||
|
# Reference: <https://postmarketos.org/vendorkernel>
|
||
|
# Kernel config based on: arch/arm64/configs/beryllium_defconfig
|
||
|
|
||
|
pkgname=linux-xiaomi-beryllium
|
||
|
pkgver=4.9.182
|
||
|
pkgrel=0
|
||
|
pkgdesc="Xiaomi Poco F1 kernel fork"
|
||
|
arch="aarch64"
|
||
|
_carch="arm64"
|
||
|
_flavor="xiaomi-beryllium"
|
||
|
url="https://kernel.org"
|
||
|
license="GPL-2.0-only"
|
||
|
options="!strip !check !tracedeps"
|
||
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
||
|
|
||
|
|
||
|
# Source
|
||
|
_repository="android_kernel_xiaomi_sdm845"
|
||
|
_commit="0c1feb8b3a7cc62aed52346331f64190e644cca9"
|
||
|
_config="config-$_flavor.$arch"
|
||
|
source="
|
||
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
||
|
$_config
|
||
|
"
|
||
|
builddir="$srcdir/$_repository-$_commit"
|
||
|
_outdir="out"
|
||
|
|
||
|
prepare() {
|
||
|
default_prepare
|
||
|
. downstreamkernel_prepare
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
unset LDFLAGS
|
||
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS" \
|
||
|
O="$_outdir"
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
||
|
}
|
||
|
|
||
|
sha512sums="60f63841673f31e1faf9f26113e93ca5ccf83925618bc35d1f6e11744f2f0f295bf32cfb6f9ece1d104868ed12af5ac76dea2ee39b4fb26b0569c8779ce0d74d linux-xiaomi-beryllium-0c1feb8b3a7cc62aed52346331f64190e644cca9.tar.gz
|
||
|
fd387f1d36d5bd65b082430af9a675f23720385b9852f02ab59d59ae6efb55e7a4da7cec1a362a8e485814058d91bb34ce59a81fd0def5a9bd66dad3540a10de config-xiaomi-beryllium.aarch64"
|