summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2012-05-30 17:03:56 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-05 22:54:31 +0100
commitce91f495e0c4ef3bf53ee8b2ea570061da38e14f (patch)
treef7b5c86fca4ccfa7d68a665cdcc8e75ce4476f16 /meta/classes
parentbc9f7d7b7eda1c45ad1aaee469ebe28ee1c0c96b (diff)
downloadopenembedded-core-ce91f495e0c4ef3bf53ee8b2ea570061da38e14f.tar.gz
openembedded-core-ce91f495e0c4ef3bf53ee8b2ea570061da38e14f.tar.bz2
openembedded-core-ce91f495e0c4ef3bf53ee8b2ea570061da38e14f.zip
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] Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/archiver.bbclass6
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"
ARCHIVE_TYPE ?= "TAR SRPM"
DISTRO ?= "poky"
PATCHES_ARCHIVE_WITH_SERIES = 'TRUE'
-SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts'
-SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar'
+SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= '${@d.getVarFlag('ARCHIVER_MODE', 'log_type') \
+ if d.getVarFlag('ARCHIVER_MODE', 'log_type') != 'none' else 'logs_with_scripts'}'
+SOURCE_ARCHIVE_PACKAGE_TYPE ?= '${@d.getVarFlag('ARCHIVER_MODE','type') \
+ if d.getVarFlag('ARCHIVER_MODE', 'log_type')!= 'none' else 'tar'}'
def get_bb_inc(d):
'''create a directory "script-logs" including .bb and .inc file in ${WORKDIR}'''