mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
kernel: fix amba modules build with gcc6
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -241,6 +241,8 @@ ifeq "$(KCFG)" "-rpi"
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux/linux-3.14.79-rpi-suspend-not-inline.patch
|
||||
endif
|
||||
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux/linux-3.14.79-amba-fix.patch
|
||||
|
||||
ifeq "$(KCFG)" "-headers"
|
||||
# Install the header files
|
||||
cd $(DIR_APP) && make ARCH=$(HEADERS_ARCH) INSTALL_HDR_PATH=dest headers_install
|
||||
|
||||
11
src/patches/linux/linux-3.14.79-amba-fix.patch
Normal file
11
src/patches/linux/linux-3.14.79-amba-fix.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff -Naur linux-3.14.79.ORG/include/linux/mod_devicetable.h linux-3.14.79/include/linux/mod_devicetable.h
|
||||
--- linux-3.14.79.ORG/include/linux/mod_devicetable.h 2017-06-16 19:58:41.000000000 +0200
|
||||
+++ linux-3.14.79/include/linux/mod_devicetable.h 2017-06-19 19:40:59.374205140 +0200
|
||||
@@ -538,6 +538,7 @@
|
||||
* == id.
|
||||
* @data: Private data used by the driver.
|
||||
*/
|
||||
+#define amba_device_id amba_id
|
||||
struct amba_id {
|
||||
unsigned int id;
|
||||
unsigned int mask;
|
||||
Reference in New Issue
Block a user