summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-10-07 16:47:22 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-10-07 16:47:22 +0000
commitc8a3fab82f659df3ae034ad73c32f95d72309ab4 (patch)
treeef09b176ee9b7ba547c1f5d828bacf5b3f2011d7 /meta/classes/rootfs_rpm.bbclass
parentab995b84b4f052a1e370265284b743d140cae103 (diff)
downloadpoky-c8a3fab82f659df3ae034ad73c32f95d72309ab4.tar.gz
rootfs_rpm.bbclass: added code to generate images from feeds
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5436 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 292e3bb60d..733736ab9a 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -15,6 +15,7 @@ export YUM_ARCH_FORCE = "${TARGET_ARCH}"
15 15
16AWKPOSTINSTSCRIPT = "${STAGING_BINDIR_NATIVE}/extract-postinst.awk" 16AWKPOSTINSTSCRIPT = "${STAGING_BINDIR_NATIVE}/extract-postinst.awk"
17 17
18RPM_PREPROCESS_COMMANDS = ""
18RPM_POSTPROCESS_COMMANDS = "rpm_insert_feeds_uris" 19RPM_POSTPROCESS_COMMANDS = "rpm_insert_feeds_uris"
19 20
20rpm_insert_feeds_uris () { 21rpm_insert_feeds_uris () {
@@ -42,6 +43,8 @@ rpm_insert_feeds_uris () {
42 43
43fakeroot rootfs_rpm_do_rootfs () { 44fakeroot rootfs_rpm_do_rootfs () {
44 set -x 45 set -x
46
47 ${RPM_PREPROCESS_COMMANDS}
45 48
46 mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ 49 mkdir -p ${IMAGE_ROOTFS}/etc/rpm/
47 echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform 50 echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform
@@ -222,3 +225,14 @@ install_all_locales() {
222 fi 225 fi
223} 226}
224 227
228python () {
229 import bb
230 if bb.data.getVar('BUILD_IMAGES_FROM_FEEDS', d, True):
231 flags = bb.data.getVarFlag('do_rootfs', 'recrdeptask', d)
232 flags = flags.replace("do_package_write_rpm", "")
233 flags = flags.replace("do_deploy", "")
234 flags = flags.replace("do_populate_staging", "")
235 bb.data.setVarFlag('do_rootfs', 'recrdeptask', flags, d)
236 bb.data.setVar('RPM_PREPROCESS_COMMANDS', "rpm_insert_feed_uris", d)
237 bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d)
238}