2018-05-05 20:29:02 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/kminilte_00_defconfig
|
|
|
|
|
|
|
|
pkgname="linux-samsung-kminilte"
|
|
|
|
pkgver=3.4.113
|
2020-04-05 14:29:46 +00:00
|
|
|
pkgrel=4
|
2018-05-05 20:29:02 +00:00
|
|
|
pkgdesc="Samsung Galaxy S5 Mini kernel fork"
|
2020-04-06 14:23:55 +00:00
|
|
|
arch="armv7"
|
2018-05-05 20:29:02 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="samsung-kminilte"
|
|
|
|
url="https://github.com/cm-3470/android_kernel_samsung_kminilte"
|
|
|
|
license="GPL2"
|
|
|
|
options="!strip !check !tracedeps"
|
2020-02-18 08:34:06 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev 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
|
2018-05-05 20:29:02 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_kminilte"
|
|
|
|
_commit="7a8c010f226189116dcf2301d338555ae0d270c3"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2018-05-05 20:29:02 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/cm-3470/$_repository/archive/$_commit.tar.gz
|
2018-05-05 20:29:02 +00:00
|
|
|
$_config
|
|
|
|
compiler-gcc6.h
|
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2018-05-05 20:29:02 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2018-05-05 20:29:02 +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-05-05 20:29:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="351b043822d9fc25a002f07a490422341fd03671d661bb949085ef8d69042f1ae528f80ade7076aba3eaffec80f65c09fdbb600ffe04063c69d876c22a53709b linux-samsung-kminilte-7a8c010f226189116dcf2301d338555ae0d270c3.tar.gz
|
2020-04-05 14:29:46 +00:00
|
|
|
0279b76e569da5042178c78b1781ce85ef65f60ef402655953996ca737cbc2a2b2bea44ac290540ab7fcf70c11434bf375f18dec21d2d84a050d0c7d6373496f config-samsung-kminilte.armv7
|
2018-05-05 20:29:02 +00:00
|
|
|
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h"
|