summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
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/rootfs_rpm.bbclass
parentf6fc1f3475e389551af440608159baeea786ba6d (diff)
downloadpoky-e67698743eb6fea77f03d712be5d838fbc887f16.tar.gz
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/rootfs_rpm.bbclass')
-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"
11# Needed for update-alternatives 11# Needed for update-alternatives
12do_rootfs[depends] += "opkg-native:do_populate_sysroot" 12do_rootfs[depends] += "opkg-native:do_populate_sysroot"
13 13
14# Creating the repo info in do_rootfs
15do_rootfs[depends] += "createrepo-native:do_populate_sysroot"
16
14do_rootfs[recrdeptask] += "do_package_write_rpm" 17do_rootfs[recrdeptask] += "do_package_write_rpm"
15 18
16AWKPOSTINSTSCRIPT = "${POKYBASE}/scripts/rootfs_rpm-extract-postinst.awk" 19AWKPOSTINSTSCRIPT = "${POKYBASE}/scripts/rootfs_rpm-extract-postinst.awk"
@@ -38,6 +41,8 @@ fakeroot rootfs_rpm_do_rootfs () {
38 41
39 ${RPM_PREPROCESS_COMMANDS} 42 ${RPM_PREPROCESS_COMMANDS}
40 43
44 createrepo "${DEPLOY_DIR_RPM}"
45
41 # Setup base system configuration 46 # Setup base system configuration
42 mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ 47 mkdir -p ${IMAGE_ROOTFS}/etc/rpm/
43 48