mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 21:49:33 +02:00
insane: Add error for B = WORKDIR
This was never a good idea and would have mostly happened from S = WORKDIR however explictly disallow it and error if anyone tries. (From OE-Core rev: e3c2c1fac904bb518d85e10a2ac0177c81cbf7e8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1603,9 +1603,12 @@ python () {
|
|||||||
oe.qa.handle_error("uppercase-pn", 'PN: %s is upper case, this can result in unexpected behavior.' % pn, d)
|
oe.qa.handle_error("uppercase-pn", 'PN: %s is upper case, this can result in unexpected behavior.' % pn, d)
|
||||||
|
|
||||||
sourcedir = d.getVar("S")
|
sourcedir = d.getVar("S")
|
||||||
|
builddir = d.getVar("B")
|
||||||
workdir = d.getVar("WORKDIR")
|
workdir = d.getVar("WORKDIR")
|
||||||
if sourcedir == workdir:
|
if sourcedir == workdir:
|
||||||
bb.fatal("Using S = ${WORKDIR} is no longer supported")
|
bb.fatal("Using S = ${WORKDIR} is no longer supported")
|
||||||
|
if builddir == workdir:
|
||||||
|
bb.fatal("Using B = ${WORKDIR} is no longer supported")
|
||||||
|
|
||||||
# Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder
|
# Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder
|
||||||
# why it doesn't work.
|
# why it doesn't work.
|
||||||
|
|||||||
Reference in New Issue
Block a user