diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-01-04 21:02:30 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-21 17:15:26 +0000 |
commit | f0714d1128f27429485cace56d89bf6f0a170a29 (patch) | |
tree | 4559f1d7d67d2ce8396685c60626fbcd9dbb7ed4 /meta/classes/archive-original-source.bbclass | |
parent | 3175653fe06452f0a29de3068fa49632a9c68e4b (diff) | |
download | poky-f0714d1128f27429485cace56d89bf6f0a170a29.tar.gz |
classes/archive*.bbclass: remove archive-*-source.bbclass
Nearly all of the codes in the following 3 files are the same, we can
move the code to archiver.bbclass and remove them:
archive-configured-source.bbclass
archive-original-source.bbclass
archive-patched-source.bbclass
[YOCTO #5113]
(From OE-Core rev: d2d3428a0fc746e56c0a0046bd12a393dedb4dda)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archive-original-source.bbclass')
-rw-r--r-- | meta/classes/archive-original-source.bbclass | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/meta/classes/archive-original-source.bbclass b/meta/classes/archive-original-source.bbclass deleted file mode 100644 index e271a08146..0000000000 --- a/meta/classes/archive-original-source.bbclass +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | # This file is for getting archiving packages with original | ||
2 | # sources(archive ${S} after unpack stage), patches, logs(archive 'temp' | ||
3 | # after package_write_rpm), dump data and creating diff file(get all | ||
4 | # environment variables and functions in building and mapping all | ||
5 | # content in ${S} including patches to xxx.diff.gz. All archived packages | ||
6 | # will be deployed in ${DEPLOY_DIR}/sources | ||
7 | |||
8 | inherit archiver | ||
9 | |||
10 | # Get original sources archiving package with patches | ||
11 | addtask do_archive_original_sources_patches after do_unpack | ||
12 | |||
13 | # Get archiving package with temp(logs) and scripts(.bb and inc files) | ||
14 | addtask do_archive_scripts_logs | ||
15 | |||
16 | # Get dump date and create diff file | ||
17 | addtask do_dumpdata_create_diff_gz | ||
18 | |||
19 | python () { | ||
20 | pn = d.getVar('PN', True) | ||
21 | packaging = d.getVar('IMAGE_PKGTYPE', True) | ||
22 | |||
23 | if tar_filter(d): | ||
24 | return | ||
25 | |||
26 | d.appendVarFlag('do_dumpdata_create_diff_gz', 'depends', ' %s:do_package_write_' %pn + packaging) | ||
27 | build_deps = ' %s:do_dumpdata_create_diff_gz' %pn | ||
28 | |||
29 | if d.getVar('SOURCE_ARCHIVE_LOG_WITH_SCRIPTS', True) == 'logs_with_scripts': | ||
30 | d.appendVarFlag('do_archive_scripts_logs', 'depends', ' %s:do_package_write_' %pn + packaging) | ||
31 | build_deps += ' %s:do_archive_scripts_logs' %pn | ||
32 | |||
33 | if not not_tarball(d): | ||
34 | d.appendVarFlag('do_patch', 'depends', ' %s:do_archive_original_sources_patches' %pn) | ||
35 | build_deps += ' %s:do_archive_original_sources_patches' %pn | ||
36 | |||
37 | if bb.data.inherits_class('image', d): | ||
38 | d.appendVarFlag('do_rootfs', 'depends', build_deps) | ||
39 | else: | ||
40 | d.appendVarFlag('do_build', 'depends', build_deps) | ||
41 | } | ||
42 | |||
43 | ARCHIVE_SSTATE_OUTDIR = "${DEPLOY_DIR}/sources/" | ||
44 | ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR = "${WORKDIR}/script-logs/" | ||
45 | ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR = "${WORKDIR}/diffgz-envdata/" | ||
46 | |||
47 | SSTATETASKS += "do_archive_scripts_logs" | ||
48 | do_archive_scripts_logs[sstate-inputdirs] = "${ARCHIVE_SSTATE_SCRIPTS_LOGS_INDIR}" | ||
49 | do_archive_scripts_logs[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" | ||
50 | |||
51 | python do_archive_scripts_logs_setscene () { | ||
52 | sstate_setscene(d) | ||
53 | } | ||
54 | |||
55 | addtask do_archive_scripts_logs_setscene | ||
56 | |||
57 | SSTATETASKS += "do_dumpdata_create_diff_gz" | ||
58 | do_dumpdata_create_diff_gz[sstate-inputdirs] = "${ARCHIVE_SSTATE_DIFFGZ_ENVDATA_INDIR}" | ||
59 | do_dumpdata_create_diff_gz[sstate-outputdirs] = "${ARCHIVE_SSTATE_OUTDIR}" | ||
60 | |||
61 | python do_dumpdata_create_diff_gz_setscene () { | ||
62 | sstate_setscene(d) | ||
63 | } | ||
64 | |||
65 | addtask do_dumpdata_create_diff_gz_setscene | ||