From: Chunrong Guo Date: Thu, 13 Jul 2017 07:07:56 +0000 (+0800) Subject: hypervisor:fix build error with gcc7 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4d1b16be20bc4054d8da6d32fe813d4048c5a04f;p=meta-freescale.git hypervisor:fix build error with gcc7 Signed-off-by: Chunrong Guo Signed-off-by: Otavio Salvador --- 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 index 00000000..1100ab6e --- /dev/null +++ b/recipes-virtualization/hypervisor/files/0001-fix-build-error-gcc7.patch @@ -0,0 +1,40 @@ +From 51f545b9c16f6a371c129bd0fbb9c7f7ae339df3 Mon Sep 17 00:00:00 2001 +From: Chunrong Guo +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 + diff --git a/recipes-virtualization/hypervisor/hypervisor_git.bb b/recipes-virtualization/hypervisor/hypervisor_git.bb index 90cdf2bc..bf904e0a 100644 --- a/recipes-virtualization/hypervisor/hypervisor_git.bb +++ b/recipes-virtualization/hypervisor/hypervisor_git.bb @@ -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"