From 651e6bcaa262895ecbba4290344b7b276fd7b81e Mon Sep 17 00:00:00 2001 From: fauxpark Date: Thu, 22 Jun 2023 12:12:48 +1000 Subject: [PATCH 1/2] Move protocol makefiles into their respective folders --- builddefs/build_keyboard.mk | 5 +++-- tmk_core/protocol/{ => arm_atsam}/arm_atsam.mk | 0 tmk_core/protocol/{ => chibios}/chibios.mk | 0 tmk_core/protocol/{ => lufa}/lufa.mk | 0 tmk_core/protocol/{ => usb_hid}/usb_hid.mk | 0 tmk_core/protocol/{ => vusb}/vusb.mk | 0 6 files changed, 3 insertions(+), 2 deletions(-) rename tmk_core/protocol/{ => arm_atsam}/arm_atsam.mk (100%) rename tmk_core/protocol/{ => chibios}/chibios.mk (100%) rename tmk_core/protocol/{ => lufa}/lufa.mk (100%) rename tmk_core/protocol/{ => usb_hid}/usb_hid.mk (100%) rename tmk_core/protocol/{ => vusb}/vusb.mk (100%) diff --git a/builddefs/build_keyboard.mk b/builddefs/build_keyboard.mk index 32e41e7d5b38..72c990abbba7 100644 --- a/builddefs/build_keyboard.mk +++ b/builddefs/build_keyboard.mk @@ -440,10 +440,11 @@ include $(PLATFORM_PATH)/$(PLATFORM_KEY)/platform.mk -include $(PLATFORM_PATH)/$(PLATFORM_KEY)/flash.mk ifneq ($(strip $(PROTOCOL)),) - include $(TMK_PATH)/protocol/$(strip $(shell echo $(PROTOCOL) | tr '[:upper:]' '[:lower:]')).mk +PROTOCOL_KEY = $(strip $(shell echo $(PROTOCOL) | tr '[:upper:]' '[:lower:]')) else - include $(TMK_PATH)/protocol/$(PLATFORM_KEY).mk +PROTOCOL_KEY = $(PLATFORM_KEY) endif +include $(TMK_PATH)/protocol/$(PROTOCOL_KEY)/$(PROTOCOL_KEY).mk # Setup definitions based on the selected MCU $(eval $(call add_qmk_prefix_defs,MCU_ORIG,MCU)) diff --git a/tmk_core/protocol/arm_atsam.mk b/tmk_core/protocol/arm_atsam/arm_atsam.mk similarity index 100% rename from tmk_core/protocol/arm_atsam.mk rename to tmk_core/protocol/arm_atsam/arm_atsam.mk diff --git a/tmk_core/protocol/chibios.mk b/tmk_core/protocol/chibios/chibios.mk similarity index 100% rename from tmk_core/protocol/chibios.mk rename to tmk_core/protocol/chibios/chibios.mk diff --git a/tmk_core/protocol/lufa.mk b/tmk_core/protocol/lufa/lufa.mk similarity index 100% rename from tmk_core/protocol/lufa.mk rename to tmk_core/protocol/lufa/lufa.mk diff --git a/tmk_core/protocol/usb_hid.mk b/tmk_core/protocol/usb_hid/usb_hid.mk similarity index 100% rename from tmk_core/protocol/usb_hid.mk rename to tmk_core/protocol/usb_hid/usb_hid.mk diff --git a/tmk_core/protocol/vusb.mk b/tmk_core/protocol/vusb/vusb.mk similarity index 100% rename from tmk_core/protocol/vusb.mk rename to tmk_core/protocol/vusb/vusb.mk From 2c6a79119b76b091f52547a58e5848bec3b33ed2 Mon Sep 17 00:00:00 2001 From: fauxpark Date: Thu, 22 Jun 2023 12:29:06 +1000 Subject: [PATCH 2/2] Fix USB-USB converter --- tmk_core/protocol.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmk_core/protocol.mk b/tmk_core/protocol.mk index d3f15c458876..2ae7aa9abea5 100644 --- a/tmk_core/protocol.mk +++ b/tmk_core/protocol.mk @@ -99,7 +99,7 @@ ifeq ($(strip $(SHARED_EP_ENABLE)), yes) endif ifeq ($(strip $(USB_HID_ENABLE)), yes) - include $(TMK_DIR)/protocol/usb_hid.mk + include $(TMK_DIR)/protocol/usb_hid/usb_hid.mk endif # Search Path