2020-11-16 11:50:28 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/titan_defconfig
|
2017-06-04 11:37:14 +00:00
|
|
|
|
2020-11-16 11:50:28 +00:00
|
|
|
pkgname=linux-motorola-titan
|
2017-06-04 22:18:48 +00:00
|
|
|
pkgver=3.4.113
|
2020-11-16 11:50:28 +00:00
|
|
|
pkgrel=14
|
|
|
|
pkgdesc="Motorola Moto G 2014 kernel fork"
|
2020-02-20 00:26:00 +00:00
|
|
|
arch="armv7"
|
2017-06-04 11:37:14 +00:00
|
|
|
_carch="arm"
|
2020-11-16 11:50:28 +00:00
|
|
|
_flavor="motorola-titan"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
|
|
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl dtbtool 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
|
2017-06-04 11:37:14 +00:00
|
|
|
|
2020-11-16 11:50:28 +00:00
|
|
|
# Source
|
|
|
|
_repository="android_kernel_motorola_msm8226"
|
|
|
|
_commit="22bc4ed7f4149f95c84634e6c1baccbbd16c5cc5"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
00_fix_return_address.patch
|
|
|
|
02_mdss_fb_refresh_rate.patch
|
|
|
|
06_fix_mdss_fb_rgba_mode.patch
|
|
|
|
multiple-fixes-gcc-5.patch
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
_outdir="out"
|
2017-06-04 11:37:14 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-11-16 11:50:28 +00:00
|
|
|
default_prepare
|
|
|
|
. downstreamkernel_prepare
|
2017-06-04 11:37:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2020-11-16 11:50:28 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
2019-05-30 14:59:02 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2017-06-04 11:37:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-11-16 11:50:28 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2019-05-30 14:59:02 +00:00
|
|
|
|
|
|
|
# Master DTB (deviceinfo_bootimg_qcdt)
|
2020-11-16 11:50:28 +00:00
|
|
|
dtbTool -p scripts/dtc/ -o "$_outdir/arch/$_carch/boot"/dt.img "$_outdir/arch/$_carch/boot/"
|
|
|
|
install -Dm644 "$_outdir/arch/$_carch/boot"/dt.img "$pkgdir"/boot/dt.img
|
2017-06-04 11:37:14 +00:00
|
|
|
}
|
|
|
|
|
2019-05-30 14:59:02 +00:00
|
|
|
sha512sums="5e55db19f198fadf0f914c2726c034eeaf9a1f4ad5823a7e8a4e9be2664eb0279c91fb2f1c6a9292be2ac523e367551475ff40569676775a03a709ae50a3d0ec linux-motorola-titan-22bc4ed7f4149f95c84634e6c1baccbbd16c5cc5.tar.gz
|
*/linux-*: enable CONFIG_CRYPTO_XTS (MR 1405)
Enable CONFIG_CRYPTO_XTS for each kernel, so we can switch to using
aes-xts-plain64 as default cipher for cryptsetup (override with
"pmbootstrap --cipher"), instead of aes-cbc-plain64 (pmbootstrap#1940).
I have executed "pmbootstrap kconfig edit" on each kernel, and manually
toggled the option. The diff is not always clean, because for some
kernels it is apparently the first time, that menuconfig was executed on
the configs like that. In a few instances, it turned out that
CONFIG_ANDROID_PARANOID_NETWORK needed to be disabled too (this is
already a requirement, but as the config was incomplete, it was not
visible that this option was enabled). Very few times, I had to enable
CONFIG_EXPERIMENTAL in order to see and enable CONFIG_CRYPTO_XTS.
It would be great if we could automate such mass kconfig edits in the
future, see pmbootstrap#1942.
[skip ci]: I have verified, that every single one of these kernels builds.
CI will likely run out of time while downloading source tarballs.
2020-07-11 13:24:19 +00:00
|
|
|
778403323f469e4653e9c7694a6acbec969ad1c736d15ffd1ec5ebda8f87655637a79d350c2e4b32883a5f6e9cb2a9f2cdc4490e0cf7ec534ebcbd8eea122763 config-motorola-titan.armv7
|
2020-11-16 11:50:28 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
2017-09-11 15:29:22 +00:00
|
|
|
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00_fix_return_address.patch
|
|
|
|
a8c955bf718f155011e980f3d0948be98e1fee5649f418299a4851780543019daf7afa406aa7b0829375645107e4e6fbf241026b0cabe2b2ac895a47df83d2d8 02_mdss_fb_refresh_rate.patch
|
2020-02-20 00:26:00 +00:00
|
|
|
5f0c30fc48fd0c8f9ca4e3d929dd15e982565e91b2e9e6b81df88c78c7fb646d3e99dfd6c9e02873caa1ca1e9cd6a7c03b97640fb80781cc78f5725122b65507 06_fix_mdss_fb_rgba_mode.patch
|
2020-11-16 11:50:28 +00:00
|
|
|
4c13711fdcdce3ac0c4d30b79da7a331a9f32d46ad0b9572419b82d58db6eed76f728a340848d66a6378702749c56247439abb26fc1df0d3f5cfd1ef5b53acf9 multiple-fixes-gcc-5.patch"
|