From 2a7348129a42f21095fcd62e47a035f78d254130 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 12 Dec 2013 17:36:38 +0100 Subject: initial commit of Enea Linux 3.1 Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau --- .../linux/files/add-no-error-uninitialized.patch | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 recipes-kernel/linux/files/add-no-error-uninitialized.patch (limited to 'recipes-kernel/linux/files/add-no-error-uninitialized.patch') diff --git a/recipes-kernel/linux/files/add-no-error-uninitialized.patch b/recipes-kernel/linux/files/add-no-error-uninitialized.patch new file mode 100644 index 0000000..a70b089 --- /dev/null +++ b/recipes-kernel/linux/files/add-no-error-uninitialized.patch @@ -0,0 +1,69 @@ +diff --git a/Makefile b/Makefile +index 183eff3..88fd9c1 100644 +--- a/Makefile ++++ b/Makefile +@@ -370,6 +370,7 @@ LINUXINCLUDE := \ + KBUILD_CPPFLAGS := -D__KERNEL__ + + KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ ++ -Wno-error=uninitialized \ + -fno-strict-aliasing -fno-common \ + -Werror-implicit-function-declaration \ + -Wno-format-security \ +diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile +index 0624909..5d13d66 100644 +--- a/arch/powerpc/Makefile ++++ b/arch/powerpc/Makefile +@@ -17,6 +17,7 @@ HAS_BIARCH := $(call cc-option-yn, -m32) + # Set default 32 bits cross compilers for vdso and boot wrapper + CROSS32_COMPILE ?= + ++KBUILD_CFLAGS += -Wno-error=uninitialized + CROSS32CC := $(CROSS32_COMPILE)gcc + CROSS32AR := $(CROSS32_COMPILE)ar + +@@ -67,7 +68,6 @@ LDFLAGS_vmlinux-y := -Bstatic + LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie + LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y) + +-LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) + + ifeq ($(CONFIG_PPC64),y) + ifeq ($(call cc-option-yn,-mcmodel=medium),y) +@@ -176,7 +176,6 @@ core-$(CONFIG_PERF_EVENTS) += arch/powerpc/perf/ + + drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ + +-libs-y += $(LIBGCC) + + # Default to zImage, override when needed + all: zImage +diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile +index 06dd8d5..8bf06fd 100644 +--- a/arch/powerpc/perf/Makefile ++++ b/arch/powerpc/perf/Makefile +@@ -1,4 +1,4 @@ +-subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror ++subdir-ccflags-$(CONFIG_PPC_WERROR) := -Wno-error=uninitialized + + obj-$(CONFIG_PERF_EVENTS) += callchain.o + +diff --git a/arch/powerpc/sysdev/Makefile b/arch/powerpc/sysdev/Makefile +index fa63186..d592e84 100644 +--- a/arch/powerpc/sysdev/Makefile ++++ b/arch/powerpc/sysdev/Makefile +@@ -1,4 +1,4 @@ +-subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror ++subdir-ccflags-$(CONFIG_PPC_WERROR) := -Wno-error=uninitialized + + ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) + +@@ -67,8 +67,6 @@ endif + + obj-$(CONFIG_PPC_SCOM) += scom.o + +-subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror +- + obj-$(CONFIG_PPC_XICS) += xics/ + + obj-$(CONFIG_GE_FPGA) += ge/ -- cgit v1.2.3-54-g00ecf