From fe7eb79225aa51bc919357f395564eb4f5e0e6a6 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Fri, 4 Jan 2008 12:59:28 +0000 Subject: em-x270: generate ext2 image for Compulab runtime updater git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3407 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/conf/machine/em-x270.conf | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'meta/conf') diff --git a/meta/conf/machine/em-x270.conf b/meta/conf/machine/em-x270.conf index b36c03ecd..c45b9fb6b 100644 --- a/meta/conf/machine/em-x270.conf +++ b/meta/conf/machine/em-x270.conf @@ -17,18 +17,23 @@ require conf/machine/include/tune-xscale.inc # Uncomment this to use iwmmxt optimizations. Remove the above xscale stuff first # require conf/machine/include/tune-iwmmxt.inc +IMAGE_DEPENDS_jffs2 += " genext2fs-native " ROOT_FLASH_SIZE = "128" IMAGE_CMD_jffs2 = " \ mkfs.jffs2 --root=${IMAGE_ROOTFS} \ --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ --eraseblock=0x20000 --pad --faketime -n; \ sumtool -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \ - -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs-summary.jffs2 \ - -e 0x20000 -p; \ - cd ${DEPLOY_DIR_IMAGE}; \ - rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2; \ - ln -fs ${IMAGE_NAME}.rootfs-summary.jffs2 \ - ${IMAGE_LINK_NAME}.rootfs-summary.jffs2 \ + -o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs-summary.jffs2 \ + -e 0x20000 -p; \ + cd ${DEPLOY_DIR_IMAGE}; \ + ln -fs ${IMAGE_NAME}.rootfs-summary.jffs2 ${IMAGE_LINK_NAME}.rootfs-summary.jffs2; \ + mkdir -p ${WORKDIR}/img; \ + install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.rootfs-summary.jffs2 \ + ${WORKDIR}/img/em-x270-angstrom.jffs2; \ + install -m 0644 ${DEPLOY_DIR_IMAGE}/uImage-em-x270.jffs2 ${WORKDIR}/img/em-x270-kernel.jffs2; \ + size=`du -sk ${WORKDIR}/img | cut -f 1` ; ((size *= 120)) ; ((size /= 100)) ; \ + genext2fs -d ${WORKDIR}/img -b $size ${DEPLOY_DIR_IMAGE}/updater-em-x270.ext2 \ " #VOLATILE_STORAGE_SIZE = "128" -- cgit v1.2.3