summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-global/base.bbclass5
-rw-r--r--meta/classes-global/insane.bbclass4
2 files changed, 4 insertions, 5 deletions
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index 4ac7bafefa..b6940bbb6f 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -428,11 +428,6 @@ python () {
428 oe.utils.features_backfill("DISTRO_FEATURES", d) 428 oe.utils.features_backfill("DISTRO_FEATURES", d)
429 oe.utils.features_backfill("MACHINE_FEATURES", d) 429 oe.utils.features_backfill("MACHINE_FEATURES", d)
430 430
431 if d.getVar("S")[-1] == '/':
432 bb.warn("Recipe %s sets S variable with trailing slash '%s', remove it" % (d.getVar("PN"), d.getVar("S")))
433 if d.getVar("B")[-1] == '/':
434 bb.warn("Recipe %s sets B variable with trailing slash '%s', remove it" % (d.getVar("PN"), d.getVar("B")))
435
436 # To add a recipe to the skip list , set: 431 # To add a recipe to the skip list , set:
437 # SKIP_RECIPE[pn] = "message" 432 # SKIP_RECIPE[pn] = "message"
438 pn = d.getVar('PN') 433 pn = d.getVar('PN')
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 42ed1a24a7..99736830b9 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1609,6 +1609,10 @@ python () {
1609 bb.fatal("Using S = ${WORKDIR} is no longer supported") 1609 bb.fatal("Using S = ${WORKDIR} is no longer supported")
1610 if builddir == workdir: 1610 if builddir == workdir:
1611 bb.fatal("Using B = ${WORKDIR} is no longer supported") 1611 bb.fatal("Using B = ${WORKDIR} is no longer supported")
1612 if sourcedir[-1] == '/':
1613 bb.warn("Recipe %s sets S variable with trailing slash '%s', remove it" % (d.getVar("PN"), d.getVar("S")))
1614 if builddir[-1] == '/':
1615 bb.warn("Recipe %s sets B variable with trailing slash '%s', remove it" % (d.getVar("PN"), d.getVar("B")))
1612 1616
1613 # Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder 1617 # Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder
1614 # why it doesn't work. 1618 # why it doesn't work.