| Submitter | Xiaofeng Yan |
|---|---|
| Date | March 27, 2012, 2:24 a.m. |
| Message ID | <e9d2eb8bec97c9bd98bbd5ea2073924e284ba41b.1332814325.git.xiaofeng.yan@windriver.com> |
| Download | mbox | patch |
| Permalink | /patch/24593/ |
| State | New |
| Headers | show |
Comments
On Mon, Mar 26, 2012 at 7:24 PM, Xiaofeng Yan <xiaofeng.yan@windriver.com> wrote: > From: Xiaofeng Yan <xiaofeng.yan@windriver.com> > > User can use these variables to get atchiving packages they want. > > Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> > --- > meta-yocto/conf/local.conf.sample.extended | 32 ++++++++++++++++++++++++++++ > 1 files changed, 32 insertions(+), 0 deletions(-) > > diff --git a/meta-yocto/conf/local.conf.sample.extended b/meta-yocto/conf/local.conf.sample.extended > index 9c5b974..731b7d6 100644 > --- a/meta-yocto/conf/local.conf.sample.extended > +++ b/meta-yocto/conf/local.conf.sample.extended > @@ -182,3 +182,35 @@ > # when the disk space reduces 50M (or the amount of inode reduces 5k). > #BB_DISKMON_WARNINTERVAL = "50M,5K" > > +# Archiving packages configuration > +# > +# The following variables lists which files to archive and the package type to archive. > +# One bbclass of them (archive-original-source.bbclass,archive-patched-source.bbclass > +# and archive-configured-source.bbclass) should be inherited in a global bbclass, for example, > +# intherit archive-original-source in packages_rpm.bbclass > +# > +# SOURCE_ARCHIVE_PACKAGE_TYPE = {'tar','srpm'} > +#SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' > +# > +# SOURCE_ARCHIVE_LOG_WITH_SCRIPTS = {'logs_with_scripts', 'logs'} > +# String 'logs_with_scripts' include temp directory and .bb and .inc files > +# String 'logs' only include temp > +#SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts' > + > +# > +# Archiving packages configuration > +# > +# The following variables lists which files to archive and the package type to archive. > +# One bbclass of them (archive-original-source.bbclass,archive-patched-source.bbclass > +# and archive-configured-source.bbclass) should be inherited in a globale bbclass, for example, > +# intherit archive-original-source in packages_rpm.bbclass > +# > +# SOURCE_ARCHIVE_PACKAGE_TYPE = {'tar','srpm'} > +#SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' > +# > +# SOURCE_ARCHIVE_LOG_WITH_SCRIPTS = {'logs_with_scripts', 'logs'} > +# String 'logs_with_scripts' include temp directory and .bb and .inc files > +# String 'logs' only include temp > +#SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts' > +# > + > -- > 1.7.0.4 You're adding the bits to the file twice, as far as I can tell.
On Tue, 2012-03-27 at 10:24 +0800, Xiaofeng Yan wrote: > From: Xiaofeng Yan <xiaofeng.yan@windriver.com> > > User can use these variables to get atchiving packages they want. > > Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> > --- > meta-yocto/conf/local.conf.sample.extended | 32 ++++++++++++++++++++++++++++ > 1 files changed, 32 insertions(+), 0 deletions(-) This commit introduced duplicate information as Chris noted. I also thought we could make it clearer so in the end I pretty much rewrote it (to mention INHERIT += too). I've merged a patch along these lines which should complete this series now. I would note that a few people have ideas for cleanups to the code. For example, rather than figuring out .bb and .inc files as you do now, there is a bitbake variable you can look at to get this information. I'm seeing the merged code as a first draft of this which we can now iterate over and improve. As such I'll take improvement patches. Cheers, Richard
Patch
diff --git a/meta-yocto/conf/local.conf.sample.extended b/meta-yocto/conf/local.conf.sample.extended index 9c5b974..731b7d6 100644 --- a/meta-yocto/conf/local.conf.sample.extended +++ b/meta-yocto/conf/local.conf.sample.extended @@ -182,3 +182,35 @@ # when the disk space reduces 50M (or the amount of inode reduces 5k). #BB_DISKMON_WARNINTERVAL = "50M,5K" +# Archiving packages configuration +# +# The following variables lists which files to archive and the package type to archive. +# One bbclass of them (archive-original-source.bbclass,archive-patched-source.bbclass +# and archive-configured-source.bbclass) should be inherited in a global bbclass, for example, +# intherit archive-original-source in packages_rpm.bbclass +# +# SOURCE_ARCHIVE_PACKAGE_TYPE = {'tar','srpm'} +#SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' +# +# SOURCE_ARCHIVE_LOG_WITH_SCRIPTS = {'logs_with_scripts', 'logs'} +# String 'logs_with_scripts' include temp directory and .bb and .inc files +# String 'logs' only include temp +#SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts' + +# +# Archiving packages configuration +# +# The following variables lists which files to archive and the package type to archive. +# One bbclass of them (archive-original-source.bbclass,archive-patched-source.bbclass +# and archive-configured-source.bbclass) should be inherited in a globale bbclass, for example, +# intherit archive-original-source in packages_rpm.bbclass +# +# SOURCE_ARCHIVE_PACKAGE_TYPE = {'tar','srpm'} +#SOURCE_ARCHIVE_PACKAGE_TYPE ?= 'tar' +# +# SOURCE_ARCHIVE_LOG_WITH_SCRIPTS = {'logs_with_scripts', 'logs'} +# String 'logs_with_scripts' include temp directory and .bb and .inc files +# String 'logs' only include temp +#SOURCE_ARCHIVE_LOG_WITH_SCRIPTS ?= 'logs_with_scripts' +# +