This patch refactors the `ux_locales_get_text` API to handle fallback text (English) internally, rather than relying on the caller. It introduces message IDs for lookups, enabling the API to locate both the UX locale name and fallback text based on the ID. With this patch, `ux_locales_get_text` API locates UX locales message based on message ID. `ux_locales_get_text` retrieves fallback text message depending upon the message ID if UX locales is not available. This centralizes fallback handling and simplifies adding future messages without per-SoC duplication. BUG=b:339673254 TEST=Built and booted google/brox. Verified eSOL display. Change-Id: I4952802396265b9ee8d164d6e43a7f2b3599d6c0 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86283 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Julius Werner <jwerner@chromium.org> |
||
|---|---|---|
| .. | ||
| b64_decode-test.c | ||
| bootmem-test.c | ||
| cbfs-lookup-test.c | ||
| cbfs-verification-test.c | ||
| cbmem_console-test.c | ||
| cbmem_stage_cache-test.c | ||
| coreboot_table-test.c | ||
| crc_byte-test.c | ||
| dimm_info_util-test.c | ||
| edid-test.c | ||
| fmap-test.c | ||
| hexstrtobin-test.c | ||
| imd-test.c | ||
| imd_cbmem-test.c | ||
| lib-test.c | ||
| libgcc-test.c | ||
| lzma-test.c | ||
| Makefile.mk | ||
| malloc-test.c | ||
| memchr-test.c | ||
| memcmp-test.c | ||
| memcpy-test.c | ||
| memmove-test.c | ||
| memrange-test.c | ||
| memset-test.c | ||
| region_file-test.c | ||
| rtc-test.c | ||
| spd_cache-test.c | ||
| stack-test.c | ||
| string-test.c | ||
| timestamp-test.c | ||
| uuid-test.c | ||
| ux_locales-test.c | ||