2019-04-19 12:13:40 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/santoni_defconfig
|
2018-03-20 18:46:01 +00:00
|
|
|
pkgname="linux-xiaomi-santoni"
|
2019-05-23 14:38:56 +00:00
|
|
|
pkgver=3.18.140
|
2020-03-07 20:52:28 +00:00
|
|
|
pkgrel=2
|
2019-04-19 12:13:40 +00:00
|
|
|
pkgdesc="Xiaomi Redmi 4X kernel fork - msm-3.18 rebase"
|
2018-03-20 18:46:01 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="xiaomi-santoni"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL2"
|
|
|
|
options="!strip !check !tracedeps"
|
2020-02-18 08:34:06 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
2018-10-01 06:44:18 +00:00
|
|
|
|
2018-03-20 18:46:01 +00:00
|
|
|
# Source
|
2019-03-25 12:29:19 +00:00
|
|
|
_repository="msm-3.18"
|
2019-05-23 14:38:56 +00:00
|
|
|
_commit="2dd8017f40290eb326e352cca254cd8bdd1614c9"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-03-20 18:46:01 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/bitrvmpd/$_repository/archive/$_commit.tar.gz
|
2019-04-19 12:13:40 +00:00
|
|
|
fix-xorg-mdss-update-fb-info.patch
|
2019-04-28 08:43:35 +00:00
|
|
|
disable-substream-runtime-errors.patch
|
2019-07-14 12:30:38 +00:00
|
|
|
bt-hci-smd.patch
|
2020-03-07 20:52:28 +00:00
|
|
|
99_framebuffer.patch
|
2018-03-20 18:46:01 +00:00
|
|
|
$_config
|
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2018-03-20 18:46:01 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2018-03-20 18:46:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2018-03-20 18:46:01 +00:00
|
|
|
}
|
|
|
|
|
2019-05-23 14:38:56 +00:00
|
|
|
sha512sums="d7a290e676aa40d35289cedbad5dd077accff4e1a2467223765a79f101ff4c1313315cbffd574ad74c648c4b8f5751d16a1fa1607c9939b373d3f2974a7b2326 linux-xiaomi-santoni-2dd8017f40290eb326e352cca254cd8bdd1614c9.tar.gz
|
2019-04-19 12:13:40 +00:00
|
|
|
a277af28a718f5caf94257005393aa92d62c96110a8ec6368ff62f2e0d871b69c56c4ce00174db637204d53fa63ad3a79b8d6141713dca0878e1f06fe0379caa fix-xorg-mdss-update-fb-info.patch
|
2019-04-28 08:43:35 +00:00
|
|
|
14ee08e4f93befeaabfb35e6bf0b8bb5b2eecba1c21ce4498499c377c2cf4d5fccbfe85e14ca92c704d067386ec08a06805ab886f0ec7691471cf379838545aa disable-substream-runtime-errors.patch
|
2019-07-14 12:30:38 +00:00
|
|
|
f5850f712ce7aa42ada1971fc5f428ac8b9f5eef77d8bfb09bb24e0636e0b70ae78009466ed4962bd257721126577a756114e2ee2a70d4a925dd57e0ec7bcfa6 bt-hci-smd.patch
|
2020-03-07 20:52:28 +00:00
|
|
|
a6f9899ab97af727e4450201a2edc2bf6fc805d981fa967581b98c5e1ee0b9c005feeeb647b40b220a79ed9a318cf9bbf8f953aab941daf6fea4790a372aae21 99_framebuffer.patch
|
2019-07-14 12:30:38 +00:00
|
|
|
753b1517980a6aa4bc1ccea6d013cb5cf74cd85a92a279a5fff2f13f0930a9266305d9efdd06ce4fe7baf76eb47118fe95b855a458e0457d91041da9b8ef0897 config-xiaomi-santoni.aarch64"
|