[coreboot] [PATCH] cbfstool "add-lzma" method
kevin at koconnor.net
Mon Sep 6 17:27:06 CEST 2010
On Mon, Sep 06, 2010 at 11:40:10AM +0200, Patrick Georgi wrote:
> We could move compression out of subheader fields into the regular file
> header, so every file could be compressed (though for some it wouldn't
> be useful, eg. romstages or EC roms), and then make this a global variable.
> However, we had our reasons not to do this. Pick your poison
I wasn't looking to rework the CBFS format. Right now, it can be a
pain for SeaBIOS users to add certain compressed files like floppies.
Today they need to do:
$ lzma -zc /path/to/myfloppy.img > myfloppy.img.lzma
$ cbfstool coreboot.rom add myfloppy.img.lzma floppyimg/MyFloppy.lzma raw
Unfortunately, not everyone has the "lzma" tool, and some distro
versions of that tool are quirky.
So, I'm looking for a helper to cbfstool to make adding compressed raw
files simpler for end users.
I've also been thinking of adding another helper - "add-string". So a
user could do something like: "cbfstool ROM add-string '5500'
cfg/boot-menu-delay". As I think this may be a straight forward way
to pass simple config items into SeaBIOS.
More information about the coreboot