[oe] [RFC] make building working zaurus images easier
Koen Kooi
koen at dominion.kabel.utwente.nl
Fri Jul 27 09:54:05 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael Krelin schreef:
>>>> 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.
Good point. The script is now at http://bugs.openembedded.org/show_bug.cgi?id=2690 for
review and improvements.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFGqcC9MkyGM64RGpERAgdoAJ9ZX9oVInVtBvldsTOCacfeHBZbfwCgsWqM
2l4C+orHeT5qlfLSmGClq9M=
=XTtS
-----END PGP SIGNATURE-----
More information about the Openembedded-devel
mailing list