diff options
-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 () { |