diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-29 23:34:41 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 12:15:21 +0000 |
commit | 764f73a033b6686a50dff71881e2491f9e990c87 (patch) | |
tree | 7a01cbe7cb18628829f1aebe506e80b723210597 /meta/classes/base.bbclass | |
parent | 483f85802a97cb9ad4d958c29458db91acc7809f (diff) | |
download | openembedded-core-764f73a033b6686a50dff71881e2491f9e990c87.tar.gz openembedded-core-764f73a033b6686a50dff71881e2491f9e990c87.tar.bz2 openembedded-core-764f73a033b6686a50dff71881e2491f9e990c87.zip |
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>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 0605c8a0e3..7dbac018ea 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -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 |