summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2006-09-05 20:09:10 +0000
committerChris Larson <clarson@kergoth.com>2006-09-05 20:09:10 +0000
commit3991d9efe92fa183899a15fdf928582f53044bbe (patch)
treecadacb5f4b16db7c5bda063420f519c40d078d45 /classes/base.bbclass
parent6713b5b6ec1da1d618fabe0cb234d7cb32d2a6ba (diff)
Add 'rebuild' task to base.bbclass, as it's quite useful and simple to add.
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass12
1 files changed, 11 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 51b6d2111f..80e0b82198 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -324,6 +324,16 @@ python base_do_clean() {
os.system('rm -f '+ dir)
}
+addtask rebuild
+do_rebuild[dirs] = "${TOPDIR}"
+do_rebuild[nostamp] = "1"
+do_rebuild[bbdepcmd] = ""
+python base_do_rebuild() {
+ """rebuild a package"""
+ bb.build.exec_task('do_clean', d)
+ bb.build.exec_task('do_' + bb.data.getVar('BB_DEFAULT_TASK', d, 1), d)
+}
+
addtask mrproper
do_mrproper[dirs] = "${TOPDIR}"
do_mrproper[nostamp] = "1"
@@ -685,7 +695,7 @@ python () {
# Patch handling
inherit patch
-EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage
+EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage do_rebuild
MIRRORS[func] = "0"
MIRRORS () {