diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2012-05-30 17:03:56 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-05 22:56:32 +0100 |
commit | 34f819e22e337c3ad69f72a9bd9c4422d5a61c3a (patch) | |
tree | 8b4c97254ae0e966a19573e603b65c796756396f /meta | |
parent | 09a7dc9a4654719699258ba9422f14095147c7c2 (diff) | |
download | poky-34f819e22e337c3ad69f72a9bd9c4422d5a61c3a.tar.gz |
archiver.bbclass: Improve the usability for the archiver classes
The usability of the archiver classes can be improved, beyond the
simple addition of default values for the variables. A user could
well inherit just archiver rather than the individual useful classes,
and not realize it will do nothing.
[YOCTO #2472]
(From OE-Core rev: ce91f495e0c4ef3bf53ee8b2ea570061da38e14f)
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/archiver.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 67eac84314..ed2dbe4ed8 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -6,8 +6,10 @@ ARCHIVE_EXCLUDE_FROM ?= ".pc autom4te.cache" | |||
6 | ARCHIVE_TYPE ?= "TAR SRPM" | 6 | ARCHIVE_TYPE ?= "TAR SRPM" |
7 | DISTRO ?= "poky" | 7 | DISTRO ?= "poky" |
8 | PATCHES_ARCHIVE_WITH_SERIES = 'TRUE' | 8 | PATCHES_ARCHIVE_WITH_SERIES = 'TRUE' |
9 | SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts' | 9 | SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= '${@d.getVarFlag('ARCHIVER_MODE', 'log_type') \ |
10 | SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' | 10 | if d.getVarFlag('ARCHIVER_MODE', 'log_type') != 'none' else 'logs_with_scripts'}' |
11 | SOURCE_ARCHIVE_PACKAGE_TYPE ?= '${@d.getVarFlag('ARCHIVER_MODE','type') \ | ||
12 | if d.getVarFlag('ARCHIVER_MODE', 'log_type')!= 'none' else 'tar'}' | ||
11 | 13 | ||
12 | def get_bb_inc(d): | 14 | def get_bb_inc(d): |
13 | '''create a directory "script-logs" including .bb and .inc file in ${WORKDIR}''' | 15 | '''create a directory "script-logs" including .bb and .inc file in ${WORKDIR}''' |