diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-24 14:32:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-25 16:34:24 +0000 |
commit | fd42d1ca776258ed7ad45d77a98606eaf6f46944 (patch) | |
tree | fa40c5d23fdec2423ee14dae6d1d1767a3f5465f /meta | |
parent | ed41be01dce170e4e8f9532f4aaa635204278dd7 (diff) | |
download | poky-fd42d1ca776258ed7ad45d77a98606eaf6f46944.tar.gz |
image_types.bbclass: Drop IMAGE_EXTRA_OPTION in favour of the more standard EXTRA_IMAGECMD
(From OE-Core rev: 3c534247e08700eb18b27886d80e874006ee0cb8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image_types.bbclass | 13 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 3 |
2 files changed, 9 insertions, 7 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass index 5c9bcd130d..f11a7eda72 100644 --- a/meta/classes/image_types.bbclass +++ b/meta/classes/image_types.bbclass | |||
@@ -23,21 +23,21 @@ runimagecmd () { | |||
23 | IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${EXTRA_IMAGECMD}" | 23 | IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 ${EXTRA_IMAGECMD}" |
24 | IMAGE_CMD_yaffs2 = "mkyaffs2image ${EXTRA_IMAGECMD} ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.yaffs2" | 24 | IMAGE_CMD_yaffs2 = "mkyaffs2image ${EXTRA_IMAGECMD} ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.yaffs2" |
25 | IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}" | 25 | IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}" |
26 | IMAGE_CMD_ext2 = "genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${IMAGE_EXTRA_OPTION} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD}" | 26 | IMAGE_CMD_ext2 = "genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2" |
27 | IMAGE_CMD_ext2.gz () { | 27 | IMAGE_CMD_ext2.gz () { |
28 | rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz | 28 | rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz |
29 | genext2fs -b ${IMAGE_ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${IMAGE_EXTRA_OPTION} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 ${EXTRA_IMAGECMD} | 29 | genext2fs -b ${IMAGE_ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 |
30 | gzip -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 | 30 | gzip -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2 |
31 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz | 31 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext2.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext2.gz |
32 | rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz | 32 | rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz |
33 | } | 33 | } |
34 | IMAGE_CMD_ext3 () { | 34 | IMAGE_CMD_ext3 () { |
35 | genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${IMAGE_EXTRA_OPTION} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 ${EXTRA_IMAGECMD} | 35 | genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 |
36 | tune2fs -j ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 | 36 | tune2fs -j ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3 |
37 | } | 37 | } |
38 | IMAGE_CMD_ext3.gz () { | 38 | IMAGE_CMD_ext3.gz () { |
39 | rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz | 39 | rm -rf ${DEPLOY_DIR_IMAGE}/tmp.gz && mkdir ${DEPLOY_DIR_IMAGE}/tmp.gz |
40 | genext2fs -b ${IMAGE_ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${IMAGE_EXTRA_OPTION} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3 ${EXTRA_IMAGECMD} | 40 | genext2fs -b ${IMAGE_ROOTFS_SIZE} -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3 |
41 | tune2fs -j ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3 | 41 | tune2fs -j ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3 |
42 | gzip -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3 | 42 | gzip -f -9 ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3 |
43 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3.gz | 43 | mv ${DEPLOY_DIR_IMAGE}/tmp.gz/${IMAGE_NAME}.rootfs.ext3.gz ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3.gz |
@@ -65,6 +65,11 @@ IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${DEPLOY_DIR_IMAGE}/${IMAGE_ | |||
65 | EXTRA_IMAGECMD = "" | 65 | EXTRA_IMAGECMD = "" |
66 | EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x40000" | 66 | EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x40000" |
67 | EXTRA_IMAGECMD_yaffs2 = "1" | 67 | EXTRA_IMAGECMD_yaffs2 = "1" |
68 | # Change these if you want default genext2fs behavior (i.e. create minimal inode number) | ||
69 | EXTRA_IMAGECMD_ext2 ?= "-i 8192" | ||
70 | EXTRA_IMAGECMD_ext2.gz ?= "-i 8192" | ||
71 | EXTRA_IMAGECMD_ext3 ?= "-i 8192" | ||
72 | EXTRA_IMAGECMD_ext3.gz ?= "-i 8192" | ||
68 | 73 | ||
69 | IMAGE_DEPENDS = "" | 74 | IMAGE_DEPENDS = "" |
70 | IMAGE_DEPENDS_jffs2 = "mtd-utils-native" | 75 | IMAGE_DEPENDS_jffs2 = "mtd-utils-native" |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 8e89945096..6b6b2ee21c 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -352,9 +352,6 @@ IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}" | |||
352 | # fixed extra space | 352 | # fixed extra space |
353 | IMAGE_OVERHEAD_FACTOR ?= 1.3 | 353 | IMAGE_OVERHEAD_FACTOR ?= 1.3 |
354 | 354 | ||
355 | # Comment this option if you want default genext2fs behavior (i.e. create minimal inode number) | ||
356 | IMAGE_EXTRA_OPTION ?= "-i 8192" | ||
357 | |||
358 | EXTRA_IMAGEDEPENDS = "" | 355 | EXTRA_IMAGEDEPENDS = "" |
359 | 356 | ||
360 | ################################################################## | 357 | ################################################################## |