base.bbclass: Only run do_stage if its been overwritten as the default is empty and its pointless to run it

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2009-10-29 23:34:41 +00:00
parent 483f85802a
commit 764f73a033

View File

@@ -937,7 +937,12 @@ do_populate_staging[dirs] = "${STAGING_DIR_TARGET}/${bindir} ${STAGING_DIR_TARGE
addtask populate_staging after do_install
python do_populate_staging () {
bb.build.exec_func('do_stage', d)
#
# Only run do_stage if its not the empty default above
#
stagefunc = bb.data.getVar('do_stage', d, 1).strip()
if stagefunc != "base_do_stage":
bb.build.exec_func('do_stage', d)
}
addtask install after do_compile