Skip to content
Snippets Groups Projects
Commit 2cba67e7 authored by Robert Drab's avatar Robert Drab
Browse files

Revert "gn_base.bbclass: Make build dir path checking more robust"


This reverts commit 82e0bd85.

The build directory is created in the do_configure task that is executing GN
which relies on the build directory check. The os.path.samefile() raises an
exception when os.stat() fails and therefore cannot be used to compare paths
of non-existing directories.

Signed-off-by: default avatarRobert Drab <robert.drab@huawei.com>
parent 82e0bd85
No related branches found
No related tags found
1 merge request!64Revert "gn_base.bbclass: Make build dir path checking more robust"
......@@ -52,7 +52,7 @@ EXPORT_FUNCTIONS do_configure do_compile do_install
python do_check_B_is_not_S() {
bpath = os.path.abspath(d.expand("${B}"))
spath = os.path.abspath(d.expand("${S}"))
if os.path.samefile(bpath, spath):
if os.path.abspath(d.expand("${S}")) == os.path.abspath(d.expand("${B}")):
bb.fatal('''
GN requires build and sources directories to be different. By default build
directory is set to ${WORKDIR}/out. If you're using devtool remember to use
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment