c57aa7b299
This is required by some software, e.g. bluez/gnome to set some ACLs on /dev/rfkill (see #904). While probably nobody will notice on the downstream kernels (as we don't have any proper software there anyways) it's definitely needed on mainline-ish kernels. Surprisingly only one kernel has broken by enabling this option (linux-sony-tulip) which I've patched up. linux-postmarketos-qcom-sdm660 did not break by enabling this option, but required linux4.17-gcc10-extern_YYLOC_global_declaration.patch to build again, so this was fixed too. [ci:skip-build] [ci:ignore-count]
56 lines
2 KiB
Text
56 lines
2 KiB
Text
# Kernel config based on: arch/arm/configs/bravo_defconfig
|
|
|
|
pkgname=linux-htc-bravo
|
|
pkgver=3.0.16
|
|
pkgrel=13
|
|
pkgdesc="HTC Desire kernel from spezi77"
|
|
arch="armhf"
|
|
_carch="arm"
|
|
_flavor="htc-bravo"
|
|
url="https://github.com/spezi77/android_kernel_htc_qsd8k_3.0"
|
|
license="GPL2"
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev xz gcc6"
|
|
|
|
# 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"
|
|
HOSTCC="gcc6-gcc"
|
|
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
|
|
fi
|
|
|
|
# Source
|
|
_repository="android_kernel_htc_qsd8k_3.0"
|
|
_commit="4bc19919f805777947c243e6c2ed41ece530488b"
|
|
_config="config-$_flavor.armhf"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://github.com/spezi77/$_repository/archive/$_commit.tar.gz
|
|
$_config
|
|
0001-Makefile-fix-build-with-new-binutils.patch
|
|
"
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine"
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "$builddir/arch/arm/boot/zImage" \
|
|
"$pkgdir/boot/vmlinuz-$_flavor"
|
|
|
|
install -D "$builddir/include/config/kernel.release" \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
}
|
|
|
|
sha512sums="94929945d6fcb4428f320325ced207a9888cd758357766ef914c4ca2d5cea4b9cced77275463dac316591ba942e6e1514fec8c1f8e11c8324155116785ffb277 linux-htc-bravo-4bc19919f805777947c243e6c2ed41ece530488b.tar.gz
|
|
86f7f87e13496abaf16d61db43c7eea105a01939e6b1323103e5d311ea6f1072c62276e6fb89aa76702582898495ad26cf63edd1d236ec0b647c9f4a8b523ab5 config-htc-bravo.armhf
|
|
d287d21a02c8ec299619db7cd4e5f8669dc3107cd13c4d918a656a6d410d7cfa0d2fdfa3a4bd7b52982698e93ad63052cbc3be20c451ef224331bf325af9f813 0001-Makefile-fix-build-with-new-binutils.patch"
|