]> code.ossystems Code Review - meta-freescale.git/commitdiff
hypervisor:fix build error with gcc7
authorChunrong Guo <chunrong.guo@nxp.com>
Thu, 13 Jul 2017 07:07:56 +0000 (15:07 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 14 Jul 2017 20:14:52 +0000 (17:14 -0300)
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-virtualization/hypervisor/files/0001-fix-build-error-gcc7.patch [new file with mode: 0644]
recipes-virtualization/hypervisor/hypervisor_git.bb

diff --git a/recipes-virtualization/hypervisor/files/0001-fix-build-error-gcc7.patch b/recipes-virtualization/hypervisor/files/0001-fix-build-error-gcc7.patch
new file mode 100644 (file)
index 0000000..1100ab6
--- /dev/null
@@ -0,0 +1,40 @@
+From 51f545b9c16f6a371c129bd0fbb9c7f7ae339df3 Mon Sep 17 00:00:00 2001
+From: Chunrong Guo <chunrong.guo@nxp.com>
+Date: Thu, 13 Jul 2017 13:59:28 +0800
+Subject: [PATCH] fix build  error gcc7
+
+
+Upstream-Status: Pending
+
+---
+ Makefile.build | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.build b/Makefile.build
+index e93cc9a..f6028fe 100644
+--- a/Makefile.build
++++ b/Makefile.build
+@@ -35,7 +35,8 @@ GENASSYM=$(libos)lib/genassym.sh
+ export libos := $(src)libos/
+-export CC=$(CROSS_COMPILE)gcc
++
++
+ export GCCINCDIR := $(shell $(CC) -print-file-name=include)
+ CC_OPTS=-Wa,-m$(CONFIG_GCC_CPU_FLAG) -nostdinc -I $(GCCINCDIR) -I $(GCCINCDIR)-fixed \
+@@ -46,8 +47,8 @@ CC_OPTS=-Wa,-m$(CONFIG_GCC_CPU_FLAG) -nostdinc -I $(GCCINCDIR) -I $(GCCINCDIR)-f
+ export CC_OPTS_NODEP := -include include/config/autoconf.h
+ export WARNINGS := -Wwrite-strings -Wmissing-prototypes \
+-                   -Wstrict-prototypes -Wold-style-definition \
+-                   -Wmissing-declarations
++                   -Wstrict-prototypes -Wold-style-definition -Wno-format-truncation \
++                   -Wmissing-declarations 
+ # Our code should build without any of these warnings, but some
+ # external code may be excluded.
+-- 
+2.7.4
+
index 90cdf2bc8e0b0eb73e25aa1307b4526960153ae3..bf904e0a94f207b88ddec5542d2fd37c7d93653d 100644 (file)
@@ -17,6 +17,7 @@ SRC_URI = " \
        git://git.kernel.org/pub/scm/utils/dtc/dtc.git;name=dtc;destsuffix=dtc \
        git://git.freescale.com/ppc/sdk/hypertrk.git;name=hypertrk;destsuffix=git/hypertrk;branch=sdk-v2.0.x \
        file://81-fsl-embedded-hv.rules \
+        file://0001-fix-build-error-gcc7.patch \
          "
 
 SRCREV_FORMAT="hypervisor"