[oe] [RFC] make building working zaurus images easier
Michael Krelin
hacker at klever.net
Fri Jul 27 08:47:06 UTC 2007
>>> Michael Krelin schreef:
>>>> I have never looked into all this machinery, but since we have, e.g.
>>>> x11-image-spitz.tar.gz
>
> IMAGE_NAME = "${IMAGE_BASENAME}-${MACHINE}-${DATETIME}" :)
>
>>>> and zImage-spitz.bin symlinks, I'd guess that we
>>>> can do without these somewhat ugly when unnecessary `ls|sort|uniq|tail`
>>>> things, can't we?
>>> Won't tar package up the symlinks instead of the real files in that case?
>> Yes, but we can use readlink to work out the real file...
>
> How about this:
>
> cd ${DEPLOY_DIR_IMAGE}
> mkdir ${IMAGE_NAME}-installkit/
>
> # Get the latest kernel using the zImage-<machine>.bin symlink
> cp `readlink zImage-${MACHINE}.bin` ${IMAGE_NAME}-installkit/zImage.bin
hmm.. isn't that equivalent to
cp zImage-${MACHINE}.bin ${IMAGE_NAME}-installkit/zImage.bin
? cp surely will dereference symlink unless asked not to.
Love,
H
>
> if [ "${MACHINE}" = "spitz" ]; then
> cp gnu-tar ${IMAGE_NAME}-installkit/
> cp ${IMAGE_NAME}.rootfs.tar.gz ${IMAGE_NAME}-installkit/hdimage1.tgz
> else
> cp ${IMAGE_NAME}.rootfs.jffs2 ${IMAGE_NAME}-installkit/initrd.bin
> fi
>
> # All zaurus machines except collie need updater.sh
> if [ "${MACHINE}" != "collie" ]; then
> cp updater.sh.${MACHINE} ${IMAGE_NAME}-installkit/updater.sh
> fi
>
> tar czf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit.tgz {IMAGE_NAME}-installkit/
> rm -rf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}-installkit/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
>
> iD8DBQFGqawcMkyGM64RGpERAvEQAKC3czWwnPBjw6gvh06AcVj3aoU7pQCgvJpc
> hhLFEF/cZBgUB9TGMZMPkFk=
> =/QP0
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list