autotools: Correct dependency search logic error

We go to the effort of finding the value of start, we should then use it
rather than relying on the value of dep being preserved from the previous
loop. Took me far too long to notice this issue when changing the code.

Also drop an unused variable.

(From OE-Core rev: c546cced50ce8b72fe55f9a7cfe7fdb23c51d1ad)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2016-02-12 11:34:07 +00:00
parent 971fafba6a
commit 9c8fee9c62
1 changed files with 2 additions and 3 deletions

View File

@ -160,8 +160,8 @@ python autotools_copy_aclocals () {
# We need to find configure tasks which are either from <target> -> <target>
# or <native> -> <native> but not <target> -> <native> unless they're direct
# dependencies. This mirrors what would get restored from sstate.
done = [dep]
next = [dep]
done = [start]
next = [start]
while next:
new = []
for dep in next:
@ -188,7 +188,6 @@ python autotools_copy_aclocals () {
#bb.warn(str(configuredeps2))
cp = []
siteconf = []
for c in configuredeps:
if c.endswith("-native"):
manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${BUILD_ARCH}-%s.populate_sysroot" % c)