[11/12] linux-yocto: Fix mips64 build with gcc8

Message ID 8bd3847db5f79d7bcc2f43dd334165667f20c7fb.1528320772.git.raj.khem@gmail.com
State New
Headers show
Series
  • Add GCC 8 recipes
Related show

Commit Message

Khem Raj June 6, 2018, 9:37 p.m.
Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 ...ps64-Disable-attribute-alias-warning.patch | 26 +++++++++++++++++++
 meta/recipes-kernel/linux/linux-yocto_4.15.bb |  1 +
 2 files changed, 27 insertions(+)
 create mode 100644 meta/recipes-kernel/linux/files/0001-mips64-Disable-attribute-alias-warning.patch

-- 
2.17.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-kernel/linux/files/0001-mips64-Disable-attribute-alias-warning.patch b/meta/recipes-kernel/linux/files/0001-mips64-Disable-attribute-alias-warning.patch
new file mode 100644
index 0000000000..0d3882f985
--- /dev/null
+++ b/meta/recipes-kernel/linux/files/0001-mips64-Disable-attribute-alias-warning.patch
@@ -0,0 +1,26 @@ 
+From 65fa442fb787b03aa28920cf54a4d1e6da10bb35 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Fri, 4 May 2018 12:43:49 -0700
+Subject: [PATCH] mips64: Disable attribute-alias warning
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ arch/mips/kernel/Makefile | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile
+index eb92e52eb3db..795aa4c9ef7f 100644
+--- a/arch/mips/kernel/Makefile
++++ b/arch/mips/kernel/Makefile
+@@ -4,6 +4,8 @@
+ #
+ CFLAGS_signal.o		+= $(call cc-disable-warning, attribute-alias)
+ CFLAGS_syscall.o	+= $(call cc-disable-warning, attribute-alias)
++CFLAGS_linux32.o	+= $(call cc-disable-warning, attribute-alias)
++CFLAGS_signal32.o	+= $(call cc-disable-warning, attribute-alias)
+ 
+ extra-y		:= head.o vmlinux.lds
+ 
+-- 
+2.17.0
+
diff --git a/meta/recipes-kernel/linux/linux-yocto_4.15.bb b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
index d579ffd645..32e63a57d6 100644
--- a/meta/recipes-kernel/linux/linux-yocto_4.15.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_4.15.bb
@@ -27,6 +27,7 @@  SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRA
 SRC_URI += "file://0001-powerpc-Disable-attribute-alias-warnings-from-gcc8.patch \
             file://0002-powerpc-ptrace-Disable-array-bounds-warning-with-gcc.patch \
             file://0001-mips-Disable-attribute-alias-warnings.patch \
+            file://0001-mips64-Disable-attribute-alias-warning.patch \
 "
 
 LINUX_VERSION ?= "4.15.13"