diff options
Diffstat (limited to 'meta/unslung-standard-image.oe')
-rw-r--r-- | meta/unslung-standard-image.oe | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/unslung-standard-image.oe b/meta/unslung-standard-image.oe new file mode 100644 index 0000000000..6af8c6b97d --- /dev/null +++ b/meta/unslung-standard-image.oe @@ -0,0 +1,41 @@ +PR = "r1" + +IMAGE_LINGUAS = "" +USE_DEVFS = "1" + +UNSLUNG_BASE_DEPENDS = "slingbox ipkg wget" +UNSLUNG_BASE_PACKAGES = "slingbox ipkg wget" + +IMAGE_VARIANT ?= "standard" + +export IMAGE_BASENAME = "unslung-${IMAGE_VARIANT}" + +IPKG_INSTALL = "unslung-${IMAGE_VARIANT}-ramdisk \ + ${UNSLUNG_BASE_PACKAGES} ${UNSLUNG_EXTRA_PACKAGES}" + +DEPENDS = "unslung-${IMAGE_VARIANT}-kernel unslung-${IMAGE_VARIANT}-ramdisk \ + ${UNSLUNG_BASE_DEPENDS} ${UNSLUNG_EXTRA_DEPENDS}" + +RDEPENDS = "${UNSLUNG_BASE_PACKAGES} ${UNSLUNG_EXTRA_RDEPENDS}" + +RRECOMMENDS = "${UNSLUNG_EXTRA_RRECOMMENDS}" + +UNSLUNG_DEVICE_TABLE = "${@oe.which(oe.data.getVar('OEPATH', d, 1), 'files/device_table-unslung.txt')}" + +IMAGE_FSTYPES = "ext2.gz jffs2" +EXTRA_IMAGECMD_ext2.gz = "-f ${UNSLUNG_DEVICE_TABLE}" +EXTRA_IMAGECMD_jffs2 = "--pad --big-endian --eraseblock=0x20000" + +IMAGE_PREPROCESS_COMMAND += "unslung_clean_image; " + +inherit image_ipk + +# Note that anything in this function must be repeatable without having to rebuild the rootfs +unslung_clean_image () { + + makedevs -r ${IMAGE_ROOTFS} -D ${UNSLUNG_DEVICE_TABLE} + + # Remove info from the local feed used to build the image + rm -rf ${IMAGE_ROOTFS}/usr/lib/ipkg/lists/* + +} |