archiver class: Use tasks with sstate instead of pre/post funcs
authorMuhammad Shakeel <muhammad_shakeel@mentor.com>
Wed, 20 Feb 2013 13:50:22 +0000 (18:50 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Feb 2013 23:15:45 +0000 (23:15 +0000)
commitdb950e75b818d7a80be8d7fe096831054957dbfc
tree1b5bceb655b6873580f46a2c4624cc2a0c63e382
parent5f254432f78d31c1c933b39ac494f11a0c3de392
archiver class: Use tasks with sstate instead of pre/post funcs

* Add tasks to move sources, script/logs and diff/env files in
  deploy directory.
* Enable SSTATE for 'do_archive_scripts_logs' task
* Enable SSTATE for 'do_dumpdata_create_diff_gz' task
* SSTATE is not used for sources/patches archiver task because source
  archive package can result into a very large file. It will be an
  unnecessary overhead to keep sources in DL_DIR and cached-binaries.
* If 'SOURCE_ARCHIVE_PACKAGE_TYPE' is 'srpm' then use pre/post functions
  because in this case we do not want to use tasks to move sources/logs
  in DEPLOY_DIR. 'do_package_write_rpm' is responsible for handling
  archiver packages.

[YOCTO #3449]

(From OE-Core rev: 959e2ae23ccbc6955a28996d4538e457cd8cfa5e)

Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archive-configured-source.bbclass
meta/classes/archive-original-source.bbclass
meta/classes/archive-patched-source.bbclass
meta/classes/archiver.bbclass