diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-09-24 10:00:57 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-09-25 08:31:55 -0300 |
commit | 2b79340a3229a898b23318ac84ffd1fe622fe7ac (patch) | |
tree | 4ae5686fc41b8d511f214424ec322b3430feba26 | |
parent | fe3764472f4f2f7cbc777c19b4ab9ebe6d74d7fe (diff) | |
download | meta-fsl-arm-2b79340a3229a898b23318ac84ffd1fe622fe7ac.tar.gz |
linux-imx (2.6.35.3): Fix perf tool building using gcc 4.6
The option -Wno-unused-but-set-variable has been add to EXTRA_WARNINGS
to allow building with newer gcc versions.
Change-Id: Ia3acfbad9f9d6ea1c52ef8c0588aa415daf0aabc
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | recipes-kernel/linux/linux-imx-2.6.35.3/perf-tools-Allow-building-with-gcc-4.6.patch | 28 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-imx_2.6.35.3.bb | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/perf-tools-Allow-building-with-gcc-4.6.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/perf-tools-Allow-building-with-gcc-4.6.patch new file mode 100644 index 0000000..ab14abf --- /dev/null +++ b/recipes-kernel/linux/linux-imx-2.6.35.3/perf-tools-Allow-building-with-gcc-4.6.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 45e0440a7bf7b1549de7af0e6ce62fc0c73b4b51 Mon Sep 17 00:00:00 2001 | ||
2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | Date: Mon, 24 Sep 2012 09:02:31 -0300 | ||
4 | Subject: [PATCH] perf tools: Allow building with gcc 4.6 | ||
5 | |||
6 | The option -Wno-unused-but-set-variable has been add to EXTRA_WARNINGS | ||
7 | to allow building with newer gcc versions. | ||
8 | |||
9 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
10 | --- | ||
11 | tools/perf/Makefile | 1 + | ||
12 | 1 file changed, 1 insertion(+) | ||
13 | |||
14 | diff --git a/tools/perf/Makefile b/tools/perf/Makefile | ||
15 | index d75c28a..817872e 100644 | ||
16 | --- a/tools/perf/Makefile | ||
17 | +++ b/tools/perf/Makefile | ||
18 | @@ -217,6 +217,7 @@ EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wnested-externs | ||
19 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wold-style-definition | ||
20 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-prototypes | ||
21 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wdeclaration-after-statement | ||
22 | +EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wno-unused-but-set-variable | ||
23 | |||
24 | ifeq ("$(origin DEBUG)", "command line") | ||
25 | PERF_DEBUG = $(DEBUG) | ||
26 | -- | ||
27 | 1.7.10.4 | ||
28 | |||
diff --git a/recipes-kernel/linux/linux-imx_2.6.35.3.bb b/recipes-kernel/linux/linux-imx_2.6.35.3.bb index 68cc49f..739a632 100644 --- a/recipes-kernel/linux/linux-imx_2.6.35.3.bb +++ b/recipes-kernel/linux/linux-imx_2.6.35.3.bb | |||
@@ -1,7 +1,7 @@ | |||
1 | # Copyright (C) 2011-2012 Freescale Semiconductor | 1 | # Copyright (C) 2011-2012 Freescale Semiconductor |
2 | # Released under the MIT license (see COPYING.MIT for the terms) | 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
3 | 3 | ||
4 | PR = "${INC_PR}.10" | 4 | PR = "${INC_PR}.11" |
5 | 5 | ||
6 | include linux-imx.inc | 6 | include linux-imx.inc |
7 | 7 | ||
@@ -17,6 +17,7 @@ LOCALVERSION = "-11.09.01+yocto-${DATE}" | |||
17 | 17 | ||
18 | SRC_URI += "file://NFS-Fix-nfsroot-support.patch \ | 18 | SRC_URI += "file://NFS-Fix-nfsroot-support.patch \ |
19 | file://NFS-allow-nfs-root-mount-to-use-alternate-rpc-ports.patch \ | 19 | file://NFS-allow-nfs-root-mount-to-use-alternate-rpc-ports.patch \ |
20 | file://perf-tools-Allow-building-with-gcc-4.6.patch \ | ||
20 | " | 21 | " |
21 | 22 | ||
22 | SRC_URI_append_mxs = " \ | 23 | SRC_URI_append_mxs = " \ |