commit bbd18407c5beb5c625f19d36941b99d89a112151
parent d315f8801413aaf3c7013bff05a75b38a5f36e3a
Author: Louis Burda <quent.burda@gmail.com>
Date: Wed, 28 Dec 2022 13:36:54 +0100
Allow forcing split role
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -11,6 +11,10 @@ TINYUSB_FILES = $(TINYUSB_PATH)/hw/bsp/family_support.cmake
CMAKE_FLAGS = -DFAMILY=$(FAMILY) -DPICO_SDK_PATH=$(PICO_SDK_PATH)
CMAKE_FLAGS += -DSPLIT_SIDE=$(SPLIT_SIDE) $(CMAKE_FLAGS_LEFT_EXTRA)
+ifdef ROLE
+SPLIT_ROLE = $(shell echo "$(ROLE)" | tr a-z A-Z)
+CMAKE_FLAGS += -DSPLIT_ROLE=$(SPLIT_ROLE)
+endif
all: left right