diff options
author | Koen Kooi <koen@openembedded.org> | 2008-12-10 18:31:34 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-12-10 18:31:34 +0100 |
commit | d67e62ea9f3261ec737dec0eafb5752617d8e5a7 (patch) | |
tree | 275037dfa3287086ec2a962d1f6647c67bdfeadd | |
parent | 546338c506d41f982c3d7ae87d9dcbf497531cc4 (diff) |
sourcepkg bbclass: sync with poky and attemp to make it work with parallel bitbake
-rw-r--r-- | classes/sourcepkg.bbclass | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/classes/sourcepkg.bbclass b/classes/sourcepkg.bbclass index 045b4ce629..200ff8c228 100644 --- a/classes/sourcepkg.bbclass +++ b/classes/sourcepkg.bbclass @@ -63,7 +63,7 @@ python sourcepkg_do_dumpdata() { distro = bb.data.getVar('DISTRO', d, 1) s_tree = get_src_tree(d) openembeddeddir = os.path.join(workdir, s_tree, distro) - dumpfile = os.path.join(openembeddeddir, bb.data.expand("${P}-${PR}${DISTRO_PR}.showdata.dump",d)) + dumpfile = os.path.join(openembeddeddir, bb.data.expand("${P}-${PR}.showdata.dump",d)) try: os.mkdir(openembeddeddir) @@ -97,14 +97,20 @@ sourcepkg_do_create_diff_gz(){ cp $i $src_tree/${DISTRO}/files done - oenote "Creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}${DISTRO_PR}.diff.gz" - LC_ALL=C TZ=UTC0 diff --exclude-from=temp/exclude-from-file -Naur $src_tree.orig $src_tree | gzip -c > ${DEPLOY_DIR_SRC}/${P}-${PR}${DISTRO_PR}.diff.gz + oenote "Creating .diff.gz in ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz" + LC_ALL=C TZ=UTC0 diff --exclude-from=temp/exclude-from-file -Naur $src_tree.orig $src_tree | gzip -c > ${DEPLOY_DIR_SRC}/${P}-${PR}.diff.gz rm -rf $src_tree.orig } EXPORT_FUNCTIONS do_create_orig_tgz do_archive_bb do_dumpdata do_create_diff_gz +do_create_orig_tgz[deptask] = "do_unpack" +do_create_diff_gz[deptask] = "do_patch" +do_archive_bb[deptask] = "do_patch" +do_dumpdata[deptask] = "do_unpack" + addtask create_orig_tgz after do_unpack before do_patch addtask archive_bb after do_patch before do_dumpdata addtask dumpdata after do_archive_bb before do_create_diff_gz -addtask create_diff_gz after do_dump_data before do_configure +addtask create_diff_gz after do_dumpdata before do_configure + |