Autoconf problems in OE build of LTP realtime tests

Message ID
State New
Headers show

Commit Message Sept. 29, 2014, 6:52 p.m.
Thanks to Randy Witt for a patch which resolves this issue.  Randy wrote:
"I looked at the configure logs on an x86 build and saw the same problem.
By default the autotools.bbclass searches for m4 macros in the source tree.
But it searches a depth that is lower than the directory depth of the
location of testcases/realtime/m4. That seems to be causing some of the
macros to be missing and falsely causing features to be missing."

I beiieve Randy will be submitting this patch soon, and included a link in
my previous response - but evidently that link worked for nobody but myself
- so with apologies I am re-transmitting the response with the patch text
included inline below for reference:

From bce5869545cacd4923b1efcf6e1218f65ad46af7 Mon Sep 17 00:00:00 2001
From: Randy Witt <>
Date: Fri, 5 Sep 2014 15:00:59 -0700
Subject: [PATCH] ltp: Add additional m4 path to autoconf.

The ltp code has some m4 macros that are deeper than the default depth
that the directory depth the autotools.bbclass checks. This causes some
macros to not be found and for supported features to not be enabled.

This patch adds the extra m4 path to the autoconf arguments.
 meta/recipes-extended/ltp/ | 1 +
 1 file changed, 1 insertion(+)



diff --git a/meta/recipes-extended/ltp/
index c658bc0..0b29ea4 100644
--- a/meta/recipes-extended/ltp/
+++ b/meta/recipes-extended/ltp/
@@ -37,6 +37,7 @@  TARGET_CC_ARCH += "${LDFLAGS}"
 export prefix = "/opt/ltp"
 export exec_prefix = "/opt/ltp"

+EXTRA_AUTORECONF += "-I ${S}/testcases/realtime/m4"
 EXTRA_OECONF = " --with-power-management-testsuite
--with-realtime-testsuite "

 # ltp doesn't regenerate ffsb-6.0-rc2 configure and hardcode configure