diff options
author | Richard Purdie <richard@openedhand.com> | 2006-10-16 23:19:19 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-10-16 23:19:19 +0000 |
commit | b6959cf8d390ded754f9a4ab5ce746313663a510 (patch) | |
tree | e1ea6292c3b4346a5c3b6236c2d1c8aba654bc63 /meta | |
parent | 2f3711f2286325d40e24c8401c8eb419431b1d81 (diff) | |
download | poky-b6959cf8d390ded754f9a4ab5ce746313663a510.tar.gz |
base.bbclass: Add fetchall task to fetch all sources for all the given task and all its dependencies (requires bitbake trunk)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@803 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/base.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 0d5f5ea164..e779cd5e6c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -376,6 +376,12 @@ python base_do_fetch() { | |||
376 | raise bb.build.FuncFailed("Fetch failed: %s" % value) | 376 | raise bb.build.FuncFailed("Fetch failed: %s" % value) |
377 | } | 377 | } |
378 | 378 | ||
379 | addtask fetchall | ||
380 | do_fetchall[recrdeptask] = "do_fetch" | ||
381 | python base_do_fetchall() { | ||
382 | bb.build.exec_task('do_fetch', d) | ||
383 | } | ||
384 | |||
379 | def oe_unpack_file(file, data, url = None): | 385 | def oe_unpack_file(file, data, url = None): |
380 | import bb, os | 386 | import bb, os |
381 | if not url: | 387 | if not url: |
@@ -731,7 +737,7 @@ python () { | |||
731 | # Patch handling | 737 | # Patch handling |
732 | inherit patch | 738 | inherit patch |
733 | 739 | ||
734 | 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 | 740 | 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 do_fetchall |
735 | 741 | ||
736 | MIRRORS[func] = "0" | 742 | MIRRORS[func] = "0" |
737 | MIRRORS () { | 743 | MIRRORS () { |