Skip to content
Snippets Groups Projects
Commit 30a1dcad authored by Simon Glass's avatar Simon Glass Committed by Anatolij Gustschin
Browse files

Makefile: Add rules to build in .ttf files


Add rules to allow TrueType files to be compiled into U-Boot for use on
the video console.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 8340ef62
No related branches found
No related tags found
Loading
......@@ -300,6 +300,27 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
# Fonts
# ---------------------------------------------------------------------------
# Generate an assembly file to wrap the font data
quiet_cmd_S_ttf= TTF $@
# Modified for U-Boot
cmd_S_ttf= \
( \
echo '.section .rodata.ttf.init,"a"'; \
echo '.balign 16'; \
echo '.global __ttf_$(*F)_begin'; \
echo '__ttf_$(*F)_begin:'; \
echo '.incbin "$<" '; \
echo '__ttf_$(*F)_end:'; \
echo '.global __ttf_$(*F)_end'; \
echo '.balign 16'; \
) > $@
$(obj)/%.S: $(src)/%.ttf
$(call cmd,S_ttf)
# ACPI
# ---------------------------------------------------------------------------
quiet_cmd_acpi_c_asl= ASL $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment