2017-07-20 17:52:09 +00:00
|
|
|
# Kernel config based on: arch/arm/configs/bravo_defconfig
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=linux-htc-bravo
|
2017-07-20 17:52:09 +00:00
|
|
|
pkgver=3.0.16
|
2021-08-25 19:35:59 +00:00
|
|
|
pkgrel=15
|
2017-07-20 17:52:09 +00:00
|
|
|
pkgdesc="HTC Desire kernel from spezi77"
|
2017-10-28 19:43:28 +00:00
|
|
|
arch="armhf"
|
|
|
|
_carch="arm"
|
|
|
|
_flavor="htc-bravo"
|
2017-07-20 17:52:09 +00:00
|
|
|
url="https://github.com/spezi77/android_kernel_htc_qsd8k_3.0"
|
2017-10-28 19:43:28 +00:00
|
|
|
license="GPL2"
|
2020-04-21 01:24:27 +00:00
|
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
2020-02-18 08:34:06 +00:00
|
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev xz 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
|
2017-10-28 19:43:28 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_repository="android_kernel_htc_qsd8k_3.0"
|
|
|
|
_commit="4bc19919f805777947c243e6c2ed41ece530488b"
|
2020-02-28 09:59:56 +00:00
|
|
|
_config="config-$_flavor.armhf"
|
2017-07-20 17:52:09 +00:00
|
|
|
source="
|
2020-02-28 09:59:56 +00:00
|
|
|
$pkgname-$_commit.tar.gz::https://github.com/spezi77/$_repository/archive/$_commit.tar.gz
|
2017-07-20 17:52:09 +00:00
|
|
|
$_config
|
2019-11-06 21:45:24 +00:00
|
|
|
0001-Makefile-fix-build-with-new-binutils.patch
|
2017-07-20 17:52:09 +00:00
|
|
|
"
|
2020-02-28 09:59:56 +00:00
|
|
|
builddir="$srcdir/$_repository-$_commit"
|
2017-07-20 17:52:09 +00:00
|
|
|
|
|
|
|
prepare() {
|
2017-10-28 19:43:28 +00:00
|
|
|
default_prepare
|
2020-04-01 07:09:30 +00:00
|
|
|
. downstreamkernel_prepare
|
2017-07-20 17:52:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2017-10-04 15:05:00 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine"
|
2017-07-20 17:52:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-10-28 19:43:28 +00:00
|
|
|
install -Dm644 "$builddir/arch/arm/boot/zImage" \
|
2021-08-25 19:35:59 +00:00
|
|
|
"$pkgdir/boot/vmlinuz"
|
2017-07-20 17:52:09 +00:00
|
|
|
|
2017-10-28 19:43:28 +00:00
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
2017-07-20 17:52:09 +00:00
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
}
|
|
|
|
|
2017-09-14 18:16:16 +00:00
|
|
|
sha512sums="94929945d6fcb4428f320325ced207a9888cd758357766ef914c4ca2d5cea4b9cced77275463dac316591ba942e6e1514fec8c1f8e11c8324155116785ffb277 linux-htc-bravo-4bc19919f805777947c243e6c2ed41ece530488b.tar.gz
|
2021-04-29 11:38:24 +00:00
|
|
|
2c797aa12254a4bddaed7b46b57b1875ffb73c2ac1307de187738cf779551bdb83271037599876fc7e1bc1ae3764323de92ee33b714de598196629fb5f75f3a0 config-htc-bravo.armhf
|
2019-11-06 21:45:24 +00:00
|
|
|
d287d21a02c8ec299619db7cd4e5f8669dc3107cd13c4d918a656a6d410d7cfa0d2fdfa3a4bd7b52982698e93ad63052cbc3be20c451ef224331bf325af9f813 0001-Makefile-fix-build-with-new-binutils.patch"
|