]> code.ossystems Code Review - openembedded-core.git/commit
toolchain-scripts/meta-ide-support: Handle dash shells correctly
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 May 2018 17:54:46 +0000 (18:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 May 2018 08:54:48 +0000 (09:54 +0100)
commitdceca6d34071b4cbef9e28bbf19dc12f5d925525
tree0b58ce13262e129a6f3c176c2e14a7e8ab0b5dd3
parenta64a144096c0637387244b89ed22f4b5352b2522
toolchain-scripts/meta-ide-support: Handle dash shells correctly

Where /bin/sh is dash, the recent toolchain scripts change fails as the $(pwd)
usage in oe-init-build-env doesn't function correctly. Fix this by saving
and restoring the cwd and calling the script within its own directory.

This fixes meta-ide-support on dash based systems.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toolchain-scripts.bbclass