summaryrefslogtreecommitdiff
path: root/supervisor/supervisor.mk
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-01-24 17:25:08 -0800
committerScott Shawcroft <scott@tannewt.org>2019-01-31 11:42:13 -0800
commit590e0291989c8df150b9b8aff960049903b56ac2 (patch)
tree65622a83faa0e1519a1ec75dbce5a20b846d3c69 /supervisor/supervisor.mk
parentfb0970ec6e2fee42d748718557c35fe84a4d0ce5 (diff)
Begin font parsing and packing for terminal
Diffstat (limited to 'supervisor/supervisor.mk')
-rw-r--r--supervisor/supervisor.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/supervisor/supervisor.mk b/supervisor/supervisor.mk
index 0bbfd9141..174abd9d9 100644
--- a/supervisor/supervisor.mk
+++ b/supervisor/supervisor.mk
@@ -71,7 +71,7 @@ else
CFLAGS += -DUSB_AVAILABLE
endif
-SUPERVISOR_O = $(addprefix $(BUILD)/, $(SRC_SUPERVISOR:.c=.o))
+SUPERVISOR_O = $(addprefix $(BUILD)/, $(SRC_SUPERVISOR:.c=.o)) $(BUILD)/autogen_display_resources.o
$(BUILD)/supervisor/shared/translate.o: $(HEADER_BUILD)/qstrdefs.generated.h
@@ -90,3 +90,12 @@ autogen_usb_descriptor.intermediate: ../../tools/gen_usb_descriptor.py Makefile
--serial_number_length $(USB_SERIAL_NUMBER_LENGTH)\
--output_c_file $(BUILD)/autogen_usb_descriptor.c\
--output_h_file $(BUILD)/genhdr/autogen_usb_descriptor.h
+
+CIRCUITPY_DISPLAY_FONT = "fonts/test.bdf"
+
+$(BUILD)/autogen_display_resources.c: ../../tools/gen_display_resources.py $(HEADER_BUILD)/qstrdefs.generated.h Makefile | $(HEADER_BUILD)
+ $(STEPECHO) "GEN $@"
+ $(Q)install -d $(BUILD)/genhdr
+ $(Q)$(PYTHON3) ../../tools/gen_display_resources.py \
+ --font $(CIRCUITPY_DISPLAY_FONT) \
+ --output_c_file $(BUILD)/autogen_display_resources.c