Tidy up use of CTPC (#19570)

This commit is contained in:
Joel Challis 2023-01-11 22:31:54 +00:00 committed by GitHub
parent 6576127b4c
commit b61654fb95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 10 additions and 13 deletions

View File

@ -14,7 +14,7 @@ The laser cutting file is ideal for Ponoko's P1 board size.
If you want to reflash the pre-installed firmware, use the `.bin` file for Proton C and the `.hex` file for Pro Micro builds. Flash with the QMK Toolbox or via the command line. If you want to reflash the pre-installed firmware, use the `.bin` file for Proton C and the `.hex` file for Pro Micro builds. Flash with the QMK Toolbox or via the command line.
Building for Proton C: `make ckeys/handwire_101:default CTPC=yes` Building for Proton C: `make ckeys/handwire_101:default CONVERT_TO=proton_c`
Building for Pro Micro: `make ckeys/handwire_101:default` Building for Pro Micro: `make ckeys/handwire_101:default`
Pre-built firmware files (and laser cutting case files) can be found here: https://github.com/c-keys/handwire Pre-built firmware files (and laser cutting case files) can be found here: https://github.com/c-keys/handwire

View File

@ -1,4 +1,4 @@
MOUSEKEY_ENABLE = yes MOUSEKEY_ENABLE = yes
ifneq (, $(findstring rev1, $(KEYBOARD))) ifneq (, $(findstring rev1, $(KEYBOARD)))
CTPC = yes CONVERT_TO=proton_c
endif endif

View File

@ -1,4 +1,4 @@
CTPC=yes CONVERT_TO=proton_c
CONSOLE_ENABLE = yes # Console for debug CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration COMMAND_ENABLE = yes # Commands for debug and configuration
AUDIO_ENABLE = yes AUDIO_ENABLE = yes

View File

@ -1 +1 @@
CTPC = yes CONVERT_TO=proton_c

View File

@ -12,7 +12,7 @@ To compile and flash to the board:
If you want to use this with a Proton C, do this instead: If you want to use this with a Proton C, do this instead:
make shapeshifter4060:debug CTPC=yes make shapeshifter4060:debug CONVERT_TO=proton_c
To just compile: To just compile:

View File

@ -13,7 +13,7 @@ Make example for this keyboard (after setting up your build environment):
For use with the Proton C For use with the Proton C
make shapeshifter4060:default CTPC=yes make shapeshifter4060:default CONVERT_TO=proton_c
Flashing example for this keyboard: Flashing example for this keyboard:

View File

@ -22,9 +22,6 @@ USE_ARM_CONFIG ?= no
ifeq ($(strip $(CONVERT_TO)), proton_c) ifeq ($(strip $(CONVERT_TO)), proton_c)
USE_ARM_CONFIG = yes USE_ARM_CONFIG = yes
endif endif
ifeq ($(strip $(CTPC)), yes)
USE_ARM_CONFIG = yes
endif
ifeq ($(strip $(MCU)), STM32F303) ifeq ($(strip $(MCU)), STM32F303)
USE_ARM_CONFIG = yes USE_ARM_CONFIG = yes
endif endif

View File

@ -141,14 +141,14 @@ void matrix_scan_cmd_tab(void) {
* *
* Sends 'qmk compile -kb keyboard -km keymap' command to compile firmware * Sends 'qmk compile -kb keyboard -km keymap' command to compile firmware
* Uses 'qmk flash' and resets keyboard, if flash_bootloader set to true * Uses 'qmk flash' and resets keyboard, if flash_bootloader set to true
* Sends CTPC and/or FORCE_LAYOUT parameters if built with those options * Sends CONVERT_TO and/or FORCE_LAYOUT parameters if built with those options
*/ */
void send_make_command(bool flash_bootloader) { void send_make_command(bool flash_bootloader) {
#ifdef FORCE_LAYOUT // Add layout string if built with FORCE_LAYOUT #ifdef FORCE_LAYOUT // Add layout string if built with FORCE_LAYOUT
SEND_STRING("FORCE_LAYOUT=" FORCE_LAYOUT " "); SEND_STRING("FORCE_LAYOUT=" FORCE_LAYOUT " ");
#endif #endif
#ifdef CONVERT_TO_PROTON_C // Add CTPC if built with CONVERT_TO_PROTON_C #ifdef CONVERT_TO_PROTON_C // Add CONVERT_TO if built with converter
SEND_STRING("CTPC=yes "); SEND_STRING("CONVERT_TO=proton_c ");
#endif #endif
SEND_STRING("qmk "); SEND_STRING("qmk ");
if (flash_bootloader) { if (flash_bootloader) {

View File

@ -45,7 +45,7 @@ VPATH += $(USER_PATH)/oled
# SERIAL_DRIVER = usart # SERIAL_DRIVER = usart
# AUDIO_ENABLE = no # AUDIO_ENABLE = no
# LTO_ENABLE = no # LTO_ENABLE = no
# CONVERT_TO_PROTON_C = yes # CONVERT_TO=proton_c
# so the keyboard's code doesn't add stuff we don't need. # so the keyboard's code doesn't add stuff we don't need.
# when we use our own oled renders. # when we use our own oled renders.