oe-buildenv-internal: Fix BITBAKEDIR changes to work with existing autobuilder scritpts
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 May 2012 07:41:44 +0000 (08:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 May 2012 07:43:15 +0000 (08:43 +0100)
commit381fa07ffbc0b5ec2354e9f1f3f381f6580f6ab2
tree0938f4940f99620b579f7f3c747fcbdabacfdaf4
parente72c15be096d0a161c2d617dc208515b353bec83
oe-buildenv-internal: Fix BITBAKEDIR changes to work with existing autobuilder scritpts

The BITBAKEDIR change does not work well when the script is sourced from another script
since $2 may be unrelated. This change adds the logic onto the BDIR conditional and
which more external scripts would set, hence avoiding the problem.

(From OE-Core rev: ec8fbe0d1870285a4a972ddcfe83aa63d720cb80)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-buildenv-internal