summaryrefslogtreecommitdiffstats
path: root/meta/classes/image_ipk.bbclass
diff options
context:
space:
mode:
authorChris Larson <kergoth@openedhand.com>2006-09-19 09:04:09 +0000
committerChris Larson <kergoth@openedhand.com>2006-09-19 09:04:09 +0000
commit4fa2d11bb1fdb58ff426114169583672fc3d65b8 (patch)
tree0bd4952bbe057c3dc219be7e371a6a9d496c6535 /meta/classes/image_ipk.bbclass
parent04f695333350e31fa87b7822c17a073af73fcd84 (diff)
downloadpoky-4fa2d11bb1fdb58ff426114169583672fc3d65b8.tar.gz
Sync up.. all the deb/dpkg changes which I have locally are now in svn.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@728 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/image_ipk.bbclass')
-rw-r--r--meta/classes/image_ipk.bbclass80
1 files changed, 0 insertions, 80 deletions
diff --git a/meta/classes/image_ipk.bbclass b/meta/classes/image_ipk.bbclass
deleted file mode 100644
index d5f21c5809..0000000000
--- a/meta/classes/image_ipk.bbclass
+++ /dev/null
@@ -1,80 +0,0 @@
1inherit rootfs_ipk
2
3# We need to recursively follow RDEPENDS and RRECOMMENDS for images
4BUILD_ALL_DEPS = "1"
5do_rootfs[recrdeptask] = "do_package"
6
7# Images are generally built explicitly, do not need to be part of world.
8EXCLUDE_FROM_WORLD = "1"
9
10USE_DEVFS ?= "0"
11
12DEPENDS += "makedevs-native"
13PACKAGE_ARCH = "${MACHINE_ARCH}"
14
15def get_image_deps(d):
16 import bb
17 str = ""
18 for type in (bb.data.getVar('IMAGE_FSTYPES', d, 1) or "").split():
19 deps = bb.data.getVar('IMAGE_DEPENDS_%s' % type, d) or ""
20 if deps:
21 str += " %s" % deps
22 return str
23
24DEPENDS += "${@get_image_deps(d)}"
25
26IMAGE_DEVICE_TABLE ?= "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-minimal.txt')}"
27IMAGE_POSTPROCESS_COMMAND ?= ""
28
29# Must call real_do_rootfs() from inside here, rather than as a separate
30# task, so that we have a single fakeroot context for the whole process.
31fakeroot do_rootfs () {
32 set -x
33 rm -rf ${IMAGE_ROOTFS}
34
35 if [ "${USE_DEVFS}" != "1" ]; then
36 mkdir -p ${IMAGE_ROOTFS}/dev
37 makedevs -r ${IMAGE_ROOTFS} -D ${IMAGE_DEVICE_TABLE}
38 fi
39
40 real_do_rootfs
41
42 insert_feed_uris
43
44 rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/lists/oe
45
46 ${IMAGE_PREPROCESS_COMMAND}
47
48 export TOPDIR=${TOPDIR}
49
50 for type in ${IMAGE_FSTYPES}; do
51 if test -z "$FAKEROOTKEY"; then
52 fakeroot -i ${TMPDIR}/fakedb.image bbimage -t $type -e ${FILE}
53 else
54 bbimage -n "${IMAGE_NAME}" -t "$type" -e "${FILE}"
55 fi
56
57 rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*
58 ln -s ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type
59 done
60
61 ${IMAGE_POSTPROCESS_COMMAND}
62}
63
64insert_feed_uris () {
65
66 echo "Building feeds for [${DISTRO}].."
67
68 for line in ${FEED_URIS}
69 do
70 # strip leading and trailing spaces/tabs, then split into name and uri
71 line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`"
72 feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`"
73 feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`"
74
75 echo "Added $feed_name feed with URL $feed_uri"
76
77 # insert new feed-sources
78 echo "src/gz $feed_name $feed_uri" >> ${IMAGE_ROOTFS}/etc/ipkg/${feed_name}-feed.conf
79 done
80}