From 436c5f4716bae47bf9ddddfe0cbaf595a3de46c7 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 6 Nov 2008 16:23:32 +0000 Subject: classes: Add mechanism to install packages into images only if they've been built --- meta/classes/rootfs_ipk.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/classes/rootfs_ipk.bbclass') diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index ce6dd797ec..07f418adbd 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} -- cgit v1.2.3