mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
insane: Error for S == WORKDIR
Where a recipe uses WORKDIR as S, exit with a fatal error since the code is no longer safe for this layout. (From OE-Core rev: 32cba1cc916ad530c5e6630a927e74ca6f06289b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1602,6 +1602,11 @@ python () {
|
||||
if prog.search(pn):
|
||||
oe.qa.handle_error("uppercase-pn", 'PN: %s is upper case, this can result in unexpected behavior.' % pn, d)
|
||||
|
||||
sourcedir = d.getVar("S")
|
||||
workdir = d.getVar("WORKDIR")
|
||||
if sourcedir == workdir:
|
||||
bb.fatal("Using S = ${WORKDIR} is no longer supported")
|
||||
|
||||
# Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder
|
||||
# why it doesn't work.
|
||||
if (d.getVar(d.expand('DEPENDS:${PN}'))):
|
||||
|
||||
Reference in New Issue
Block a user