oe-setup-builddir: substitute ##OEROOT## when using templates
authorRoss Burton <ross.burton@intel.com>
Mon, 12 Aug 2013 10:41:49 +0000 (11:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Aug 2013 22:06:03 +0000 (23:06 +0100)
commit62355479afe7ba23674fe213cb2ca72985f42912
tree9040f744fad5231d3282fea09358afb7ded8e85f
parentda70271cebc5a2c92c0e89417282a4136ed02305
oe-setup-builddir: substitute ##OEROOT## when using templates

oe-setup-builddir substitutes ##COREBASE## which seems like it should have the
same value as the variable ${COREBASE}.  In reality it doesn't as ##COREBASE##
is substituted with the value of $OEROOT (the location of the oe-init-build-env
script), whereas ${COREBASE} is set by oe-core to the parent directory of meta/.
If oe-core's meta/ isn't a top-level directory then ##COREBASE## and ${COREBASE}
have different values, which can lead to confusion.

To resolve this, deprecate (but still substitute) ##COREBASE## and substitute
 ##OEROOT# for $OEROOT.

(From OE-Core rev: 1890783928dd1c73105fae32fb6c588afc287ff6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-setup-builddir