Skip to content

Commit

Permalink
Move protocol makefiles into their respective folders (qmk#21332)
Browse files Browse the repository at this point in the history
* Move protocol makefiles into their respective folders

* Fix USB-USB converter
  • Loading branch information
fauxpark authored and thismarvin committed Sep 27, 2023
1 parent aaef912 commit 8ed36d3
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions builddefs/build_keyboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion tmk_core/protocol.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8ed36d3

Please sign in to comment.