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>
This commit is contained in:
Konrad Scherer 2013-11-07 13:36:26 -05:00 committed by Richard Purdie
parent 5debfa1afa
commit fc0a1aac97
1 changed files with 4 additions and 0 deletions

View File

@ -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
}