summaryrefslogtreecommitdiff
path: root/supervisor/supervisor.mk
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-09-03 14:44:46 -0400
committerDan Halbert <halbert@halwitz.org>2019-09-03 14:44:46 -0400
commit42f5edbd331b27c7096f57da2affd7561287c17f (patch)
treea7d86861f2b2e64ea673ec658f503eb8857d15e8 /supervisor/supervisor.mk
parent1d973a08038148ce20aaa43863721df6328318b7 (diff)
WIP
Diffstat (limited to 'supervisor/supervisor.mk')
-rw-r--r--supervisor/supervisor.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/supervisor/supervisor.mk b/supervisor/supervisor.mk
index 2d50e7a8b..016188dfd 100644
--- a/supervisor/supervisor.mk
+++ b/supervisor/supervisor.mk
@@ -81,6 +81,14 @@ else
CFLAGS += -DUSB_AVAILABLE
endif
+ifndef USB_DEVICES
+USB_DEVICES = "CDC,MSC,AUDIO,HID"
+endif
+
+ifndef USB_HID_DEVICES
+USB_HID_DEVICES = "KEYBOARD,MOUSE,CONSUMER,GAMEPAD"
+endif
+
SUPERVISOR_O = $(addprefix $(BUILD)/, $(SRC_SUPERVISOR:.c=.o)) $(BUILD)/autogen_display_resources.o
$(BUILD)/supervisor/shared/translate.o: $(HEADER_BUILD)/qstrdefs.generated.h
@@ -98,6 +106,8 @@ autogen_usb_descriptor.intermediate: ../../tools/gen_usb_descriptor.py Makefile
--vid $(USB_VID)\
--pid $(USB_PID)\
--serial_number_length $(USB_SERIAL_NUMBER_LENGTH)\
+ --devices $(USB_DEVICES) \
+ --hid_devices $(USB_HID_DEVICES) \
--output_c_file $(BUILD)/autogen_usb_descriptor.c\
--output_h_file $(BUILD)/genhdr/autogen_usb_descriptor.h