commit | 0b7dda1c8bcc7b29b417e4c9ca789f19660dac06 | [log] [tgz] |
---|---|---|
author | Jayvik Desai <jayvik@google.com> | Thu Jun 20 13:41:32 2024 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 25 16:40:27 2024 |
tree | 908a2c07d63cc4906bf919b85c10c04f34a17d55 | |
parent | a454725e038a3a7108b07a2d1a82127483a9fce2 [diff] |
boards.yaml: Add split_ratio to trulo Adding split_ratio=100 to reduce RO CBFS usage. BUG=none TEST=Build Change-Id: I6b362e2f8aeba0a7f70a2d8f2fc67dd541d34926 Signed-off-by: Jayvik Desai <jayvik@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bmpblk/+/5645642 Reviewed-by: Kapil Porwal <kapilporwal@chromium.org> Reviewed-by: Shelley Chen <shchen@chromium.org>
Note: Because the bitmaps are stored in RO firmware, back-porting any new bitmaps to already shipped devices is not possible.
To build images for board $BOARD with default locales, do:
(chroot) cd ~/trunk/src/platform/bmpblk (chroot) BOARD="$BOARD" make
To override the locale list defined in boards.yaml
(for instance, to build with only English locale to speed up testing flow), pass LOCALES=<locale-list>
as an environment variable. For example,
(chroot) LOCALES="en ja es" BOARD="$BOARD" make
The default output folder is ./build/$BOARD
. To override output folder, specify OUTPUT=<path_to_output>
as an environment variable.
Add an entry for the new board in boards.yaml
. See the description at the top of boards.yaml
. For example, add the following for board link
:
link: screen: [1920, 1080] dpi: 112 # List of locales to include. locales: [en, es-419, pt-BR, fr, es, it, de, nl, da, 'no', sv, ko, he] # Right-to-left locales. rtl: [he]
Note: The locale no
will be interpreted as boolean False in YAML, so we need to quote it as 'no'
.
If your configuration is exactly the same as existing ones, add your new board into the existing entry. For example:
asurada,link: screen: [1920, 1080] dpi: 112 # DO NOT COPY-PASTE -- follow instructions at top of file.
After emerging chromeos-bmpblk
, bitmaps will be stored in the following files:
vbgfx.bin
: archive of generic (locale-independent) bitmapslocale_${LOCALE}.bin
: archive of bitmaps for locale ${LOCALE}
font.bin
: archive of glyph bitmapsThese archive files for Chromium OS firmware will be created using the archive
command from coreboot utils (src/third_party/coreboot/util/archive
). These files will end up being stored in the FMAP region COREBOOT in the image.
To show these files in an image $IMAGE, run:
cbfstool $IMAGE print -r COREBOOT
To extract an archive $NAME from an image as $FILE, run:
cbfstool $IMAGE extract -r COREBOOT -n $NAME -f $FILE
Also see the firmware UI troubleshooting doc for bitmap-related issues.