2019-04-12 16:35:50 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/exynos8890-hero2lte_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-samsung-herolte
|
2019-11-21 17:04:04 +00:00
|
|
|
pkgver=3.18.140
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=4
|
2019-04-12 16:35:50 +00:00
|
|
|
pkgdesc="Samsung Galaxy S7 kernel fork"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor="samsung-herolte"
|
|
|
|
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-11-21 17:04:04 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool-exynos"
|
2019-04-12 16:35:50 +00:00
|
|
|
|
|
|
|
# Source - use Ivan Meler's 3.18 upstream kernel
|
|
|
|
_repository="android_kernel_samsung_herolte"
|
2019-11-21 17:04:04 +00:00
|
|
|
_commit="4f50ed696fc6ec36d277ba1af73e98d34e7bc0d6"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-04-12 16:35:50 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/ivanmeler/$_repository/archive/$_commit.tar.gz
|
2019-04-12 16:35:50 +00:00
|
|
|
$_config
|
|
|
|
01-remove-android-defines.patch
|
2019-11-21 17:04:04 +00:00
|
|
|
02-fix-wifi-firmware-path.patch
|
2020-09-15 06:44:47 +00:00
|
|
|
gcc10-extern_YYLOC_global_declaration.patch
|
2019-04-12 16:35:50 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2019-04-12 16:35:50 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-04-12 16:35:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2019-11-21 17:04:04 +00:00
|
|
|
|
|
|
|
# Build dt image with exynos dtbtool
|
|
|
|
dtbTool-exynos --pagesize 2048 \
|
|
|
|
--platform 0x50a6 \
|
|
|
|
--subtype 0x217584da \
|
|
|
|
-o "arch/arm64/boot/dt.img" \
|
|
|
|
"arch/arm64/boot/dts/exynos8890-herolte_eur_open_04.dtb" \
|
|
|
|
"arch/arm64/boot/dts/exynos8890-herolte_eur_open_08.dtb" \
|
|
|
|
"arch/arm64/boot/dts/exynos8890-herolte_eur_open_09.dtb"
|
2019-04-12 16:35:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-02-18 08:34:06 +00:00
|
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
2019-04-12 16:35:50 +00:00
|
|
|
|
|
|
|
# Copy the in-tree DTBH block image
|
2019-11-21 17:04:04 +00:00
|
|
|
install -Dm644 "$builddir/arch/arm64/boot/dt.img" \
|
2019-04-12 16:35:50 +00:00
|
|
|
"$pkgdir/boot/dt.img"
|
|
|
|
}
|
|
|
|
|
2019-11-21 17:04:04 +00:00
|
|
|
sha512sums="28a447fca84c3c1bc95b505362a989964e652ff0c11a8f99e151225c4a29971c7698c846c7826552fcdc4acff799b3150e577892df88697776ce13cd0e76ac5f linux-samsung-herolte-4f50ed696fc6ec36d277ba1af73e98d34e7bc0d6.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
5639cd42eded6315c0166250f1980110dd1c14bd9030ed8ce35308eba1f0e65567e96c77c8c88bc881b09d9e9beec29aaaf357985f43ac4979f668eb1f1e7efb config-samsung-herolte.aarch64
|
2019-04-12 16:35:50 +00:00
|
|
|
66e27a174e12d56f5b77932985f0001b551c834d68b2a1bcc1d0b7d04e555757fc9137c182bd4cf5ffd57bf2cb0918d758dfe153a6140b77f02e7b9f33ecfb2c 01-remove-android-defines.patch
|
2020-09-15 06:44:47 +00:00
|
|
|
ffef99094b44893d07aedf3bbf12b03f2c26fb93be4eb179ade9552ae82be6680daca06b6fc0f95064ef08fd94ef4a0b192a94f5065314a4608de8b8c413d86e 02-fix-wifi-firmware-path.patch
|
|
|
|
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch"
|