2018-01-05 16:52:44 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/lineage_s2_defconfig
|
|
|
|
|
|
|
|
pkgname="linux-leeco-s2"
|
2020-04-13 19:34:56 +00:00
|
|
|
pkgver=3.10.108
|
|
|
|
pkgrel=0
|
2018-01-05 16:52:44 +00:00
|
|
|
pkgdesc="LeEco Le 2 kernel fork"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="leeco-s2"
|
|
|
|
url="https://kernel.org"
|
2019-09-08 12:54:10 +00:00
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-02-18 08:34:06 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev git gcc6"
|
2018-10-01 06:44:18 +00:00
|
|
|
|
|
|
|
# Compiler: this kernel was only tested with GCC6. Feel free to make a merge
|
|
|
|
# request if you find out that it is booting working with newer GCCs as
|
|
|
|
# well. See <https://postmarketos.org/vendorkernel> for instructions.
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
2018-11-30 20:56:06 +00:00
|
|
|
HOSTCC="gcc6-gcc"
|
2018-10-01 06:44:18 +00:00
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
2018-01-05 16:52:44 +00:00
|
|
|
# Source
|
2020-04-13 19:34:56 +00:00
|
|
|
_repository="android_kernel_leeco_msm8976"
|
|
|
|
_commit="34d5355a3059e3991f291c63f7ba5507bbeddf6c"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-01-05 16:52:44 +00:00
|
|
|
source="
|
2020-04-13 19:34:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
2020-02-18 09:48:41 +00:00
|
|
|
$_config
|
|
|
|
compiler-gcc6.h
|
|
|
|
01_fix_gcc6_errors.patch
|
2020-04-13 19:34:56 +00:00
|
|
|
02_fix_msm_dba.patch
|
2020-02-18 09:48:41 +00:00
|
|
|
03_psci.patch
|
|
|
|
05_dtb-fix.patch
|
2018-01-05 16:52:44 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2018-01-05 16:52:44 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-02-18 09:48:41 +00:00
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2018-01-05 16:52:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-02-18 09:48:41 +00:00
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2018-01-05 16:52:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2018-01-05 16:52:44 +00:00
|
|
|
}
|
2020-04-13 19:34:56 +00:00
|
|
|
sha512sums="b21357959cebb3cdbfbb12da6bcd95f928791c76d861810d70ca11d9d909bb342e1e67b97772f5052221227be2a3956f3781f2da1081cd159ed7a478c5cb3c97 linux-leeco-s2-34d5355a3059e3991f291c63f7ba5507bbeddf6c.tar.gz
|
|
|
|
ec9851ad182387888aff542da1f86ed69611a516305debec5ce8bf3c04243ef744451fa7e78330f9f5113d74745d931df9dd3fdf59e81a94e112df33050cdee0 config-leeco-s2.aarch64
|
2018-01-05 16:52:44 +00:00
|
|
|
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h
|
|
|
|
b23dfac4f6be2ac460f220f9e0780590c8d137cdfc5f0bf513efa0fb1ca07f32a6f0a53a96b215e9db8cdc28937e0eb46e6420147b5d3cf4dc64cff77b414457 01_fix_gcc6_errors.patch
|
2020-04-13 19:34:56 +00:00
|
|
|
3cf963ee3dbf08547d731081850183ec2a30924f182b12eddc3befb9bd1a3ed9aefdbc8bfa10ff62d2351ce69743996edb00830559f84dad0d067cff7de5a127 02_fix_msm_dba.patch
|
2018-01-05 16:52:44 +00:00
|
|
|
a66521ea257ed7d339592e198ce9cab983deb20fa45c02ffa8689ac7081d879ae3bff9648107c65e2805893c08611b356a55e6c088c8e17c7631364aa2a10c39 03_psci.patch
|
|
|
|
0e5ebee2f1b0005fcae4f313219c0b6481b3d044c7167e0fb18b72db0eae49aef7b281cd29e0fa1e653fc5585064c990085ca68f920348c3d9d9ea9524d1baa6 05_dtb-fix.patch"
|