diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-22 16:11:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-23 11:26:39 +0100 |
commit | 5ef61d10d30deca3e0774554212c2d274306763e (patch) | |
tree | c03121c9dddfbb03c715232e0902072c6a633c8e /meta/classes-global | |
parent | 7033add16100d0cb3eb7b5cc17190150627d1937 (diff) | |
download | poky-5ef61d10d30deca3e0774554212c2d274306763e.tar.gz |
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>
Diffstat (limited to 'meta/classes-global')
-rw-r--r-- | meta/classes-global/insane.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index eeef43d00e..42ed1a24a7 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
@@ -1603,9 +1603,12 @@ python () { | |||
1603 | oe.qa.handle_error("uppercase-pn", 'PN: %s is upper case, this can result in unexpected behavior.' % pn, d) | 1603 | oe.qa.handle_error("uppercase-pn", 'PN: %s is upper case, this can result in unexpected behavior.' % pn, d) |
1604 | 1604 | ||
1605 | sourcedir = d.getVar("S") | 1605 | sourcedir = d.getVar("S") |
1606 | builddir = d.getVar("B") | ||
1606 | workdir = d.getVar("WORKDIR") | 1607 | workdir = d.getVar("WORKDIR") |
1607 | if sourcedir == workdir: | 1608 | if sourcedir == workdir: |
1608 | bb.fatal("Using S = ${WORKDIR} is no longer supported") | 1609 | bb.fatal("Using S = ${WORKDIR} is no longer supported") |
1610 | if builddir == workdir: | ||
1611 | bb.fatal("Using B = ${WORKDIR} is no longer supported") | ||
1609 | 1612 | ||
1610 | # Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder | 1613 | # Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder |
1611 | # why it doesn't work. | 1614 | # why it doesn't work. |