In my opinion, 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. In my distro, I'm doing something this: # More sane usability for the archiver classes ARCHIVER_MODE ?= "none" ARCHIVER_MODE[type] = "choice" ARCHIVER_MODE[choices] = "none original patched configured" ARCHIVER_CLASS = "${@'archive-${ARCHIVER_MODE}-source' \ if ARCHIVER_MODE != 'none' else ''}" INHERIT += "${ARCHIVER_CLASS}"
Hi Christopher Larson, This is good way to point to the type for archiving. I will learn your ideas and add them to appropriate place. thanks your good suggestion. Thanks Yan
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=34f819e22e337c3ad69f72a9bd9c4422d5a61c3a
the following is added to the local.conf of build dir: INHERIT += "archive-original-source" SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'xxx' run "bitbake core-image-sato-sdk" in build dir to build the qemuppc core-image-sato-sdk image, then change the above to : INHERIT += "archive-original-source" SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= '' run "bitbake core-image-sato-sdk" in build dir to build the qemuppc core-image-sato-sdk image. no error happened , change status to verified. test env : host :ubuntu 11.10 x86_64 kernel :3.0.0-20-generic #34-Ubuntu SMP git info:60543b931d073e17ad935aacfbd0d4eba76e2360 git branch :poky/master