Return-Path: Received: from tx2outboundpool.messaging.microsoft.com (tx2ehsobe002.messaging.microsoft.com [65.55.88.12]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3D3C9E00348 for ; Thu, 29 Nov 2012 11:15:59 -0800 (PST) Received: from mail126-tx2-R.bigfish.com (10.9.14.254) by TX2EHSOBE009.bigfish.com (10.9.40.29) with Microsoft SMTP Server id 14.1.225.23; Thu, 29 Nov 2012 19:15:58 +0000 Received: from mail126-tx2 (localhost [127.0.0.1]) by mail126-tx2-R.bigfish.com (Postfix) with ESMTP id C3BB53A020E for ; Thu, 29 Nov 2012 19:15:58 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 3 X-BigFish: VS3(zzzz1de0h1202h1d1ah1d2ah1082kzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1155h) X-FB-SS: 0, Received: from mail126-tx2 (localhost.localdomain [127.0.0.1]) by mail126-tx2 (MessageSwitch) id 1354216555790681_19758; Thu, 29 Nov 2012 19:15:55 +0000 (UTC) Received: from TX2EHSMHS043.bigfish.com (unknown [10.9.14.240]) by mail126-tx2.bigfish.com (Postfix) with ESMTP id B3B414800EB for ; Thu, 29 Nov 2012 19:15:55 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS043.bigfish.com (10.9.99.143) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 29 Nov 2012 19:15:55 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-005.039d.mgd.msft.net (10.84.1.17) with Microsoft SMTP Server (TLS) id 14.2.318.3; Thu, 29 Nov 2012 19:15:54 +0000 Received: from right.am.freescale.net (right.am.freescale.net [10.82.176.228]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qATJFpuT013610 for ; Thu, 29 Nov 2012 12:15:54 -0700 From: Matthew McClintock To: Date: Thu, 29 Nov 2012 13:15:51 -0600 Message-ID: <1354216551-13932-28-git-send-email-msm@freescale.com> X-Mailer: git-send-email 1.7.9.7 In-Reply-To: <1354216551-13932-1-git-send-email-msm@freescale.com> References: <1354216551-13932-1-git-send-email-msm@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Subject: [PATCH 27/27] linux-qoriq-sdk: move patches to default search path X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 19:15:59 -0000 Content-Type: text/plain Signed-off-by: Matthew McClintock --- ...Undef-before-redefining-__attribute_const.patch | 28 ------------- ...-build-dependencies-for-c-files-requiring.patch | 44 -------------------- ...Undef-before-redefining-__attribute_const.patch | 28 +++++++++++++ ...-build-dependencies-for-c-files-requiring.patch | 44 ++++++++++++++++++++ 4 files changed, 72 insertions(+), 72 deletions(-) delete mode 100644 recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch delete mode 100644 recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch create mode 100644 recipes-kernel/linux/files/0001-compiler.h-Undef-before-redefining-__attribute_const.patch create mode 100644 recipes-kernel/linux/files/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch diff --git a/recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch b/recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch deleted file mode 100644 index 597fd3b..0000000 --- a/recipes-kernel/linux/0001-compiler.h-Undef-before-redefining-__attribute_const.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 6f92ab6de9d8daeb575949bbbcbc7bcdcebc60af Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Thu, 5 Jan 2012 11:42:35 -0800 -Subject: [PATCH] compiler.h: Undef before redefining __attribute_const__ - -This is required to avoid warnings like -util/include/linux/compiler.h:8:0: error: "__attribute_const__" redefined [-Werror] - -Signed-off-by: Khem Raj ---- - tools/perf/util/include/linux/compiler.h | 4 +++- - 1 files changed, 3 insertions(+), 1 deletions(-) - ---- a/tools/perf/util/include/linux/compiler.h -+++ b/tools/perf/util/include/linux/compiler.h -@@ -4,9 +4,11 @@ - #ifndef __always_inline - #define __always_inline inline - #endif -+#undef __user - #define __user -+#undef __attribute_const__ - #define __attribute_const__ -- -+#undef __used - #define __used __attribute__((__unused__)) - - #endif diff --git a/recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch b/recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch deleted file mode 100644 index d3464fb..0000000 --- a/recipes-kernel/linux/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch +++ /dev/null @@ -1,44 +0,0 @@ -Upstream-Status: Pending - -From 2e7ffea0c0c09c6d9219d604e0351423f43844f4 Mon Sep 17 00:00:00 2001 -From: Matthew McClintock -Date: Thu, 6 Sep 2012 13:45:21 -0500 -Subject: powerpc: Fix build dependencies for c files requiring libfdt.h - -Several files in obj-plat depend on libfdt header file. Sometimes -when building one can see the following issue. This patch adds -libfdt as dependency to those object files - -| In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0: -| arch/powerpc/boot/libfdt.h:854:1: error: unterminated comment -| In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0: -| arch/powerpc/boot/libfdt.h:1:0: error: unterminated #ifndef -| BOOTCC arch/powerpc/boot/inffast.o -| make[1]: *** [arch/powerpc/boot/treeboot-iss4xx.o] Error 1 -| make[1]: *** Waiting for unfinished jobs.... -| BOOTCC arch/powerpc/boot/inflate.o -| make: *** [uImage] Error 2 -| ERROR: oe_runmake failed -| ERROR: Function failed: do_compile (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/p1022ds/build/build/tmp/work/p1022ds-poky-linux-gnuspe/linux-qoriq-sdk-3.0.34-r5/temp/log.do_compile.2167 for further information) -NOTE: recipe linux-qoriq-sdk-3.0.34-r5: task do_compile: Failed - -Signed-off-by: Matthew McClintock ---- - arch/powerpc/boot/Makefile | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile -index b7d8333..6a15c96 100644 ---- a/arch/powerpc/boot/Makefile -+++ b/arch/powerpc/boot/Makefile -@@ -107,6 +107,7 @@ src-boot := $(addprefix $(obj)/, $(src-boot)) - obj-boot := $(addsuffix .o, $(basename $(src-boot))) - obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) - obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) -+obj-plat: $(libfdt) - - quiet_cmd_copy_zlib = COPY $@ - cmd_copy_zlib = sed "s@__used@@;s@]*\).*@\"\1\"@" $< > $@ --- -1.7.9.7 - diff --git a/recipes-kernel/linux/files/0001-compiler.h-Undef-before-redefining-__attribute_const.patch b/recipes-kernel/linux/files/0001-compiler.h-Undef-before-redefining-__attribute_const.patch new file mode 100644 index 0000000..597fd3b --- /dev/null +++ b/recipes-kernel/linux/files/0001-compiler.h-Undef-before-redefining-__attribute_const.patch @@ -0,0 +1,28 @@ +From 6f92ab6de9d8daeb575949bbbcbc7bcdcebc60af Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 5 Jan 2012 11:42:35 -0800 +Subject: [PATCH] compiler.h: Undef before redefining __attribute_const__ + +This is required to avoid warnings like +util/include/linux/compiler.h:8:0: error: "__attribute_const__" redefined [-Werror] + +Signed-off-by: Khem Raj +--- + tools/perf/util/include/linux/compiler.h | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +--- a/tools/perf/util/include/linux/compiler.h ++++ b/tools/perf/util/include/linux/compiler.h +@@ -4,9 +4,11 @@ + #ifndef __always_inline + #define __always_inline inline + #endif ++#undef __user + #define __user ++#undef __attribute_const__ + #define __attribute_const__ +- ++#undef __used + #define __used __attribute__((__unused__)) + + #endif diff --git a/recipes-kernel/linux/files/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch b/recipes-kernel/linux/files/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch new file mode 100644 index 0000000..d3464fb --- /dev/null +++ b/recipes-kernel/linux/files/0001-powerpc-Fix-build-dependencies-for-c-files-requiring.patch @@ -0,0 +1,44 @@ +Upstream-Status: Pending + +From 2e7ffea0c0c09c6d9219d604e0351423f43844f4 Mon Sep 17 00:00:00 2001 +From: Matthew McClintock +Date: Thu, 6 Sep 2012 13:45:21 -0500 +Subject: powerpc: Fix build dependencies for c files requiring libfdt.h + +Several files in obj-plat depend on libfdt header file. Sometimes +when building one can see the following issue. This patch adds +libfdt as dependency to those object files + +| In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0: +| arch/powerpc/boot/libfdt.h:854:1: error: unterminated comment +| In file included from arch/powerpc/boot/treeboot-iss4xx.c:33:0: +| arch/powerpc/boot/libfdt.h:1:0: error: unterminated #ifndef +| BOOTCC arch/powerpc/boot/inffast.o +| make[1]: *** [arch/powerpc/boot/treeboot-iss4xx.o] Error 1 +| make[1]: *** Waiting for unfinished jobs.... +| BOOTCC arch/powerpc/boot/inflate.o +| make: *** [uImage] Error 2 +| ERROR: oe_runmake failed +| ERROR: Function failed: do_compile (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/p1022ds/build/build/tmp/work/p1022ds-poky-linux-gnuspe/linux-qoriq-sdk-3.0.34-r5/temp/log.do_compile.2167 for further information) +NOTE: recipe linux-qoriq-sdk-3.0.34-r5: task do_compile: Failed + +Signed-off-by: Matthew McClintock +--- + arch/powerpc/boot/Makefile | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile +index b7d8333..6a15c96 100644 +--- a/arch/powerpc/boot/Makefile ++++ b/arch/powerpc/boot/Makefile +@@ -107,6 +107,7 @@ src-boot := $(addprefix $(obj)/, $(src-boot)) + obj-boot := $(addsuffix .o, $(basename $(src-boot))) + obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) + obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) ++obj-plat: $(libfdt) + + quiet_cmd_copy_zlib = COPY $@ + cmd_copy_zlib = sed "s@__used@@;s@]*\).*@\"\1\"@" $< > $@ +-- +1.7.9.7 + -- 1.7.9.7