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
|
2022-12-10 23:20:43 +00:00
|
|
|
pkgrel=5
|
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
|
2022-12-10 23:20:43 +00:00
|
|
|
_repository="android_kernel_samsung_universal8890"
|
|
|
|
_commit="57884d864fb572642fcf84abf13b099db7efc5b8"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-04-12 16:35:50 +00:00
|
|
|
source="
|
2022-12-10 23:20:43 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/8890q/$_repository/archive/$_commit.tar.gz
|
2019-04-12 16:35:50 +00:00
|
|
|
$_config
|
2022-12-10 23:20:43 +00:00
|
|
|
01-kstrtobool_from_user.patch
|
2019-11-21 17:04:04 +00:00
|
|
|
02-fix-wifi-firmware-path.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 \
|
2022-12-10 23:20:43 +00:00
|
|
|
--subtype 0x217584da \
|
2019-11-21 17:04:04 +00:00
|
|
|
-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"
|
|
|
|
}
|
|
|
|
|
2022-12-10 23:20:43 +00:00
|
|
|
sha512sums="
|
|
|
|
e7337d87dbc067a0a9cfe8fab8aac41408e5d54b8b138ca01309f5b9a65477ff8faaa995ee1957b664c195a3b9020b33f525864b01b1516dab15f8e2157343d5 linux-samsung-herolte-57884d864fb572642fcf84abf13b099db7efc5b8.tar.gz
|
|
|
|
205a56597363c295e29db1a294caf1191329a192c1ef2a53478837bd2fc2d9d6aed489b5c724da70c320b6c3663f98334a791da1262022042a827c8b72a0e15e config-samsung-herolte.aarch64
|
|
|
|
7b0687165fa854c9c60944487cc7ea87758af8612f10125c22643743284d9abcc17c6a40853d05da2e27313a4e830c995a876b306f1488a2fcb72c3cbed3a8ae 01-kstrtobool_from_user.patch
|
2020-09-15 06:44:47 +00:00
|
|
|
ffef99094b44893d07aedf3bbf12b03f2c26fb93be4eb179ade9552ae82be6680daca06b6fc0f95064ef08fd94ef4a0b192a94f5065314a4608de8b8c413d86e 02-fix-wifi-firmware-path.patch
|
2022-12-10 23:20:43 +00:00
|
|
|
"
|