diff options
author | Chris Larson <kergoth@openedhand.com> | 2006-08-31 09:20:47 +0000 |
---|---|---|
committer | Chris Larson <kergoth@openedhand.com> | 2006-08-31 09:20:47 +0000 |
commit | 99da426eb582f02de4e24a65a7cb1fb9f9efb855 (patch) | |
tree | 047c511f606102de3183051403b1aa7088ab099d /meta | |
parent | c48931146dcbc07fb2ecd294ca885492cd4f0cec (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/base.bbclass | 14 |
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 @@ | |||
1 | BB_DEFAULT_TASK = "build" | 1 | BB_DEFAULT_TASK = "build" |
2 | PATCHES_DIR="${S}" | 2 | PATCHES_DIR = "${S}" |
3 | 3 | ||
4 | def base_dep_prepend(d): | 4 | def 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 | ||
328 | addtask rebuild | ||
329 | do_rebuild[dirs] = "${TOPDIR}" | ||
330 | do_rebuild[nostamp] = "1" | ||
331 | do_rebuild[bbdepcmd] = "" | ||
332 | python 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 | |||
328 | addtask mrproper | 338 | addtask mrproper |
329 | do_mrproper[dirs] = "${TOPDIR}" | 339 | do_mrproper[dirs] = "${TOPDIR}" |
330 | do_mrproper[nostamp] = "1" | 340 | do_mrproper[nostamp] = "1" |
@@ -687,7 +697,7 @@ python () { | |||
687 | # Patch handling | 697 | # Patch handling |
688 | inherit patch | 698 | inherit patch |
689 | 699 | ||
690 | EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage | 700 | 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 |
691 | 701 | ||
692 | MIRRORS[func] = "0" | 702 | MIRRORS[func] = "0" |
693 | MIRRORS () { | 703 | MIRRORS () { |