diff options
author | Dexuan Cui <dexuan.cui@intel.com> | 2011-08-02 14:08:32 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-02 12:43:37 +0100 |
commit | 651ccb3b031d9ccb8331505a51171372002230d9 (patch) | |
tree | 32f85ece4db820d640b33253a3b716e8c1588c1b /meta/recipes-bsp | |
parent | 12ddf6c6a7559d97d9b8f84fcc89ed02e30df85d (diff) | |
download | openembedded-core-651ccb3b031d9ccb8331505a51171372002230d9.tar.gz openembedded-core-651ccb3b031d9ccb8331505a51171372002230d9.tar.bz2 openembedded-core-651ccb3b031d9ccb8331505a51171372002230d9.tar.xz openembedded-core-651ccb3b031d9ccb8331505a51171372002230d9.zip |
oe-init-build-env, scripts/oe-buildenv-internal: add error detecting for $BDIR
[YOCTO #671]
"readlink -f" in Ubuntu 10.04 is buggy: it doesn't ignore a trailing / (e.g.,
"readlink -f /tmp/non-existent-dir/" returns nothing, but according to
http://www.gnu.org/s/coreutils/manual/coreutils.pdf it should do that --
hence we get bug 671. It seems Ubuntu 10.10 or even later Ubuntu 11.04,
and other Linux distributions(e.g., Open Suse 11.4) haven't such an issue.
So I think we should detect this and ask Ubuntu 10.04 users to avoid supply
a path with trailing slash here.
Moreever, I also add the detection of non-existent path, e.g.,
source oe-init-build-env /non-existent-dir/build
can be detected and we'll print an error msg.
And, if we get errors in oe-buildenv-internal, we should stop the script
and shouldn't further run.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
0 files changed, 0 insertions, 0 deletions