summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-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 () {