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
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=18
|
2020-11-16 09:46:22 +00:00
|
|
|
pkgdesc="LG G Watch R kernel fork"
|
2021-05-12 22:30:19 +00:00
|
|
|
arch="armv7"
|
2017-09-01 22:20:09 +00:00
|
|
|
_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
|
2021-05-12 22:30:19 +00:00
|
|
|
fix_slow_boot_emmc_timeout.patch
|
2020-11-16 09:46:22 +00:00
|
|
|
"
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-05-12 22:30:19 +00:00
|
|
|
sha512sums="
|
|
|
|
ae4dbdf716cf446e9788c5e1d847ff45cca60831b6199568c9a46d6319824e57515f63eabf5250ceffee5f543c1de0813a1fb48e559c2f7d51cfc73a809ee934 linux-lg-lenok-7044f08636f6b8407bb00404a2e27ae0ce859f1e.tar.gz
|
|
|
|
69d66b11cb1e1fed50ecd7ebb618a487d14727d1a13702c12b73febb03d2f73207a8a0881b44c2917d749d6a817b7742e9783de98024e194af8a45d4d5c91866 config-lg-lenok.armv7
|
2020-11-16 09:46:22 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
2021-05-12 22:30:19 +00:00
|
|
|
a8c955bf718f155011e980f3d0948be98e1fee5649f418299a4851780543019daf7afa406aa7b0829375645107e4e6fbf241026b0cabe2b2ac895a47df83d2d8 02_mdss_fb_refresh_rate.patch
|
|
|
|
e4d2a3ee6807659fe2bbbbdea4f9b4934b04ed1714ccdfea14dead5c8bc46cd9ebb93a98e2ff350382b0aa09bc4a6a00884f2b920082fdd6ab3a758a20b8e224 fix_slow_boot_emmc_timeout.patch
|
|
|
|
"
|