summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorChris Larson <kergoth@openedhand.com>2006-08-31 09:20:47 +0000
committerChris Larson <kergoth@openedhand.com>2006-08-31 09:20:47 +0000
commit99da426eb582f02de4e24a65a7cb1fb9f9efb855 (patch)
tree047c511f606102de3183051403b1aa7088ab099d /meta/classes
parentc48931146dcbc07fb2ecd294ca885492cd4f0cec (diff)
downloadpoky-99da426eb582f02de4e24a65a7cb1fb9f9efb855.tar.gz
base.bbclass: Add a new 'rebuild' convenience task, which simply does a clean and then runs the default task ('build').
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@685 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 940e7ac7a4..8afd8e3cdb 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -1,5 +1,5 @@
1BB_DEFAULT_TASK = "build" 1BB_DEFAULT_TASK = "build"
2PATCHES_DIR="${S}" 2PATCHES_DIR = "${S}"
3 3
4def base_dep_prepend(d): 4def base_dep_prepend(d):
5 import bb; 5 import bb;
@@ -325,6 +325,16 @@ python base_do_clean() {
325 os.system('rm -f '+ dir) 325 os.system('rm -f '+ dir)
326} 326}
327 327
328addtask rebuild
329do_rebuild[dirs] = "${TOPDIR}"
330do_rebuild[nostamp] = "1"
331do_rebuild[bbdepcmd] = ""
332python base_do_rebuild() {
333 """rebuild a package"""
334 bb.build.exec_task('do_clean', d)
335 bb.build.exec_task('do_' + bb.data.getVar('BB_DEFAULT_TASK', d, 1), d)
336}
337
328addtask mrproper 338addtask mrproper
329do_mrproper[dirs] = "${TOPDIR}" 339do_mrproper[dirs] = "${TOPDIR}"
330do_mrproper[nostamp] = "1" 340do_mrproper[nostamp] = "1"
@@ -687,7 +697,7 @@ python () {
687# Patch handling 697# Patch handling
688inherit patch 698inherit patch
689 699
690EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage 700EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage do_rebuild
691 701
692MIRRORS[func] = "0" 702MIRRORS[func] = "0"
693MIRRORS () { 703MIRRORS () {