diff options
| -rw-r--r-- | meta-oe/recipes-kernel/oprofile/oprofile.inc | 1 | ||||
| -rw-r--r-- | meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch | 17 |
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 | " |
| 30 | UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/" | 31 | UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/" |
| 31 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" | 32 | UPSTREAM_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 @@ | |||
| 1 | include linux/limits.h for MAX_INPUT | ||
| 2 | |||
| 3 | Fixes | ||
| 4 | op_pe_utils.cpp:533:19: error: 'MAX_INPUT' was not declared in this scope | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | Signed-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> | ||
