[oe] [RFC] make building working zaurus images easier

Koen Kooi koen at dominion.kabel.utwente.nl
Thu Jul 26 12:11:57 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marcin wrote:

> Also we should use gzip compression for installkit tarballs as this will
> allow users to unpack them on devices (gzip is in busybox).

Koen Kooi schreef:

> I therefore want to propose 3 small scripts that can be run as EXTRA_IMAGECMD to make life
> a lot easier for both developers and users:
> 
> [beware of line wrapping]

For collie:

cd ${DEPLOY_DIR_IMAGE}
mkdir ${IMAGE_NAME}-installkit/
cp `ls zImage-2* | sort -b | uniq |tail -n1` ${IMAGE_NAME}-installkit/zImage.bin
cp `ls ${IMAGE_NAME}.rootfs*jffs2 | sort -b | uniq |tail -n1`
${IMAGE_NAME}-installkit/initrd.bin
tar czf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit.tar.gz
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/


 For c7x0/poodle/tosa

 #!/bin/sh > cd ${DEPLOY_DIR_IMAGE}
 mkdir ${IMAGE_NAME}-installkit/
 cp `ls zImage-2* | sort -b | uniq |tail -n1` ${IMAGE_NAME}-installkit/zImage.bin
 cp `ls ${IMAGE_NAME}.rootfs*jffs2 | sort -b | uniq |tail -n1`
 ${IMAGE_NAME}-installkit/initrd.bin
 cp updater.sh.${MACHINE} ${IMAGE_NAME}-installkit/updater.sh
 tar czf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit.tar.gz
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
 rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/


 For Spitz:

 #!/bin/sh
 cd ${DEPLOY_DIR_IMAGE}
 mkdir ${IMAGE_NAME}-installkit/
 cp `ls zImage-2* | sort -b | uniq |tail -n1` ${IMAGE_NAME}-installkit/zImage.bin
 cp `ls ${IMAGE_NAME}.rootfs*gz | sort -b | uniq |tail -n1`
 ${IMAGE_NAME}-installkit/hdimage1.tgz
 cp updater.sh.${MACHINE} ${IMAGE_NAME}-installkit/updater.sh
 cp gnu-tar ${IMAGE_NAME}-installkit/
 tar czf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit.tar.gz
${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/

> Comments/improvements/flames?


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGqI+NMkyGM64RGpERAh4MAJ0Zj+gfEm3ijOcrHDmGWIqxsG2LdACcDAcD
tuSqvMZvV73LpNIqhUhbjDo=
=2GJC
-----END PGP SIGNATURE-----




More information about the Openembedded-devel mailing list