2019-02-12 21:45:39 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm/configs/ville_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-htc-ville
|
2021-08-13 01:09:41 +00:00
|
|
|
pkgver=3.4.114
|
2021-09-03 16:55:26 +00:00
|
|
|
pkgrel=1
|
2019-02-12 21:45:39 +00:00
|
|
|
pkgdesc="HTC One S kernel fork"
|
2021-08-13 01:09:41 +00:00
|
|
|
arch="armv7"
|
2019-02-12 21:45:39 +00:00
|
|
|
_carch="arm"
|
|
|
|
_flavor="htc-ville"
|
|
|
|
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-02-12 21:45:39 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_htc_msm8960"
|
2021-08-13 01:09:41 +00:00
|
|
|
_commit="cb121ea9e86cd51e814cb50048fd64544e672bcc"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
2019-02-12 21:45:39 +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-02-12 21:45:39 +00:00
|
|
|
$_config
|
|
|
|
gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
gcc8-fix-put-user.patch
|
|
|
|
static-inline-in-ftrace.h.patch
|
|
|
|
psmouse_base.patch
|
|
|
|
kgsl_iommu_sync_lock.patch
|
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2019-02-12 21:45:39 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2019-02-12 21:45:39 +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-02-12 21:45:39 +00:00
|
|
|
}
|
|
|
|
|
2021-08-13 01:09:41 +00:00
|
|
|
sha512sums="
|
|
|
|
66658db2533659c233d469f2d4040b520f4e9f156dfc1ceb637b1689ad5d63a6513f584d07668eed56ff089749da802492f6945066a8e7ba3bba71ce7783fb24 linux-htc-ville-cb121ea9e86cd51e814cb50048fd64544e672bcc.tar.gz
|
|
|
|
b6cead79f20d59b4d14440c7bb611081ee0b3526836c1143e978c9e4af13f0ef019df35a246b92fe56ad4121f895f1043a444bb224238a2f37c59c3f30b7e635 config-htc-ville.armv7
|
2019-02-12 21:45:39 +00:00
|
|
|
77eba606a71eafb36c32e9c5fe5e77f5e4746caac292440d9fb720763d766074a964db1c12bc76fe583c5d1a5c864219c59941f5e53adad182dbc70bf2bc14a7 gcc7-give-up-on-ilog2-const-optimizations.patch
|
|
|
|
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
|
|
|
|
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 static-inline-in-ftrace.h.patch
|
|
|
|
f7e31cfe422696922aec52002e56c58103183966edee3bb8e1995d33f8d37b07c32280a8ecc213874e358a6ff367418556a4542fba7e3c17e4b8e82e05c3a543 psmouse_base.patch
|
2021-08-13 01:09:41 +00:00
|
|
|
448bad436377a22c93ac401b9aecb504fe8e84b9511a3dd28f3cc125f3725cc1168ef03dee9f8f1085a9fbb7910b9e75cd25a382ccce626b427c8e27f7c17ffc kgsl_iommu_sync_lock.patch
|
|
|
|
"
|