2018-12-23 10:52:24 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2018-07-03 09:25:33 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/bcm21664_hawaii_ss_kylepro_rev00_lineage_defconfig
|
2018-06-30 14:16:47 +00:00
|
|
|
|
2021-07-20 21:11:26 +00:00
|
|
|
pkgname=linux-samsung-kyleproxx
|
2018-07-03 09:25:33 +00:00
|
|
|
pkgver=3.4.113
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=1
|
2021-07-20 21:11:26 +00:00
|
|
|
pkgdesc="Kernel fork for Samsung Galaxy Trend & Samsung Galaxy S Duos 2"
|
2020-05-15 07:18:05 +00:00
|
|
|
arch="armv7"
|
2018-06-30 14:16:47 +00:00
|
|
|
_carch="arm"
|
2021-07-20 21:11:26 +00:00
|
|
|
_flavor="samsung-kyleproxx"
|
2018-06-30 14:16:47 +00:00
|
|
|
url="https://kernel.org"
|
2018-12-23 10:52:24 +00:00
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-09-13 11:28:44 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc6"
|
|
|
|
|
|
|
|
# Compiler: GCC 6 (doesn't boot when compiled with newer versions than GCC 9)
|
|
|
|
if [ "${CC:0:5}" != "gcc6-" ]; then
|
|
|
|
CC="gcc6-$CC"
|
|
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
|
|
fi
|
2018-10-01 06:44:18 +00:00
|
|
|
|
2018-06-30 14:16:47 +00:00
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_kyleproxx"
|
2018-07-03 09:25:33 +00:00
|
|
|
_commit="026cf3b3e97ec40aa1c0c52837a318725786f05a"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-06-30 14:16:47 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/Samsung-KYLEPROXX/$_repository/archive/$_commit.tar.gz
|
2018-06-30 14:16:47 +00:00
|
|
|
$_config
|
|
|
|
00_return_address.patch
|
2018-07-03 09:25:33 +00:00
|
|
|
02_screen_reset.patch
|
2020-09-13 11:28:44 +00:00
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
2018-06-30 14:16:47 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2018-06-30 14:16:47 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2018-06-30 14:16:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2018-06-30 14:16:47 +00:00
|
|
|
}
|
|
|
|
|
2021-07-19 18:43:46 +00:00
|
|
|
sha512sums="
|
2021-07-20 21:11:26 +00:00
|
|
|
b66ab7d8ed557ed095b059beb7b37d196a7290e6c8364560126a94f696718c4a61f99b1e21700d9a4b50c569243e4e2cbfc9fbd9d9517ca49cfa32f31525c27f linux-samsung-kyleproxx-026cf3b3e97ec40aa1c0c52837a318725786f05a.tar.gz
|
|
|
|
04b89ddacf9ad82ef18520a548727044ea8a5bc19ebd84db5ed1ed421825c10438ff6adeaa4d40a87a3b0f5e7834cc9f0e251fe9429cbc1b6bd57db256769da8 config-samsung-kyleproxx.armv7
|
2018-06-30 14:16:47 +00:00
|
|
|
c40eaa11547f5bc2b1ff965506bdfe3015ff16e4b5ad9ccb3b8134ceafd1d32407c4ef2b213e02e036ce1e9bdcbfe768dff7d4b054bec77705a176c1f783b6f5 00_return_address.patch
|
2020-09-13 11:28:44 +00:00
|
|
|
c0a59be648ef646650c83b5d135daa05aae300c7ad5056d49f1b3f9967c4d7f337b0ddb8ae319b11e43c17aaf5fc9dcc9724463d265c1d765dc85c86f612f4ea 02_screen_reset.patch
|
2021-07-19 18:43:46 +00:00
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
|
|
|
"
|