summaryrefslogtreecommitdiff
path: root/firmware/firmware.make
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/firmware.make')
-rw-r--r--firmware/firmware.make9
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/firmware.make b/firmware/firmware.make
index 50b58af794..e2babca594 100644
--- a/firmware/firmware.make
+++ b/firmware/firmware.make
@@ -22,7 +22,10 @@ OTHER_SRC += $(FIRMLIB_SRC)
22 22
23FIRMLIB = $(BUILDDIR)/firmware/libfirmware.a 23FIRMLIB = $(BUILDDIR)/firmware/libfirmware.a
24 24
25SYSFONT = $(ROOTDIR)/fonts/08-Schumacher-Clean.bdf 25ifeq ($(SYSFONT),)
26SYSFONT = 08-Schumacher-Clean
27endif
28SYSFONTX = $(ROOTDIR)/fonts/$(SYSFONT).bdf
26 29
27CLEANOBJS += $(BUILDDIR)/sysfont.* $(BUILDDIR)/version.* 30CLEANOBJS += $(BUILDDIR)/sysfont.* $(BUILDDIR)/version.*
28 31
@@ -37,10 +40,10 @@ $(FIRMLIB): $(FIRMLIB_OBJ)
37 $(SILENT)$(shell rm -f $@) 40 $(SILENT)$(shell rm -f $@)
38 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null 41 $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
39 42
40$(BUILDDIR)/sysfont.h: $(SYSFONT) $(TOOLS) $(BUILDDIR)/firmware/common/config.o 43$(BUILDDIR)/sysfont.h: $(SYSFONTX) $(TOOLS) $(BUILDDIR)/firmware/common/config.o
41 $(call PRINTS,CONVBDF $(subst $(ROOTDIR)/,,$<))$(TOOLSDIR)/convbdf -l $(MAXCHAR) -h -o $@ $< 44 $(call PRINTS,CONVBDF $(subst $(ROOTDIR)/,,$<))$(TOOLSDIR)/convbdf -l $(MAXCHAR) -h -o $@ $<
42 45
43$(BUILDDIR)/sysfont.o: $(SYSFONT) $(BUILDDIR)/sysfont.h 46$(BUILDDIR)/sysfont.o: $(SYSFONTX) $(BUILDDIR)/sysfont.h
44 $(call PRINTS,CONVBDF $(subst $(ROOTDIR)/,,$<))$(TOOLSDIR)/convbdf -l $(MAXCHAR) -c -o $(BUILDDIR)/sysfont.c $< 47 $(call PRINTS,CONVBDF $(subst $(ROOTDIR)/,,$<))$(TOOLSDIR)/convbdf -l $(MAXCHAR) -c -o $(BUILDDIR)/sysfont.c $<
45 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$(BUILDDIR)/sysfont.c))$(CC) $(CFLAGS) -c $(BUILDDIR)/sysfont.c -o $@ 48 $(call PRINTS,CC $(subst $(ROOTDIR)/,,$(BUILDDIR)/sysfont.c))$(CC) $(CFLAGS) -c $(BUILDDIR)/sysfont.c -o $@
46 49