diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-10-10 14:25:37 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-10-10 14:25:39 +0200 |
commit | e18c5b6443ef11f3c87ad607af05cdea94d39941 (patch) | |
tree | bbc0eda4f870d87e926d194c1b3dd3bd47a3a061 | |
parent | 1485632de32af9ef6835b2f011ab2a0bc6805a06 (diff) | |
download | ptxdist-e18c5b6443ef11f3c87ad607af05cdea94d39941.tar.gz ptxdist-e18c5b6443ef11f3c87ad607af05cdea94d39941.tar.xz |
kernel: build perf without -Werror
"-C" breaks building with some toolchains. Building can fail with:
[...]/usr/include/bits/mathinline.h: In function 'floor':
[...]/usr/include/bits/mathinline.h:746:380: error: expected ':' or ')' before string constant
[...]
Instead disable -Werror to avoid build errors caused by icecc and
-Wimplicit-fallthrough.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/kernel.make | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rules/kernel.make b/rules/kernel.make index a577d5390..2fc28d0b4 100644 --- a/rules/kernel.make +++ b/rules/kernel.make @@ -160,6 +160,7 @@ $(STATEDIR)/kernel.tags: # ---------------------------------------------------------------------------- KERNEL_TOOL_PERF_OPTS := \ + WERROR=0 \ NO_LIBPERL=1 \ NO_LIBPYTHON=1 \ NO_DWARF= \ @@ -183,10 +184,6 @@ KERNEL_TOOL_PERF_OPTS := \ NO_LIBBPF=1 \ NO_SDT=1 -KERNEL_PERF_ENV := \ - $(KERNEL_ENV) \ - pkg_cflags="-C" - $(STATEDIR)/kernel.compile: @$(call targetinfo) @rm -f \ @@ -195,7 +192,7 @@ $(STATEDIR)/kernel.compile: @+cd $(KERNEL_DIR) && $(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) \ $(KERNEL_MAKEVARS) $(KERNEL_IMAGE) $(PTXCONF_KERNEL_MODULES_BUILD) ifdef PTXCONF_KERNEL_TOOL_PERF - @+cd $(KERNEL_DIR) && $(KERNEL_PATH) $(KERNEL_PERF_ENV) $(MAKE) \ + @+cd $(KERNEL_DIR) && $(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) \ $(KERNEL_MAKEVARS) $(KERNEL_TOOL_PERF_OPTS) -C tools/perf endif ifdef PTXCONF_KERNEL_TOOL_IIO |