diff options
author | Simon Glass <sjg@chromium.org> | 2021-11-19 23:24:03 +0300 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2021-12-27 01:32:46 +0300 |
commit | 84e63abfff67b82253add1c05cfdd9700fada021 (patch) | |
tree | d01c1d08af4a6ccc48626c88f55d04e8d36d2393 /scripts | |
parent | 2c8ee30b9708f8d43b7d971568614d7a192ccf31 (diff) | |
download | u-boot-84e63abfff67b82253add1c05cfdd9700fada021.tar.xz |
video: Support showing the U-Boot logo
Show the U-Boot logo by default. This is only 7KB in size so seems like
a useful default for boards that enable a display.
If SPLASH_SCREEN is enabled, it is not enabled by default, so as not to
conflict with that feature.
Also disable it for tests, since we don't want to complicate the output.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.lib | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index b4e63bc0ca..77ad282bbe 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -374,6 +374,27 @@ cmd_S_ttf= \ $(obj)/%.S: $(src)/%.ttf $(call cmd,S_ttf) +# Splash logos +# --------------------------------------------------------------------------- + +# Generate an assembly file to wrap the splash data +quiet_cmd_S_splash= TTF $@ +# Modified for U-Boot +cmd_S_splash= \ +( \ + echo '.section .rodata.splash.init,"a"'; \ + echo '.balign 16'; \ + echo '.global __splash_$(*F)_begin'; \ + echo '__splash_$(*F)_begin:'; \ + echo '.incbin "$<" '; \ + echo '__splash_$(*F)_end:'; \ + echo '.global __splash_$(*F)_end'; \ + echo '.balign 16'; \ +) > $@ + +$(obj)/%.S: $(src)/%.bmp + $(call cmd,S_splash) + # EFI applications # A Makefile target *.efi is built as EFI application. # A Makefile target *_efi.S wraps *.efi as built-in EFI application. |