moved generic rules.mk configuration for converting to svlinky or xivik into general fingerpunch rules.mk

This commit is contained in:
Sadek Baroudi 2024-05-27 22:51:25 -07:00
parent a4d6dfdb54
commit 33818ac694
2 changed files with 30 additions and 8 deletions

View File

@ -9,15 +9,16 @@
MCU = atmega32u4
BOOTLOADER = atmel-dfu
ifeq ($(strip $(FP_CONVERT_TO)), svlinky_v01)
VIK_ENABLE = yes
OPT_DEFS += -DFP_CONVERT_TO_SVLINKY_V01
endif
## Moved to keyboards/fingerpunch/src/rules.mk
# ifeq ($(strip $(FP_CONVERT_TO)), svlinky_v01)
# VIK_ENABLE = yes
# OPT_DEFS += -DFP_CONVERT_TO_SVLINKY_V01
# endif
ifeq ($(strip $(FP_CONVERT_TO)), svlinky_v02)
VIK_ENABLE = yes
OPT_DEFS += -DFP_CONVERT_TO_SVLINKY_V02
endif
# ifeq ($(strip $(FP_CONVERT_TO)), svlinky_v02)
# VIK_ENABLE = yes
# OPT_DEFS += -DFP_CONVERT_TO_SVLINKY_V02
# endif
# $(info $(MCU))
# $(info $(BOOTLOADER))

View File

@ -9,6 +9,27 @@ SRC += keyboards/fingerpunch/src/fp.c \
keyboards/fingerpunch/src/fp_rgblight.c \
keyboards/fingerpunch/src/fp_rgb_matrix.c
ifeq ($(strip $(FP_CONVERT_TO)), svlinky_v01)
VIK_ENABLE = yes
OPT_DEFS += -DFP_CONVERT_TO_SVLINKY_V01
endif
ifeq ($(strip $(FP_CONVERT_TO)), svlinky_v02)
VIK_ENABLE = yes
OPT_DEFS += -DFP_CONVERT_TO_SVLINKY_V02
endif
ifeq ($(strip $(FP_CONVERT_TO)), xivik_v01)
VIK_ENABLE = yes
OPT_DEFS += -DFP_CONVERT_TO_XIVIK_V01
endif
ifeq ($(strip $(FP_CONVERT_TO)), xivik_v02)
VIK_ENABLE = yes
OPT_DEFS += -DFP_CONVERT_TO_XIVIK_V02
endif
ifeq ($(strip $(FP_CONVERT_TO)), xivik_v03)
VIK_ENABLE = yes
OPT_DEFS += -DFP_CONVERT_TO_XIVIK_V03
endif
ifeq ($(strip $(VIK_ENABLE)), yes)
include keyboards/fingerpunch/src/vik/rules.mk
OPT_DEFS += -DVIK_ENABLE