summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-kernel/oprofile/oprofile.inc1
-rw-r--r--meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch17
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile.inc b/meta-oe/recipes-kernel/oprofile/oprofile.inc
index 0e1e2ed8c9..0863a8fd36 100644
--- a/meta-oe/recipes-kernel/oprofile/oprofile.inc
+++ b/meta-oe/recipes-kernel/oprofile/oprofile.inc
@@ -26,6 +26,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
26 file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \ 26 file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \
27 file://0001-replace-sym_iterator-0-with-sym_iterator.patch \ 27 file://0001-replace-sym_iterator-0-with-sym_iterator.patch \
28 file://0001-Use-new-bfd-APIs-from-2.34.patch \ 28 file://0001-Use-new-bfd-APIs-from-2.34.patch \
29 file://include_limits.patch \
29" 30"
30UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/" 31UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/"
31UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" 32UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/"
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch b/meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch
new file mode 100644
index 0000000000..5aabfe78eb
--- /dev/null
+++ b/meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch
@@ -0,0 +1,17 @@
1include linux/limits.h for MAX_INPUT
2
3Fixes
4op_pe_utils.cpp:533:19: error: 'MAX_INPUT' was not declared in this scope
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8--- a/libpe_utils/op_pe_utils.cpp
9+++ b/libpe_utils/op_pe_utils.cpp
10@@ -11,6 +11,7 @@
11 *
12 */
13
14+#include <linux/limits.h>
15 #include <linux/perf_event.h>
16 #include <dirent.h>
17 #include <stdio.h>