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 | |
| parent | 483f85802a97cb9ad4d958c29458db91acc7809f (diff) | |
| download | poky-764f73a033b6686a50dff71881e2491f9e990c87.tar.gz | |
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')
| -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 | |||
| 937 | addtask populate_staging after do_install | 937 | addtask populate_staging after do_install |
| 938 | 938 | ||
| 939 | python do_populate_staging () { | 939 | python do_populate_staging () { |
| 940 | bb.build.exec_func('do_stage', d) | 940 | # |
| 941 | # Only run do_stage if its not the empty default above | ||
| 942 | # | ||
| 943 | stagefunc = bb.data.getVar('do_stage', d, 1).strip() | ||
| 944 | if stagefunc != "base_do_stage": | ||
| 945 | bb.build.exec_func('do_stage', d) | ||
| 941 | } | 946 | } |
| 942 | 947 | ||
| 943 | addtask install after do_compile | 948 | addtask install after do_compile |
