aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-kernel
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-03-12 23:43:32 -0800
committerKhem Raj <raj.khem@gmail.com>2021-03-13 00:56:14 -0800
commit0587a7c65a6dd33eab6c9a21bf8be384d85d0b06 (patch)
tree51a60b22ed2df9ff5fa9428766b7f5fa0f6c5a7f /meta-oe/recipes-kernel
parentabbee9b35f42f490af7e63303c2240cf7b2a0cf8 (diff)
downloadmeta-openembedded-contrib-0587a7c65a6dd33eab6c9a21bf8be384d85d0b06.tar.gz
oprofile: Fix build on musl
MAX_INPUT is defined in linux/limits.h, therefore include it Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel')
-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 \
file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \
file://0001-replace-sym_iterator-0-with-sym_iterator.patch \
file://0001-Use-new-bfd-APIs-from-2.34.patch \
+ file://include_limits.patch \
"
UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/"
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 @@
+include linux/limits.h for MAX_INPUT
+
+Fixes
+op_pe_utils.cpp:533:19: error: 'MAX_INPUT' was not declared in this scope
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/libpe_utils/op_pe_utils.cpp
++++ b/libpe_utils/op_pe_utils.cpp
+@@ -11,6 +11,7 @@
+ *
+ */
+
++#include <linux/limits.h>
+ #include <linux/perf_event.h>
+ #include <dirent.h>
+ #include <stdio.h>