]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/autotools: avoid error if recipe is first in task dependency tree
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 19 Aug 2014 16:37:41 +0000 (17:37 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 08:25:03 +0000 (09:25 +0100)
If the recipe being built is listed first in BB_TASKDEPDATA (i.e. item
0) this is still valid and should not trigger an error.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass

index c49f0631ab6ab1081d7d602919be0fbcf5c02299..6b99bddd5dd0fd9c33e79009ca1c1507e1bccfa1 100644 (file)
@@ -148,7 +148,7 @@ python autotools_copy_aclocals () {
         if data[1] == "do_configure" and data[0] == pn:
             start = dep
             break
-    if not start:
+    if start is None:
         bb.fatal("Couldn't find ourself in BB_TASKDEPDATA?")
 
     # We need to find configure tasks which are either from <target> -> <target>