diff --git a/meta-oniro-staging/classes/gn_base.bbclass b/meta-oniro-staging/classes/gn_base.bbclass index 066632070538de78eb5678f1c8af3efdd11b7712..6f0c945a73bd6bbb53c5a0a3b749030d24570342 100644 --- a/meta-oniro-staging/classes/gn_base.bbclass +++ b/meta-oniro-staging/classes/gn_base.bbclass @@ -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