Signed-off-by: Richard Purdie <[email protected]>
---
meta/classes-global/base.bbclass | 5 -----
meta/classes-global/insane.bbclass | 4 ++++
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index 4ac7bafefab..b6940bbb6ff 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -428,11 +428,6 @@ python () {
oe.utils.features_backfill("DISTRO_FEATURES", d)
oe.utils.features_backfill("MACHINE_FEATURES", d)
- if d.getVar("S")[-1] == '/':
- bb.warn("Recipe %s sets S variable with trailing slash '%s', remove
it" % (d.getVar("PN"), d.getVar("S")))
- if d.getVar("B")[-1] == '/':
- bb.warn("Recipe %s sets B variable with trailing slash '%s', remove
it" % (d.getVar("PN"), d.getVar("B")))
-
# To add a recipe to the skip list , set:
# SKIP_RECIPE[pn] = "message"
pn = d.getVar('PN')
diff --git a/meta/classes-global/insane.bbclass
b/meta/classes-global/insane.bbclass
index 42ed1a24a74..99736830b9a 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1609,6 +1609,10 @@ python () {
bb.fatal("Using S = ${WORKDIR} is no longer supported")
if builddir == workdir:
bb.fatal("Using B = ${WORKDIR} is no longer supported")
+ if sourcedir[-1] == '/':
+ bb.warn("Recipe %s sets S variable with trailing slash '%s', remove
it" % (d.getVar("PN"), d.getVar("S")))
+ if builddir[-1] == '/':
+ bb.warn("Recipe %s sets B variable with trailing slash '%s', remove
it" % (d.getVar("PN"), d.getVar("B")))
# Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder
# why it doesn't work.
--
2.40.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#199782):
https://lists.openembedded.org/g/openembedded-core/message/199782
Mute This Topic: https://lists.openembedded.org/mt/106258799/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-