2019-12-14 01:20:47 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/cyanogen_expressatt_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-samsung-expressatt
|
2019-12-14 01:20:47 +00:00
|
|
|
pkgver=3.4.106
|
2022-05-30 06:20:04 +00:00
|
|
|
pkgrel=5
|
|
|
|
pkgdesc="Samsung Galaxy Express SGH-I437 kernel fork"
|
2019-12-14 01:20:47 +00:00
|
|
|
arch="armv7"
|
|
|
|
_carch="arm"
|
|
|
|
_flavor="samsung-expressatt"
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2019-12-14 01:20:47 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev gcc4 xz"
|
|
|
|
|
|
|
|
# Compiler: GCC 4 (doesn't boot when compiled with newer versions)
|
|
|
|
if [ "${CC:0:5}" != "gcc4-" ]; then
|
|
|
|
CC="gcc4-$CC"
|
|
|
|
HOSTCC="gcc4-gcc"
|
|
|
|
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_samsung_d2"
|
|
|
|
_commit="0dbe2b56847b304d30b809dfd08ba3b4a61d9af8"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-12-14 01:20:47 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/LineageOS/$_repository/archive/$_commit.tar.gz
|
2019-12-14 01:20:47 +00:00
|
|
|
$_config
|
|
|
|
kernel-use-the-gnu89-standard-explicitly.patch
|
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2019-12-14 01:20:47 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-12-14 01:20: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"
|
2019-12-14 01:20:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="b9ac45ce753c83d1875ef0f55cedf0c998a2ad58ac4e1a667869980b21e70dd0e7c0781e8108c454fe45ed5a4bf76a3f79d68b70f38467470899acf4dc7daa47 linux-samsung-expressatt-0dbe2b56847b304d30b809dfd08ba3b4a61d9af8.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
ba96d4e7a712f77442a2e99dd747cdb367a5f2994c18ff8be4eb256b16ca53216528b085886cd0f9df310fec394928c06b70e92bfde7be3a918cd77662bc98cc config-samsung-expressatt.armv7
|
2019-12-14 01:20:47 +00:00
|
|
|
ad0182a483791fc88e058838bc331b2f04a75ba291e763767babdb815efadfc3b4fda97e69e2e3f00a426cabea088e35297a92bd287592597d1e309be68ee92c kernel-use-the-gnu89-standard-explicitly.patch"
|