]> code.ossystems Code Review - openembedded-core.git/commitdiff
alsa-tools: fix the AUTOMAKE_DIR
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 14 Jan 2014 02:42:13 +0000 (10:42 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jan 2014 11:52:40 +0000 (11:52 +0000)
There should be only one automake under the STAGING_DATADIR_NATIVE in
theory, but der_steffi@gmx.de has reported an odd problem which seemed
like that there are more than one. However, the "automake
--print-libdir" is the regular way to locate automake libdir.

[YOCTO #5706]

Reported-by: der_steffi@gmx.de
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/alsa/alsa-tools_1.0.26.1.bb

index c3b97a31bc6d0025505a28714bc0acfe27a0f8e9..5b0f6ae809270735ebbb080a00271bdd3e137773 100644 (file)
@@ -32,7 +32,7 @@ do_configure () {
 
 do_compile_prepend () {
     #Automake dir is not correctly detected in cross compilation case
-    export AUTOMAKE_DIR=${STAGING_DATADIR_NATIVE}/$(ls ${STAGING_DATADIR_NATIVE} | grep automake)
+    export AUTOMAKE_DIR="$(automake --print-libdir)"
     export ACLOCAL_FLAGS="--system-acdir=${ACLOCALDIR}/"
 }