summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2011-01-18 18:00:29 +0800
committerSaul Wold <sgw@linux.intel.com>2011-01-30 12:09:52 -0800
commite67698743eb6fea77f03d712be5d838fbc887f16 (patch)
treee53c9dfcc1b0703ec651e0bb6aa4986a594ef999 /meta/classes
parentf6fc1f3475e389551af440608159baeea786ba6d (diff)
downloadopenembedded-core-e67698743eb6fea77f03d712be5d838fbc887f16.tar.gz
openembedded-core-e67698743eb6fea77f03d712be5d838fbc887f16.tar.bz2
openembedded-core-e67698743eb6fea77f03d712be5d838fbc887f16.zip
creating the rpmrepo metadata
This includes two method for build rpm repo: 1. create the metadata in rootfs_rpm 2. standalone binary for building the metadata Not both of them are needed, generally #2 fits more for the purpose, but #1 may have its use on rootfs creation using zypper. Both share some problems and are subjected for future improvement: 1. the createrepo now builds metadata for the whole directory, if there are more than one arch, it builds for all, which means rootfs_rpm may run longer if more builds have been run. 2. createrepo builds metadata for stale rpms Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rootfs_rpm.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 93223abaef..0cea3945ad 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -11,6 +11,9 @@ do_rootfs[depends] += "rpm-native:do_populate_sysroot"
# Needed for update-alternatives
do_rootfs[depends] += "opkg-native:do_populate_sysroot"
+# Creating the repo info in do_rootfs
+do_rootfs[depends] += "createrepo-native:do_populate_sysroot"
+
do_rootfs[recrdeptask] += "do_package_write_rpm"
AWKPOSTINSTSCRIPT = "${POKYBASE}/scripts/rootfs_rpm-extract-postinst.awk"
@@ -38,6 +41,8 @@ fakeroot rootfs_rpm_do_rootfs () {
${RPM_PREPROCESS_COMMANDS}
+ createrepo "${DEPLOY_DIR_RPM}"
+
# Setup base system configuration
mkdir -p ${IMAGE_ROOTFS}/etc/rpm/