2019-12-30 07:56:37 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/lineageos_tomato_defconfig
|
2020-02-28 10:17:04 +00:00
|
|
|
# Maintainer: xeon zolt <xeon.harsh@gmail.com>
|
2019-12-30 07:56:37 +00:00
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-yu-tomato
|
2019-12-30 07:56:37 +00:00
|
|
|
pkgver=3.10.108
|
2020-05-17 15:17:31 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="YU Yureka kernel fork"
|
2019-12-30 07:56:37 +00:00
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="yu-tomato"
|
|
|
|
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-12-30 07:56:37 +00:00
|
|
|
makedepends="gcc6 perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool"
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
HOSTCC="gcc6-gcc"
|
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_cyanogen_msm8916"
|
|
|
|
_commit="7ac9a15c55f441060e83a3b0b6a9b4573cefeea7"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-12-30 07:56:37 +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-12-30 07:56:37 +00:00
|
|
|
$_config
|
|
|
|
01_fix_gcc6_errors.patch
|
|
|
|
mdss_fb_refresh_rate.patch
|
|
|
|
rndis.patch
|
|
|
|
fix_dp3_ctrl_off.patch
|
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2019-12-30 07:56:37 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-12-30 07:56:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
|
|
|
|
# Generate master DTB
|
|
|
|
dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2019-12-30 07:56:37 +00:00
|
|
|
|
|
|
|
# Master DTB
|
|
|
|
install -Dm644 "$builddir/arch/arm/boot/dt.img" \
|
|
|
|
"$pkgdir/boot/dt.img"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sha512sums="7787047fc72da32e3dd5daa1d867be5e47035e76fe35ae681bc8456222bd891dd39915bcbd139a301a1e2ebb7d9acfae5f4130451c23d3654b18f3b707b2d51c linux-yu-tomato-7ac9a15c55f441060e83a3b0b6a9b4573cefeea7.tar.gz
|
|
|
|
15ff04594e5063057d3488fed6bfc9e2b31d9111013a6a10cdcd883b92cc60f793965debbae6b80eb2ce2e7d9e80785a4dbc6b8e62d781f7d4d561b64f0132b9 config-yu-tomato.aarch64
|
|
|
|
972e98523d6ef06342e69a09e979bdd86904cf7f9a843b519b37791e531b680182564a2ab537c94629c3589f4e775b2c39de04c64e210a0f8b6f10745c3596f1 01_fix_gcc6_errors.patch
|
|
|
|
a8c955bf718f155011e980f3d0948be98e1fee5649f418299a4851780543019daf7afa406aa7b0829375645107e4e6fbf241026b0cabe2b2ac895a47df83d2d8 mdss_fb_refresh_rate.patch
|
|
|
|
635196d271a710eaf9c80ec7f7e1ec88c6b6ef5ce11cfb512d56d760e30b4db1f6e962091951c35ddaa8464293e239765a0d9bebadf59dfd40802434ce8f698f rndis.patch
|
|
|
|
f7f4df56c66c018a3d674e197a4545bb0cb9b81df4252c01904a766808ed9e573ae831b4dd8117134d7d2a59a91d3acf6fe5e8e18907cda57abc8bf17fae87cd fix_dp3_ctrl_off.patch"
|