linux-postmarketos-qcom-msm8974: enable hid_apple module and fix GCC10 (MR 1536)
Fixes #741
This commit is contained in:
parent
e40ecc2fc2
commit
408aa2a0ee
3 changed files with 53 additions and 9 deletions
|
@ -4,7 +4,7 @@ _config="config-$_flavor.$CARCH"
|
|||
pkgname=linux-$_flavor
|
||||
|
||||
pkgver=5.6.0_rc6
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
|
||||
arch="armv7"
|
||||
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
|
||||
|
@ -12,14 +12,14 @@ url="https://kernel.org/"
|
|||
makedepends="dtbtool perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev openssl-dev file bison flex findutils"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
_commit="b9f39bdf61e5c8f5db63afe7ab1c9ff77aa6b4bc"
|
||||
source="
|
||||
https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/$_commit/linux-postmarketos-$_commit.tar.gz
|
||||
source="https://gitlab.com/postmarketOS/linux-postmarketos/-/archive/$_commit/linux-postmarketos-$_commit.tar.gz
|
||||
config-$_flavor.armv7
|
||||
"
|
||||
fix-gcc10-build.patch
|
||||
"
|
||||
|
||||
subpackages="$pkgname-dev"
|
||||
|
||||
license="GPL2"
|
||||
license="GPL-2.0-only"
|
||||
_abi_release=$_pkgver
|
||||
_carch=$CARCH
|
||||
case "$_carch" in
|
||||
|
@ -158,4 +158,5 @@ dev() {
|
|||
}
|
||||
|
||||
sha512sums="92866a037fd1bd3b17572754548c19423f6e762d90fb1ebca52c252ace85c87b6f747515f8606fe627d34c59828cbebf83054b9d6e5dd977e0398d9c46fcc176 linux-postmarketos-b9f39bdf61e5c8f5db63afe7ab1c9ff77aa6b4bc.tar.gz
|
||||
b32f04de0e5b0b3bb09fe9efda05f82320633b13e5bd159b89ac01881a40add78275d7e4951ce850adb508050aaefdab60d009856d14720150ecf2a415c17f96 config-postmarketos-qcom-msm8974.armv7"
|
||||
0d387d375d542bfaba0080be2952a6c2aa1bb20318ccf1352240c69e47309d13d74a633768adbc2cd9b213bd89aaf7b7d8a924059c9a14539c9330de20150d9f config-postmarketos-qcom-msm8974.armv7
|
||||
fcb8c823e9943f409876bbec88e78ee2bbac3a30888ed3b10eb790157f568167e29d37763af4ebbf3ae9ce7fc0ed7f39710f58487069579a5eafa7e540e1e7e1 fix-gcc10-build.patch"
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
#
|
||||
|
||||
#
|
||||
# Compiler: gcc (Alpine 9.3.0) 9.3.0
|
||||
# Compiler: gcc (Alpine 10.2.0) 10.2.0
|
||||
#
|
||||
CONFIG_CC_IS_GCC=y
|
||||
CONFIG_GCC_VERSION=90300
|
||||
CONFIG_GCC_VERSION=100200
|
||||
CONFIG_CLANG_VERSION=0
|
||||
CONFIG_CC_CAN_LINK=y
|
||||
CONFIG_CC_HAS_ASM_GOTO=y
|
||||
|
@ -3831,7 +3831,7 @@ CONFIG_HID_GENERIC=y
|
|||
# CONFIG_HID_A4TECH is not set
|
||||
# CONFIG_HID_ACCUTOUCH is not set
|
||||
# CONFIG_HID_ACRUX is not set
|
||||
# CONFIG_HID_APPLE is not set
|
||||
CONFIG_HID_APPLE=m
|
||||
# CONFIG_HID_APPLEIR is not set
|
||||
# CONFIG_HID_ASUS is not set
|
||||
# CONFIG_HID_AUREAL is not set
|
||||
|
|
43
main/linux-postmarketos-qcom-msm8974/fix-gcc10-build.patch
Normal file
43
main/linux-postmarketos-qcom-msm8974/fix-gcc10-build.patch
Normal file
|
@ -0,0 +1,43 @@
|
|||
gcc 10 will default to -fno-common, which causes this error at link
|
||||
time:
|
||||
|
||||
(.text+0x0): multiple definition of `yylloc'; dtc-lexer.lex.o (symbol from plugin):(.text+0x0): first defined here
|
||||
|
||||
This is because both dtc-lexer as well as dtc-parser define the same
|
||||
global symbol yyloc. Before with -fcommon those were merged into one
|
||||
defintion. The proper solution would be to to mark this as "extern",
|
||||
however that leads to:
|
||||
|
||||
dtc-lexer.l:26:16: error: redundant redeclaration of 'yylloc' [-Werror=redundant-decls]
|
||||
26 | extern YYLTYPE yylloc;
|
||||
| ^~~~~~
|
||||
In file included from dtc-lexer.l:24:
|
||||
dtc-parser.tab.h:127:16: note: previous declaration of 'yylloc' was here
|
||||
127 | extern YYLTYPE yylloc;
|
||||
| ^~~~~~
|
||||
cc1: all warnings being treated as errors
|
||||
|
||||
which means the declaration is completely redundant and can just be
|
||||
dropped.
|
||||
|
||||
Signed-off-by: Dirk Mueller <dmueller@suse.com>
|
||||
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|
||||
[robh: cherry-pick from upstream]
|
||||
Cc: stable@vger.kernel.org
|
||||
Signed-off-by: Rob Herring <robh@kernel.org>
|
||||
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||||
|
||||
---
|
||||
scripts/dtc/dtc-lexer.l | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
--- a/scripts/dtc/dtc-lexer.l
|
||||
+++ b/scripts/dtc/dtc-lexer.l
|
||||
@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n
|
||||
#include "srcpos.h"
|
||||
#include "dtc-parser.tab.h"
|
||||
|
||||
-YYLTYPE yylloc;
|
||||
extern bool treesource_error;
|
||||
|
||||
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
|
Loading…
Reference in a new issue