]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_ipk: added ROOTFS_POSTINSTALL_COMMAND
authorMarcin Juszkiewicz <hrw@openedhand.com>
Fri, 6 Jun 2008 14:13:40 +0000 (14:13 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Fri, 6 Jun 2008 14:13:40 +0000 (14:13 +0000)
It is for functions which wants to install/remove packages after rootfs is
populated but before flags are mangled.

This can be used by 'install_all_locales' function for example.

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4601 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/rootfs_ipk.bbclass

index 7b5df39cdd9188a5d19d8c76dffca4714a08041d..5f7c741e6e6de310ec7f6a2b82e59466943ba842 100644 (file)
@@ -44,6 +44,8 @@ fakeroot rootfs_ipk_do_rootfs () {
        mkdir -p ${IMAGE_ROOTFS}/etc/opkg/
        grep "^arch" ${IPKGCONF_TARGET} >${IMAGE_ROOTFS}/etc/opkg/arch.conf
 
+       ${ROOTFS_POSTINSTALL_COMMAND}
+       
        for i in ${IMAGE_ROOTFS}${libdir}/opkg/info/*.preinst; do
                if [ -f $i ] && ! sh $i; then
                        opkg-cl ${IPKG_ARGS} flag unpacked `basename $i .preinst`