From patchwork Wed Jan 2 11:51:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/3, RFC] archive-*-source.bbclass: Use tasks instead of pre/post functions Date: Wed, 02 Jan 2013 11:51:54 -0000 From: Shakeel, Muhammad X-Patchwork-Id: 41847 Message-Id: <1357127514-20091-1-git-send-email-muhammad_shakeel@mentor.com> To: openembedded-core@lists.openembedded.org Cc: Christopher Larson From: Muhammad Shakeel * Modified following archiver related classes to add separate tasks for different archiver functions instead of adding these as pre/post functions of existing tasks. -archive-original-source.bbclass -archive-patched-source.bbclass -archive-configured-source.bbclass [YOCTO #3449] Signed-off-by: Muhammad Shakeel Signed-off-by: Noor Ahsan Signed-off-by: Christopher Larson --- meta/classes/archive-configured-source.bbclass | 6 +++--- meta/classes/archive-original-source.bbclass | 6 +++--- meta/classes/archive-patched-source.bbclass | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/meta/classes/archive-configured-source.bbclass b/meta/classes/archive-configured-source.bbclass index 1eaaf4c..d804e3d 100644 --- a/meta/classes/archive-configured-source.bbclass +++ b/meta/classes/archive-configured-source.bbclass @@ -8,10 +8,10 @@ inherit archiver # Get archiving package with configured sources including patches -do_configure[postfuncs] += "do_archive_configured_sources " +addtask do_archive_configured_sources after do_configure before do_compile # Get archiving package with temp(logs) and scripts(.bb and inc files) -do_package_write_rpm[prefuncs] += "do_archive_scripts_logs " +addtask do_archive_scripts_logs after do_package before do_package_write_rpm # Get dump date and create diff file -do_package_write_rpm[postfuncs] += "do_dumpdata_create_diff_gz " +addtask do_dumpdata_create_diff_gz after do_package_write_rpm before do_build diff --git a/meta/classes/archive-original-source.bbclass b/meta/classes/archive-original-source.bbclass index 1b3f8d0..604d19c 100644 --- a/meta/classes/archive-original-source.bbclass +++ b/meta/classes/archive-original-source.bbclass @@ -8,10 +8,10 @@ inherit archiver # Get original sources archiving package with patches -do_unpack[postfuncs] += "do_archive_original_sources_patches " +addtask do_archive_original_sources_patches after do_unpack before do_patch # Get archiving package with temp(logs) and scripts(.bb and inc files) -do_package_write_rpm[prefuncs] += "do_archive_scripts_logs " +addtask do_archive_scripts_logs after do_package before do_package_write_rpm # Get dump date and create diff file -do_package_write_rpm[postfuncs] += "do_dumpdata_create_diff_gz " +addtask do_dumpdata_create_diff_gz after do_package_write_rpm before do_build diff --git a/meta/classes/archive-patched-source.bbclass b/meta/classes/archive-patched-source.bbclass index 40b2dcb..4b0a199 100644 --- a/meta/classes/archive-patched-source.bbclass +++ b/meta/classes/archive-patched-source.bbclass @@ -8,10 +8,10 @@ inherit archiver # Get archiving package with patched sources including patches -do_patch[postfuncs] += "do_archive_patched_sources " +addtask do_archive_patched_sources after do_patch before do_configure # Get archiving package with logs(temp) and scripts(.bb and .inc files) -do_package_write_rpm[prefuncs] += "do_archive_scripts_logs " +addtask do_archive_scripts_logs after do_package before do_package_write_rpm # Get dump date and create diff file -do_package_write_rpm[postfuncs] += "do_dumpdata_create_diff_gz " +addtask do_dumpdata_create_diff_gz after do_package_write_rpm before do_build