lib: Fix bad whitespace in add_bmp_logo_file_to_cbfs_call
The multi-line `$(eval $(call ...))` for adding the default BMP logo contained extraneous whitespace. This included a leading space before `logo.bmp` and, more critically, a newline, tab, and non-breaking spaces before `CONFIG_BMP_LOGO_FILE_NAME`. This problematic whitespace was passed as part of the third argument (`$(3)`) to the `add_bmp_logo_file_to_cbfs` macro. Inside the macro, the deferred variable expansion `$$($(3))` would fail because it was searching for a variable name with leading non-breaking spaces. This resulted in the `logo.bmp-file` variable being set to an empty string, causing a build failure when the cbfs tool tried to find the logo file. This commit collapses the function call onto a single line to remove all line continuations and problematic whitespace, ensuring the correct, clean arguments are passed to the macro. BUG=b:444655145 TEST=Able to verify that 'logo.bmp' is added correctly to the CBFS, and also verify the FW splash screen visible on redrix device. Change-Id: Ia91b927dd0248909fc1c75534a7e7b00dab0fc09 Signed-off-by: Pranava Y N <pranavayn@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89292 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
ef0c650edf
commit
8953c772cf
1 changed files with 1 additions and 2 deletions
|
|
@ -442,8 +442,7 @@ $(2)-compression := $$(BMP_LOGO_COMPRESS_FLAG)
|
|||
endef
|
||||
|
||||
ifneq ($(CONFIG_HAVE_CUSTOM_BMP_LOGO),y)
|
||||
$(eval $(call add_bmp_logo_file_to_cbfs,CONFIG_BMP_LOGO, logo.bmp,\
|
||||
CONFIG_BMP_LOGO_FILE_NAME))
|
||||
$(eval $(call add_bmp_logo_file_to_cbfs,CONFIG_BMP_LOGO,logo.bmp,CONFIG_BMP_LOGO_FILE_NAME))
|
||||
endif
|
||||
|
||||
$(eval $(call add_bmp_logo_file_to_cbfs,CONFIG_PLATFORM_HAS_LOW_BATTERY_INDICATOR, \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue