Quellcode durchsuchen

Add warning for CTCP/CONVERT_TO_PROTON_C. (#16782)

Nick Brassel vor 3 Jahren
Ursprung
Commit
ec4f655333
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  1. 11 0
      builddefs/converters.mk

+ 11 - 0
builddefs/converters.mk

@@ -1,8 +1,19 @@
+# Note for new boards -- CTPC and CONVERT_TO_PROTON_C are deprecated terms
+# and should not be replicated for new boards. These will be removed from
+# documentation as well as existing keymaps in due course.
 ifeq ($(strip $(CTPC)), yes)
 ifeq ($(strip $(CTPC)), yes)
     CONVERT_TO_PROTON_C=yes
     CONVERT_TO_PROTON_C=yes
 endif
 endif
 ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
 ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
     CONVERT_TO=proton_c
     CONVERT_TO=proton_c
+
+cpfirmware: ctpc_warning
+.INTERMEDIATE: ctpc_warning
+ctpc_warning: elf
+	$(info @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@)
+	$(info The `CONVERT_TO_PROTON_C` and `CTPC` options are soon to be deprecated.)
+	$(info Boards should be changed to use `CONVERT_TO=proton_c` instead.)
+	$(info @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@)
 endif
 endif
 
 
 # TODO: opt in rather than assume everything uses a pro micro
 # TODO: opt in rather than assume everything uses a pro micro