qmake_base.bbclass patch to lookup for *.pro within ${S} instead of ${B}
authorDenis Dydychkin <nyrl@mail.ru>
Mon, 27 Dec 2010 19:59:21 +0000 (19:59 +0000)
committerKhem Raj <raj.khem@gmail.com>
Fri, 7 Jan 2011 22:42:33 +0000 (14:42 -0800)
qmake_base.bbclass from release-2010.12 has ability to lookup for QMAKE_PROFILES if none specified by recipe. Unfortunately it does that in ${B} directory instead of ${S}, thus it does not work if they differ.

Here is suggested patch:

Signed-off-by: Khem Raj <raj.khem@gmail.com>
classes/qmake_base.bbclass

index 577c0fa..3715cec 100644 (file)
@@ -61,7 +61,7 @@ qmake_base_do_configure() {
        oenote "using qmake spec in ${QMAKESPEC}, using profiles '${QMAKE_PROFILES}'"
 
        if [ -z "${QMAKE_PROFILES}" ]; then 
-               PROFILES="`ls *.pro`"
+               PROFILES="`ls ${S}/*.pro`"
        else
                PROFILES="${QMAKE_PROFILES}"
        fi