2019-06-24 10:58:07 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/lineageos_kenzo_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-xiaomi-kenzo
|
2019-06-24 10:58:07 +00:00
|
|
|
pkgver=3.10.105
|
2024-01-14 02:40:03 +00:00
|
|
|
pkgrel=4
|
2019-06-24 10:58:07 +00:00
|
|
|
pkgdesc="Xiaomi Redmi Note 3 kernel fork"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="xiaomi-kenzo"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2019-06-24 10:58:07 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc6"
|
|
|
|
|
|
|
|
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
|
|
|
HOSTCC="gcc6-gcc"
|
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_xiaomi_msm8956"
|
|
|
|
_commit="92430f1a110b9b49e69fb1d3bde81c0f048d0282"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-06-24 10:58:07 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
2019-06-24 10:58:07 +00:00
|
|
|
$_config
|
|
|
|
01_fix_gcc6_errors.patch
|
|
|
|
02_fix_msm_dba.patch
|
2020-11-04 12:48:12 +00:00
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
2024-01-14 02:40:03 +00:00
|
|
|
linux3.7to4.5-ARM64-remove-Sun-Solaris-style-flag-on-section.patch
|
2019-06-24 10:58:07 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2019-06-24 10:58:07 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-06-24 10:58:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
msg "Combine DTB and Image.gz"
|
2020-02-28 10:17:04 +00:00
|
|
|
msg "(Because QCOM's custom Makefile builds into the wrong direcotry)"
|
|
|
|
cat "$builddir/arch/$_carch/boot/Image.gz" \
|
|
|
|
"$builddir/arch/arm/boot/dts/kenzo-msm8956-mtp.dtb" \
|
|
|
|
> "$builddir/arch/$_carch/boot/Image.gz-dtb"
|
2019-06-24 10:58:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2019-06-24 10:58:07 +00:00
|
|
|
}
|
|
|
|
|
2024-01-14 02:40:03 +00:00
|
|
|
sha512sums="
|
|
|
|
c2d57468544d9b96e7f55d8358419fecdbbb75ae02e08fb3e008a882750855966d989a79e058888bcdd5542f322fd26ac217cd73c316768183b496f108089b43 linux-xiaomi-kenzo-92430f1a110b9b49e69fb1d3bde81c0f048d0282.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
412fd5ab87a01b5a525f4bb31c6541c27c95ed81dbc889a49d15a75493b43114b77db265ce8bede25e094fe0e7deb551edb741b99255441a0e5278f2f608b7de config-xiaomi-kenzo.aarch64
|
2019-06-24 10:58:07 +00:00
|
|
|
972e98523d6ef06342e69a09e979bdd86904cf7f9a843b519b37791e531b680182564a2ab537c94629c3589f4e775b2c39de04c64e210a0f8b6f10745c3596f1 01_fix_gcc6_errors.patch
|
2020-11-04 12:48:12 +00:00
|
|
|
7e765cb696fa8c3dfbc305b05cbf1fad85fb9572613d5391e945341dae5974a745f4906c795dc841e5562b19ab77d5257f9741e514af2c2573aa4bb8b262ce51 02_fix_msm_dba.patch
|
2024-01-14 02:40:03 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
75545ccd0082a119b9ad95fcef3523c939a5c946f8f3a5c3dde15cee1502f6c1011050a0ad5359426f018bb7ceea1c97a28c7665941bc89f365c8d11065ce0f6 linux3.7to4.5-ARM64-remove-Sun-Solaris-style-flag-on-section.patch
|
|
|
|
"
|