[oe] [meta-handheld][PATCH] zaurus.inc: adapt jffs2 and sum.jffs2 to changes in oe-core
Martin Jansa
martin.jansa at gmail.com
Sun Dec 11 09:29:41 UTC 2011
On Thu, Dec 08, 2011 at 05:06:30PM +0100, Andrea Adami wrote:
> * in oe-core jffs2 summary has been added to image_types.bbclass and
> * IMAGE_CMD_jffs2 now includes '-n' to skip cleanmarkers node creation
> * so we need to customize only padding, endianness and compression mode
> * While there remove compression settings which are handled in kernel.
> * This allows us to use the same string for mkfs.jffs2 and for sumtool.
>
> Signed-off-by: Andrea Adami <andrea.adami at gmail.com>
> ---
> conf/machine/include/zaurus.inc | 13 +++----------
> 1 files changed, 3 insertions(+), 10 deletions(-)
>
> diff --git a/conf/machine/include/zaurus.inc b/conf/machine/include/zaurus.inc
> index b488f37..0a9b1c5 100644
> --- a/conf/machine/include/zaurus.inc
> +++ b/conf/machine/include/zaurus.inc
> @@ -9,18 +9,11 @@ ERASEBLOCKSIZE_akita = "0x20000"
> # C3100 and C3200 have same 128MiB NAND device as akita
> ERASEBLOCKSIZE_spitz = "0x20000"
>
> -IMAGE_FSTYPES += "jffs2 tar.gz"
> +IMAGE_FSTYPES += "tar.gz jffs2 sum.jffs2"
Do you really need jffs2 if there is sum.jffs2? IMAGE_CMD_sum.jffs2
produces both now, doesn't it?
IIRC there was discussion about using += IMAGE_FSTYPES, I don't remember
the result, but can we use ?= here? Just to make easier for someone to
limit images in local.conf ie just
IMAGE_FSTYPES = "tar.gz"
> # kernel now supports favourlzo
> -IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime -m favourlzo \
> - --output=${T}/${IMAGE_NAME}.rootfs.jffs2 --pad --little-endian --eraseblock=${ERASEBLOCKSIZE} -n \
> - && sumtool -i ${T}/${IMAGE_NAME}.rootfs.jffs2 \
> - -o ${T}/${IMAGE_NAME}.rootfs.jffs2.summary \
> - --eraseblock=${ERASEBLOCKSIZE} -l -p; \
> - cat ${T}/${IMAGE_NAME}.rootfs.jffs2 > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2; \
> - rm ${T}/${IMAGE_NAME}.rootfs.jffs2; \
> - cat ${T}/${IMAGE_NAME}.rootfs.jffs2.summary > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.summary.jffs2; \
> - rm ${T}/${IMAGE_NAME}.rootfs.jffs2.summary;"
> +EXTRA_IMAGECMD_jffs2 = "-p -l --eraseblock=${ERASEBLOCKSIZE}"
> +EXTRA_IMAGECMD_sum.jffs2 = "${EXTRA_IMAGECMD_jffs2}"
>
> EXTRA_IMAGEDEPENDS += "zaurus-installer"
>
> --
> 1.7.3.4
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20111211/22bfebbe/attachment-0002.sig>
More information about the Openembedded-devel
mailing list