diff options
author | Bill Richardson <wfrichar@chromium.org> | 2011-05-18 18:25:31 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2011-05-19 08:37:14 -0700 |
commit | 8ba3d790e16c6e0759686b1bd8b25db778c3fc9f (patch) | |
tree | 3891482c5205a8093659965011775b4b18b39706 /firmware | |
parent | c3fb9a26903458c4f10c7470f2b98a5ddd7e133e (diff) | |
download | vboot-8ba3d790e16c6e0759686b1bd8b25db778c3fc9f.tar.gz |
Add locale_string decoder into BmpBlock.
This change adds an additional (optional) section to the .yaml file which
can enumerate the names of the locales. If present, these names will be
appended to the end of the bmpblock and the (new) locale_string_offset field
in the BmpBlockHeader will point to it. The names are encoded as a series of
null-terminated ASCII strings. The end of the series is indicated by an
extra null (for example, "en_US\0fr\0\0" names two locales).
The BIOS does not use this information. Factory or OOBE could use it to
select the initiale locale for the BIOS screens from the list of locales
included in the BmpBlock.
BUG=chrome-os-partner:3868
TEST=none
Change-Id: I34fd9ece27343d56ec43772de975ac6f2ad7c9a6
Reviewed-on: http://gerrit.chromium.org/gerrit/1156
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/include/bmpblk_header.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/include/bmpblk_header.h b/firmware/include/bmpblk_header.h index 09474d76..ea918cab 100644 --- a/firmware/include/bmpblk_header.h +++ b/firmware/include/bmpblk_header.h @@ -65,7 +65,8 @@ typedef struct BmpBlockHeader { uint32_t number_of_screenlayouts; /* Number of screen layouts in each * localization */ uint32_t number_of_imageinfos; /* Number of image infos */ - uint32_t reserved[3]; + uint32_t locale_string_offset; /* Offset of locale-translation string */ + uint32_t reserved[2]; } __attribute__((packed)) BmpBlockHeader; /* Screen layout, describing how to stack multiple images on screen */ |