summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-03-17 13:18:21 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-03-17 13:18:21 +0000
commit346dec3686ea2c16db87f30aa7efefa85442dbbf (patch)
tree1f7cdc9653d450163148a990acf4001cd9516828
parent15f1fd7c4a657147b4862d65408f03fdfc2667ab (diff)
downloadpoky-346dec3686ea2c16db87f30aa7efefa85442dbbf.tar.gz
rootfs_ipk.bbclass: switched to opkg
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4026 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/classes/rootfs_ipk.bbclass24
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 50df68c76f..80adb0bcd7 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -5,7 +5,7 @@
5# See image.bbclass for a usage of this. 5# See image.bbclass for a usage of this.
6# 6#
7 7
8do_rootfs[depends] += "ipkg-native:do_populate_staging ipkg-utils-native:do_populate_staging" 8do_rootfs[depends] += "opkg-native:do_populate_staging ipkg-utils-native:do_populate_staging"
9do_rootfs[recrdeptask] += "do_package_write_ipk" 9do_rootfs[recrdeptask] += "do_package_write_ipk"
10 10
11IPKG_ARGS = "-f ${IPKGCONF_TARGET} -o ${IMAGE_ROOTFS}" 11IPKG_ARGS = "-f ${IPKGCONF_TARGET} -o ${IMAGE_ROOTFS}"
@@ -18,35 +18,35 @@ fakeroot rootfs_ipk_do_rootfs () {
18 18
19 mkdir -p ${T} 19 mkdir -p ${T}
20 20
21 ipkg-cl ${IPKG_ARGS} update 21 opkg-cl ${IPKG_ARGS} update
22 22
23 # Uclibc builds don't provide this stuff... 23 # Uclibc builds don't provide this stuff...
24 if [ x${TARGET_OS} = "xlinux" ] || [ x${TARGET_OS} = "xlinux-gnueabi" ] ; then 24 if [ x${TARGET_OS} = "xlinux" ] || [ x${TARGET_OS} = "xlinux-gnueabi" ] ; then
25 if [ ! -z "${LINGUAS_INSTALL}" ]; then 25 if [ ! -z "${LINGUAS_INSTALL}" ]; then
26 ipkg-cl ${IPKG_ARGS} install glibc-localedata-i18n 26 opkg-cl ${IPKG_ARGS} install glibc-localedata-i18n
27 for i in ${LINGUAS_INSTALL}; do 27 for i in ${LINGUAS_INSTALL}; do
28 ipkg-cl ${IPKG_ARGS} install $i 28 opkg-cl ${IPKG_ARGS} install $i
29 done 29 done
30 fi 30 fi
31 fi 31 fi
32 if [ ! -z "${PACKAGE_INSTALL}" ]; then 32 if [ ! -z "${PACKAGE_INSTALL}" ]; then
33 ipkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL} 33 opkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL}
34 fi 34 fi
35 35
36 export D=${IMAGE_ROOTFS} 36 export D=${IMAGE_ROOTFS}
37 export OFFLINE_ROOT=${IMAGE_ROOTFS} 37 export OFFLINE_ROOT=${IMAGE_ROOTFS}
38 export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS} 38 export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}
39 mkdir -p ${IMAGE_ROOTFS}/etc/ipkg/ 39 mkdir -p ${IMAGE_ROOTFS}/etc/opkg/
40 grep "^arch" ${IPKGCONF_TARGET} >${IMAGE_ROOTFS}/etc/ipkg/arch.conf 40 grep "^arch" ${IPKGCONF_TARGET} >${IMAGE_ROOTFS}/etc/opkg/arch.conf
41 41
42 for i in ${IMAGE_ROOTFS}${libdir}/ipkg/info/*.preinst; do 42 for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.preinst; do
43 if [ -f $i ] && ! sh $i; then 43 if [ -f $i ] && ! sh $i; then
44 ipkg-cl ${IPKG_ARGS} flag unpacked `basename $i .preinst` 44 opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .preinst`
45 fi 45 fi
46 done 46 done
47 for i in ${IMAGE_ROOTFS}${libdir}/ipkg/info/*.postinst; do 47 for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.postinst; do
48 if [ -f $i ] && ! sh $i configure; then 48 if [ -f $i ] && ! sh $i configure; then
49 ipkg-cl ${IPKG_ARGS} flag unpacked `basename $i .postinst` 49 opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .postinst`
50 fi 50 fi
51 done 51 done
52 52
@@ -79,5 +79,5 @@ rootfs_ipk_log_check() {
79} 79}
80 80
81remove_packaging_data_files() { 81remove_packaging_data_files() {
82 rm -rf ${IMAGE_ROOTFS}/usr/lib/ipkg/ 82 rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/
83} 83}