diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2013-01-27 08:45:14 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-01 15:54:29 +0000 |
commit | 8b8caef6295e657f3ddf4dd27cc307bee92444ea (patch) | |
tree | 598dbe57ec91774188b8a4b887d1ab2066a74758 /meta | |
parent | e771031453bf9bf897e1f1144f6b94ef95c03094 (diff) | |
download | poky-8b8caef6295e657f3ddf4dd27cc307bee92444ea.tar.gz |
oprofile: remove AX_KERNEL_VERSION from acinclude.m4
The version of this macro in acinclude.m4 is preventing the correct
version in the package's kernelversion.m4 from being used.
Since the version in acinclude.m4 includes the obsolete config.h, any
test that uses it with newer (> 2.6.19) kernels fails. In the case of
oprofile it means that perf_events support is never detected and thus
'legacy oprofile' is always built.
Fixing this allows the new perf_events 'operf' support to be built.
Fixes [YOCTO #3447]
(From OE-Core rev: 3f7f17894c097ebaa81055c8449c543b734df541)
(From OE-Core rev: 6fac31c7930e228efe5fed978964885e37a4da80)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/oprofile/oprofile/acinclude.m4 | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile/acinclude.m4 b/meta/recipes-kernel/oprofile/oprofile/acinclude.m4 index ffaa8288df..95ecd91b5e 100644 --- a/meta/recipes-kernel/oprofile/oprofile/acinclude.m4 +++ b/meta/recipes-kernel/oprofile/oprofile/acinclude.m4 | |||
@@ -104,25 +104,6 @@ AC_SUBST(OPROFILE_MODULE_ARCH) | |||
104 | ] | 104 | ] |
105 | ) | 105 | ) |
106 | 106 | ||
107 | dnl AX_KERNEL_VERSION(major, minor, level, comparison, action-if-true, action-if-false) | ||
108 | AC_DEFUN([AX_KERNEL_VERSION], [ | ||
109 | SAVE_CFLAGS=$CFLAGS | ||
110 | CFLAGS="-I$KINC -D__KERNEL__ -Werror" | ||
111 | AC_TRY_COMPILE( | ||
112 | [ | ||
113 | #include <linux/version.h> | ||
114 | #include <linux/config.h> | ||
115 | ], | ||
116 | [ | ||
117 | #if LINUX_VERSION_CODE $4 KERNEL_VERSION($1, $2, $3) | ||
118 | break_me_hard(\\\); | ||
119 | #endif | ||
120 | ], | ||
121 | [$5],[$6],) | ||
122 | CFLAGS=$SAVE_CFLAGS | ||
123 | ]) | ||
124 | |||
125 | |||
126 | dnl AX_MSG_RESULT_YN(a) | 107 | dnl AX_MSG_RESULT_YN(a) |
127 | dnl results "yes" iff a==1, "no" else | 108 | dnl results "yes" iff a==1, "no" else |
128 | AC_DEFUN([AX_MSG_RESULT_YN], [x=no | 109 | AC_DEFUN([AX_MSG_RESULT_YN], [x=no |