2020-11-16 09:46:22 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2017-09-01 22:20:09 +00:00
|
|
|
|
2020-11-16 09:46:22 +00:00
|
|
|
pkgname=linux-lg-lenok
|
2017-09-01 22:20:09 +00:00
|
|
|
pkgver=3.10.105
|
2020-11-16 09:46:22 +00:00
|
|
|
pkgrel=14
|
|
|
|
pkgdesc="LG G Watch R kernel fork"
|
2017-09-01 22:20:09 +00:00
|
|
|
arch="armhf"
|
|
|
|
_carch="arm"
|
2020-11-16 09:46:22 +00:00
|
|
|
_flavor="lg-lenok"
|
|
|
|
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 gcc6 linux-headers"
|
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-09-01 22:20:09 +00:00
|
|
|
|
2020-11-16 09:46:22 +00:00
|
|
|
# Source
|
|
|
|
_repository="kernel_lge_bass-lenok"
|
|
|
|
_commit="7044f08636f6b8407bb00404a2e27ae0ce859f1e"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/pmsourcedump/$_repository/archive/$_commit.tar.gz
|
|
|
|
$_config
|
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
02_mdss_fb_refresh_rate.patch
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
_outdir="out"
|
2017-09-01 22:20:09 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-11-16 09:46:22 +00:00
|
|
|
default_prepare
|
|
|
|
. downstreamkernel_prepare
|
2017-09-01 22:20:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
2020-11-16 09:46:22 +00:00
|
|
|
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2017-09-01 22:20:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-11-16 09:46:22 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
2017-09-01 22:20:09 +00:00
|
|
|
}
|
|
|
|
|
2019-11-06 21:27:35 +00:00
|
|
|
sha512sums="ae4dbdf716cf446e9788c5e1d847ff45cca60831b6199568c9a46d6319824e57515f63eabf5250ceffee5f543c1de0813a1fb48e559c2f7d51cfc73a809ee934 linux-lg-lenok-7044f08636f6b8407bb00404a2e27ae0ce859f1e.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
|
|
|
9958b0e58a8ace822277330f861dc12f131118c802bc2fb91018a7070d2dfb667cbe0662376bf4df3827dfddc3d5443f210ba4e207cdda071e70233fd17ab2f2 config-lg-lenok.armhf
|
2020-11-16 09:46:22 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
a8c955bf718f155011e980f3d0948be98e1fee5649f418299a4851780543019daf7afa406aa7b0829375645107e4e6fbf241026b0cabe2b2ac895a47df83d2d8 02_mdss_fb_refresh_rate.patch"
|