summaryrefslogtreecommitdiff
path: root/meta/classes/rootfs_ipk.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-11-06 16:23:32 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-11-06 16:23:32 +0000
commit436c5f4716bae47bf9ddddfe0cbaf595a3de46c7 (patch)
treef4f9a76d581903d2b62f58b490996552ed47d9e4 /meta/classes/rootfs_ipk.bbclass
parent1e967ea93ee425dfca6857ec958e9a55160133ac (diff)
downloadopenembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.gz
openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.bz2
openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.xz
openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.zip
classes: Add mechanism to install packages into images only if they've been built
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r--meta/classes/rootfs_ipk.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index ce6dd797e..07f418adb 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -42,6 +42,10 @@ fakeroot rootfs_ipk_do_rootfs () {
opkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL}
fi
+ if [ ! -z "${PACKAGE_INSTALL_ATTEMPTONLY}" ]; then
+ opkg-cl ${IPKG_ARGS} install ${PACKAGE_INSTALL_ATTEMPTONLY} > "${WORKDIR}/temp/log.do_rootfs_attemptonly.${PID}" || true
+ fi
+
export D=${IMAGE_ROOTFS}
export OFFLINE_ROOT=${IMAGE_ROOTFS}
export IPKG_OFFLINE_ROOT=${IMAGE_ROOTFS}