mirror of
https://github.com/qmk/qmk_firmware
synced 2024-12-22 16:36:58 +00:00
Assume only 32u4 boards can run 'promicro' converters (#23312)
This commit is contained in:
parent
977f667da9
commit
34374d2e2e
@ -5,8 +5,10 @@ ifneq ($(findstring yes, $(CTPC)$(CONVERT_TO_PROTON_C)),)
|
|||||||
$(call CATASTROPHIC_ERROR,The `CONVERT_TO_PROTON_C` and `CTPC` options are now deprecated. `CONVERT_TO=proton_c` should be used instead.)
|
$(call CATASTROPHIC_ERROR,The `CONVERT_TO_PROTON_C` and `CTPC` options are now deprecated. `CONVERT_TO=proton_c` should be used instead.)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# TODO: opt in rather than assume everything uses a pro micro
|
ifneq (,$(filter $(MCU),atmega32u4))
|
||||||
PIN_COMPATIBLE ?= promicro
|
# TODO: opt in rather than assume everything uses a pro micro
|
||||||
|
PIN_COMPATIBLE ?= promicro
|
||||||
|
endif
|
||||||
|
|
||||||
# Remove whitespace from any rule.mk provided vars
|
# Remove whitespace from any rule.mk provided vars
|
||||||
# - env cannot be overwritten but cannot have whitespace anyway
|
# - env cannot be overwritten but cannot have whitespace anyway
|
||||||
@ -16,6 +18,10 @@ ifneq ($(CONVERT_TO),)
|
|||||||
# stash so we can overwrite env provided vars if needed
|
# stash so we can overwrite env provided vars if needed
|
||||||
ACTIVE_CONVERTER=$(CONVERT_TO)
|
ACTIVE_CONVERTER=$(CONVERT_TO)
|
||||||
|
|
||||||
|
ifeq ($(PIN_COMPATIBLE),)
|
||||||
|
$(call CATASTROPHIC_ERROR,Converting to '$(CONVERT_TO)' not possible!)
|
||||||
|
endif
|
||||||
|
|
||||||
# glob to search each platfrorm and/or check for valid converter
|
# glob to search each platfrorm and/or check for valid converter
|
||||||
CONVERTER := $(wildcard $(PLATFORM_PATH)/*/converters/$(PIN_COMPATIBLE)_to_$(CONVERT_TO)/)
|
CONVERTER := $(wildcard $(PLATFORM_PATH)/*/converters/$(PIN_COMPATIBLE)_to_$(CONVERT_TO)/)
|
||||||
ifeq ($(CONVERTER),)
|
ifeq ($(CONVERTER),)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user