Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 0/7] Realize archiving functions
Date: Fri, 16 Mar 2012 14:23:25 +0800	[thread overview]
Message-ID: <cover.1331877464.git.xiaofeng.yan@windriver.com> (raw)

From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

Hi Saul & Mark,

I made some modification according to your suggestion. This is V3 for bug 1977
I removed the identification case which identify whether series and non-applying patches should be included in tarball or not. The default set include series and non-applying files
Also, I removed the other one case to select packages filtered by copyleft_compliance.bbclass because the copyrights have been created as directory in archiver.bbclass.
So I think user can select the packages they want according to the directory name. I will export functions 'get_licenses' in archiver.bbclass instead of moving this to licenses.bbclass because if this function is moved to licenses.bbclass,  then this function don't have any connection with other functions in license.bbclass. If this function is in archiver.bbclass,  then it will be called by function in archiver.bbclass.
all archiving packages will be deployed in ${DEPLOY_DIR}/sources

# the method to archive
inherit one of them(archive-original-source, archive-patched-source,archive-configured-source) in a base bbclass. for example, you can inherit archive-original-source in package_rpm.bbclass
$bitbake core-image-sato
<build successfully >
$ tree tmp/deploy/sources

  tmp/deploy/sources/
├── allarch-poky-linux
│   ├── CC-BY-SA-3.0
│   │   └── sato-icon-theme-0.4.1-r2
│   │       ├── sato-icon-theme-0.4.1-r2.diff.gz
│   │       ├── sato-icon-theme-0.4.1-r2-patches.tar.gz
│   │       ├── sato-icon-theme-0.4.1-r2-prepatch.tar.gz
│   │       ├── sato-icon-theme-0.4.1-r2-script-logs.tar.gz
│   │       └── sato-icon-theme-0.4.1-r2.showdata.dump
│   ├── GPLv2
│   │   ├── hicolor-icon-theme-0.12-r0
│   │   │   ├── hicolor-icon-theme-0.12-r0.diff.gz
│   │   │   ├── hicolor-icon-theme-0.12-r0-patches.tar.gz
│   │   │   ├── hicolor-icon-theme-0.12-r0-prepatch.tar.gz
│   │   │   ├── hicolor-icon-theme-0.12-r0-script-logs.tar.gz
│   │   │   └── hicolor-icon-theme-0.12-r0.showdata.dump
 .......
└── i586-poky-linux
    ├── AFL-2GPLv2+
    │   ├── dbus-1.4.16-r2.0
    │   │   ├── dbus-1.4.16-r2.0.diff.gz
    │   │   ├── dbus-1.4.16-r2.0-patches.tar.gz
    │   │   ├── dbus-1.4.16-r2.0-prepatch.tar.gz
    │   │   ├── dbus-1.4.16-r2.0-script-logs.tar.gz
    │   │   └── dbus-1.4.16-r2.0.showdata.dump
    │   └── dbus-glib-0.92-r2
    │       ├── dbus-glib-0.92-r2.diff.gz
    │       ├── dbus-glib-0.92-r2-patches.tar.gz
    │       ├── dbus-glib-0.92-r2-prepatch.tar.gz
    │       ├── dbus-glib-0.92-r2-script-logs.tar.gz
    │       └── dbus-glib-0.92-r2.showdata.dump
    ├── Artistic-1.0GPL-1.0
    │   └── perl-5.14.2-r4
    │       ├── perl-5.14.2-r4.diff.gz
    │       ├── perl-5.14.2-r4-patches.tar.gz
    │       ├── perl-5.14.2-r4-prepatch.tar.gz
    │       ├── perl-5.14.2-r4-script-logs.tar.gz
    │       └── perl-5.14.2-r4.showdata.dump



Pull URL: git://git.pokylinux.org/poky-contrib.git
  Branch: xiaofeng/1977
  Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/1977

Thanks,
    Xiaofeng Yan <xiaofeng.yan@windriver.com>
---


Xiaofeng Yan (7):
  package_rpm: Add srpm function to this bbclass
  archiver.bbclass: New bbclass for archiving sources, patches,logs and
    scripts
  archive-patched-source.bbclass: Archive patched source
  archive-configured-source.bbclass: Archive configured source
  archive-original-source.bbclass: Archive original source
  local.conf.sample: Add set for archiving packages
  sourcepkg, src_distribute, src_distribute_local: remove three bbclass

 meta-yocto/conf/local.conf.sample              |   16 +
 meta/classes/archive-configured-source.bbclass |   14 +
 meta/classes/archive-original-source.bbclass   |   14 +
 meta/classes/archive-patched-source.bbclass    |   14 +
 meta/classes/archiver.bbclass                  |  419 ++++++++++++++++++++++++
 meta/classes/package_rpm.bbclass               |   47 +++
 meta/classes/sourcepkg.bbclass                 |  107 ------
 meta/classes/src_distribute.bbclass            |   49 ---
 meta/classes/src_distribute_local.bbclass      |   33 --
 9 files changed, 524 insertions(+), 189 deletions(-)
 create mode 100644 meta/classes/archive-configured-source.bbclass
 create mode 100644 meta/classes/archive-original-source.bbclass
 create mode 100644 meta/classes/archive-patched-source.bbclass
 create mode 100644 meta/classes/archiver.bbclass
 delete mode 100644 meta/classes/sourcepkg.bbclass
 delete mode 100644 meta/classes/src_distribute.bbclass
 delete mode 100644 meta/classes/src_distribute_local.bbclass




             reply	other threads:[~2012-03-16  6:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16  6:23 Xiaofeng Yan [this message]
2012-03-16  6:23 ` [PATCH 1/7] package_rpm: Add srpm function to this bbclass Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 2/7] archiver.bbclass: New bbclass for archiving sources, patches, logs and scripts Xiaofeng Yan
2012-03-19 21:04   ` Saul Wold
2012-03-20  5:50     ` Xiaofeng Yan
2012-03-20  8:07       ` Koen Kooi
2012-03-20  9:40         ` Xiaofeng Yan
2012-03-20  9:49           ` Xiaofeng Yan
2012-03-20 10:00             ` Anders Darander
2012-03-20 14:41               ` Saul Wold
2012-03-21  6:39                 ` Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 3/7] archive-patched-source.bbclass: Archive patched source Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 4/7] archive-configured-source.bbclass: Archive configured source Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 5/7] archive-original-source.bbclass: Archive original source Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 6/7] local.conf.sample: Add set for archiving packages Xiaofeng Yan
2012-03-16  6:23 ` [PATCH 7/7] sourcepkg, src_distribute, src_distribute_local: remove three bbclass Xiaofeng Yan
  -- strict thread matches above, loose matches on Subject: below --
2012-03-13 12:52 [PATCH 0/7] Realize archiving functions Xiaofeng Yan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1331877464.git.xiaofeng.yan@windriver.com \
    --to=xiaofeng.yan@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox