diff options
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 4 |
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 | |||
41 | export BUILD_SYS | 41 | export BUILD_SYS |
42 | export HOST_SYS | 42 | export HOST_SYS |
43 | 43 | ||
44 | #kernel 3.1+ supports WERROR to disable warnings as errors | ||
45 | export WERROR = "0" | ||
46 | |||
44 | do_populate_lic[depends] += "virtual/kernel:do_populate_sysroot" | 47 | do_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 | ||
117 | do_configure_prepend () { | 120 | do_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 | ||