commit | 220ab35e1df4eb30e231d881db24bd5c247754cf | [log] [tgz] |
---|---|---|
author | Hsuan Ting Chen <roccochen@chromium.org> | Tue May 16 09:30:09 2023 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 17 06:41:38 2023 |
tree | 274dda7560655e7d6917124567f7bd43be6f385e | |
parent | af1351504c2fceab78009fd08f2c4862f4283d9e [diff] |
build.py: Fix NoneType error in get_config_with_defaults() The `config.get()` method will return `None` if a key does not contain a config. This will cause the `config.update()` method to fail. To fix this, add an additional check before updating the config, similar to what is done in the `load_board_config()` method. This bug has not caused any problems now, as all of the current keys contain non-empty configs. However, there will be such keys introduced recently in the following CLs. Therefore, it is important to fix the bug beforehand. BUG=none BRANCH=brya TEST=BOARD=brya make Change-Id: Ia7b12575030eb3a8c1e6b469bfa7d664a938a2de Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bmpblk/+/4537235 Tested-by: Hsuan Ting Chen <roccochen@chromium.org> Commit-Queue: Hsuan Ting Chen <roccochen@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Hsuan Ting Chen <roccochen@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.