From 764f73a033b6686a50dff71881e2491f9e990c87 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 29 Oct 2009 23:34:41 +0000 Subject: 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 --- meta/classes/base.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta/classes/base.bbclass') 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 -- cgit v1.2.3-54-g00ecf