diff options
Diffstat (limited to 'firmware/firmware.make')
-rw-r--r-- | firmware/firmware.make | 9 |
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 | ||
23 | FIRMLIB = $(BUILDDIR)/firmware/libfirmware.a | 23 | FIRMLIB = $(BUILDDIR)/firmware/libfirmware.a |
24 | 24 | ||
25 | SYSFONT = $(ROOTDIR)/fonts/08-Schumacher-Clean.bdf | 25 | ifeq ($(SYSFONT),) |
26 | SYSFONT = 08-Schumacher-Clean | ||
27 | endif | ||
28 | SYSFONTX = $(ROOTDIR)/fonts/$(SYSFONT).bdf | ||
26 | 29 | ||
27 | CLEANOBJS += $(BUILDDIR)/sysfont.* $(BUILDDIR)/version.* | 30 | CLEANOBJS += $(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 | ||