summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorKonrad Scherer <Konrad.Scherer@windriver.com>2013-11-07 13:36:26 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-09 18:01:44 +0000
commitfc0a1aac97bf96542d760cd01ae06351c11e280c (patch)
treeae7294b3df28a99d9b4d3ce47a9a97b962e22568 /meta/recipes-kernel
parent5debfa1afabbe308ad600568932096e6bd9376f9 (diff)
downloadpoky-fc0a1aac97bf96542d760cd01ae06351c11e280c.tar.gz
perf: Disable warnings as errors for kernels 3.1+
Turns out the sed command has not been working as intended since kernel 3.1 due to the trailing space. Adding the WERROR=0 environment variable is the correct way to disable warnings as errors. (From OE-Core rev: 963315939610a89b031346ebf93cd5bddc7773d2) Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/perf/perf.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 903ffa6eaf..6258cbbe09 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -41,6 +41,9 @@ export STAGING_LIBDIR
41export BUILD_SYS 41export BUILD_SYS
42export HOST_SYS 42export HOST_SYS
43 43
44#kernel 3.1+ supports WERROR to disable warnings as errors
45export WERROR = "0"
46
44do_populate_lic[depends] += "virtual/kernel:do_populate_sysroot" 47do_populate_lic[depends] += "virtual/kernel:do_populate_sysroot"
45 48
46# needed for building the tools/perf Perl binding 49# needed for building the tools/perf Perl binding
@@ -115,6 +118,7 @@ do_install() {
115} 118}
116 119
117do_configure_prepend () { 120do_configure_prepend () {
121 #kernels before 3.1 do not support WERROR env variable
118 sed -i 's,-Werror ,,' ${S}/tools/perf/Makefile 122 sed -i 's,-Werror ,,' ${S}/tools/perf/Makefile
119} 123}
120 124