[OE-core] [PATCH] image_types: Refactor compression code into a generic compression solution

Andrea Adami andrea.adami at gmail.com
Tue Feb 28 23:41:55 UTC 2012


On Tue, Feb 28, 2012 at 9:19 PM, Koen Kooi <koen at dominion.thruhere.net> wrote:
>
> Op 27 feb. 2012, om 13:43 heeft Richard Purdie het volgende geschreven:
>
>> The current approach of adding each different compressed image type doesn't
>> scale. This patch changes the code so compressed images for each form are
>> automatically available using the form <type>.<compression type> in
>> IMAGE_FSTYPES. This doesn't change any existing externally visible behaviour
>> and the image generation process becomes more efficient as a result too.
>
> There's a a few -f's missing in this patch, e.g. bz2 images now fail with:
>
> bzip2: ERROR: Function failed: do_rootfs (see /OE/tentacle/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/systemd-image-1.0-r0/temp/log.do_rootfs.3174 for further information)
> Output file Angstrom-systemd-image-eglibc-ipk-v2012.02-core-beagleboard.rootfs.tar.bz2 already exists.
>
> A quick look suggests at least bz2 and xz images can't get rebuilt.
>

Issues with cpio.lzma as well:

| ln: failed to create symbolic link
`/oe/oe-core/build/tmp-eglibc/deploy/images/initramfs-kexecboot-klibc-image-poodle.cpio.lzma':
File exists

Looking at run.do_rootfs I see runimagecmd is called twice.

In the log.do_rootfs there is also a strange

+ sed sERROR: Function failed: do_rootfs (see
/oe/oe-core/build/tmp-eglibc/work/poodle-oe-linux-gnueabi/initramfs-kexecboot-klibc-image-1.0-r0/temp/log.do_rootfs.31195
for further information)
/generic_//g


Regards

Andrea
> regards,
>
> Koen
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




More information about the Openembedded-core mailing list