summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
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/base.bbclass
parentc48931146dcbc07fb2ecd294ca885492cd4f0cec (diff)
downloadopenembedded-core-99da426eb582f02de4e24a65a7cb1fb9f9efb855.tar.gz
openembedded-core-99da426eb582f02de4e24a65a7cb1fb9f9efb855.tar.bz2
openembedded-core-99da426eb582f02de4e24a65a7cb1fb9f9efb855.tar.xz
openembedded-core-99da426eb582f02de4e24a65a7cb1fb9f9efb855.zip
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/base.bbclass')
-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 940e7ac7a..8afd8e3cd 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -1,5 +1,5 @@
BB_DEFAULT_TASK = "build"
-PATCHES_DIR="${S}"
+PATCHES_DIR = "${S}"
def base_dep_prepend(d):
import bb;
@@ -325,6 +325,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"
@@ -687,7 +697,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 () {