[OE-core] [PATCH 0/7] Realize archiving functions
Xiaofeng Yan
xiaofeng.yan at windriver.com
Fri Mar 16 06:23:25 UTC 2012
From: Xiaofeng Yan <xiaofeng.yan at 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 at 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
More information about the Openembedded-core
mailing list