From: Konrad Scherer Date: Thu, 7 Nov 2013 18:36:26 +0000 (-0500) Subject: perf: Disable warnings as errors for kernels 3.1+ X-Git-Tag: yocto-4.0~30732 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=963315939610a89b031346ebf93cd5bddc7773d2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Konrad Scherer Signed-off-by: Saul Wold --- diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 903ffa6eaff..6258cbbe096 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -41,6 +41,9 @@ export STAGING_LIBDIR export BUILD_SYS export HOST_SYS +#kernel 3.1+ supports WERROR to disable warnings as errors +export WERROR = "0" + do_populate_lic[depends] += "virtual/kernel:do_populate_sysroot" # needed for building the tools/perf Perl binding @@ -115,6 +118,7 @@ do_install() { } do_configure_prepend () { + #kernels before 3.1 do not support WERROR env variable sed -i 's,-Werror ,,' ${S}/tools/perf/Makefile }