summaryrefslogtreecommitdiffstats
path: root/package/kvm-unit-tests/0001-Makefile-remove-Werror-to-avoid-build-failures.patch
diff options
context:
space:
mode:
authorCyril Bur <cyrilbur@gmail.com>2017-11-20 16:48:40 +1100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-11-20 22:11:47 +0100
commit041715cc5337bbd7311da4f5b0fd97da1b902a38 (patch)
tree5696874ea8222ba8a3202133d3986bd4c0dabc30 /package/kvm-unit-tests/0001-Makefile-remove-Werror-to-avoid-build-failures.patch
parentb4245aef53020ae48c6b2bdeb239b144ce8316f2 (diff)
downloadbuildroot-041715cc5337bbd7311da4f5b0fd97da1b902a38.tar.gz
buildroot-041715cc5337bbd7311da4f5b0fd97da1b902a38.zip
kvm-unit-tests: bump version to fix build issue
Since binutils commit 1a9ccd70f9a7 ("Fix the linker so that it will not silently generate ELF binaries with invalid program headers. Fix readelf to report such invalid binaries.") the behaviour has changed and binutils tries to create a program header segment for which there is no space. Thanks to Nicholas Piggin and his patch to Linux: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=ff45000fcb56b5b0f Cedric fixed this in kvm-unit-tests commit 95062c20790d ("powerpc: add -n to LDFLAGS") so bump to that version. Since the patch 0001-remove-werror.patch needs to be adjusted, we take this opportunity to reformat is as a Git patch. Fixes: http://autobuild.buildroot.net/results/80825b492abf61313637b109d6a0944b38d5f739 Signed-off-by: Cyril Bur <cyrilbur@gmail.com> [Thomas: add necessary hash change, refresh patch that was not applying anymore.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/kvm-unit-tests/0001-Makefile-remove-Werror-to-avoid-build-failures.patch')
-rw-r--r--package/kvm-unit-tests/0001-Makefile-remove-Werror-to-avoid-build-failures.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/kvm-unit-tests/0001-Makefile-remove-Werror-to-avoid-build-failures.patch b/package/kvm-unit-tests/0001-Makefile-remove-Werror-to-avoid-build-failures.patch
new file mode 100644
index 0000000000..b1ea09272e
--- /dev/null
+++ b/package/kvm-unit-tests/0001-Makefile-remove-Werror-to-avoid-build-failures.patch
@@ -0,0 +1,26 @@
+From 08e14a662b9e75daec29722e49150869952ba1b6 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Mon, 20 Nov 2017 22:09:39 +0100
+Subject: [PATCH] Makefile: remove -Werror to avoid build failures
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 16ce297..909498e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -45,7 +45,7 @@ cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
+ > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
+
+ CFLAGS += -g
+-CFLAGS += $(autodepend-flags) -Wall -Werror
++CFLAGS += $(autodepend-flags) -Wall
+ frame-pointer-flag=-f$(if $(KEEP_FRAME_POINTER),no-,)omit-frame-pointer
+ fomit_frame_pointer := $(call cc-option, $(frame-pointer-flag), "")
+ fnostack_protector := $(call cc-option, -fno-stack-protector, "")
+--
+2.13.6
+
OpenPOWER on IntegriCloud