[yocto] [meta-raspberrypi][PATCH] sdcard_image-rpi.bbclass: Allow optional compression

Paul Barker paul at paulbarker.me.uk
Fri Aug 23 02:49:58 PDT 2013


On 21 August 2013 23:41, Andrei Gherzan <andrei at gherzan.ro> wrote:
> On Wed, Aug 21, 2013 at 11:12 PM, Paul Barker <paul at paulbarker.me.uk> wrote:
>>
>> Setting it to one of the other listed values will cause the SDIMG to
>> be re-named. I think the code is as I intended, the documentation
>> comment needs to be corrected though.
>>
>
> You are right. The comment confused me. So only if the COMPRESSION is
> "gzip", "bzip2" or "xz" the SDIMG will be renamed. Understood now.
>
> On the other hand, would it make sense to keep both uncompressed and
> compressed images?
>

I was just going with the default behaviour of the tools, I can add
the '-k' argument to all of them to keep the uncompressed file.

>
> Another idea. Would be a great feature to have a tool that would configure
> the build interactively. Something like:
>
> # configure-build
> Want to have SD image compressed compressed? "y/n" y
> What compression you want? "x/y/z" x
> etc
> etc
>
> This script would just edit local.conf. This is because we defined a couple
> of variables for this board - i would say pretty many (codecs keys, GPU, mem
> etc etc) and it's pretty confusing for people who see this for the first
> time. What do you think?
>

local.conf could hold settings which relate to the distro or other
layers so I wouldn't want to write a script which directly edits it. I
think a well-documented sample file would be a good idea. Probably
can't call it local.conf.sample as it would only relate to raspberrypi
settings and the intention would be that you create your local.conf
from local.conf.sample and from this new file.

-- 
Paul Barker

Email: paul at paulbarker.me.uk
http://www.paulbarker.me.uk



More information about the yocto mailing list