summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-11 13:52:02 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-11 13:52:02 +0000
commit24f65d8096e185714b50b1e0bef084ea8cc8392d (patch)
treec8986590915c22175803652db248b19549218e6a /classes
parentd4e6786d4c4e4cc1ee2b92caf3d67b399d4294f4 (diff)
base.bbclass: Detect recipes where there are problems with staging functions after staging upgrades
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/base.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index aa1037e472..e4fc2ac34f 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -1085,6 +1085,8 @@ python do_populate_staging () {
if legacy:
bb.data.setVar("SYSROOT_DESTDIR", "", d)
bb.note("Legacy staging mode for %s" % bb.data.getVar("FILE", d, True))
+ if bb.data.getVarFlags('do_stage', d) is None:
+ bb.fatal("This recipe (%s) has a do_stage_prepend or do_stage_append and do_stage now doesn't exist. Please rename this to do_stage()" % bb.data.getVar("FILE", d, True))
lock = bb.utils.lockfile(lockfile)
bb.build.exec_func('do_stage', d)
bb.build.exec_func('populate_staging_prehook', d)
@@ -1248,6 +1250,9 @@ python () {
base_after_parse(d)
if is_legacy_staging(d):
bb.debug(1, "Legacy staging mode for %s" % bb.data.getVar("FILE", d, True))
+ if bb.data.getVarFlags('do_stage', d) is None:
+ bb.error("This recipe (%s) has a do_stage_prepend or do_stage_append and do_stage now doesn't exist. Please rename this to do_stage()" % bb.data.getVar("FILE", d, True))
+
}
def check_app_exists(app, d):