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

gn_base.bbclass: Make build dir path checking more robust


Signed-off-by: default avatarRobert Drab <robert.drab@huawei.com>
parent c92f9fa8
No related branches found
No related tags found
No related merge requests found
......@@ -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.abspath(d.expand("${S}")) == os.path.abspath(d.expand("${B}")):
if os.path.samefile(bpath, spath):
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