From: Ronan <ronan.lemartret@iot.bzh>
Date: Mon, 9 Jan 2017 07:34:23 +0000 (+0100)
Subject: fix build with gcc6
X-Git-Tag: 3.99.1~218
X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=4a421d9443723ca6835568750a80ffba4b117a16;p=AGL%2Fmeta-agl.git

fix build with gcc6

Change-Id: I1ce6a5f4fb2d04962234d4b2f9bcfe92140cccc9
Signed-off-by: Ronan <ronan.lemartret@iot.bzh>
---

diff --git a/meta-agl-bsp/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bbappend b/meta-agl-bsp/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bbappend
index e38c90406..4845dda22 100644
--- a/meta-agl-bsp/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bbappend
+++ b/meta-agl-bsp/meta-rcar-gen3/recipes-bsp/optee/optee-os_git.bbappend
@@ -2,6 +2,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 inherit pythonnative
 DEPENDS += " python-pycrypto-native"
 
+#Need for gcc 6.2
+CFLAGS += " -fno-strict-aliasing -Wno-unused-variable -Wno-shift-negative-value"
+
 SRC_URI += " \
         file://0001-disable-libgcc-detection.patch \
 "