aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-17 22:37:48 +0100
committerGitHub <noreply@github.com>2021-10-17 22:37:48 +0100
commitbd2f8ab88a8d1598cde47d3238ae8a49f1d7fbf9 (patch)
treed029505cd77fbf9a549017dbe28ef181632c226b /common_features.mk
parentbb80b2a40cd37042b25c721033c531f8c8d0cb16 (diff)
downloadqmk_firmware-bd2f8ab88a8d1598cde47d3238ae8a49f1d7fbf9.tar.gz
qmk_firmware-bd2f8ab88a8d1598cde47d3238ae8a49f1d7fbf9.zip
Infer more when building features (#13890)
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk83
1 files changed, 0 insertions, 83 deletions
diff --git a/common_features.mk b/common_features.mk
index 6a9754e58..aff91641e 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -44,11 +44,6 @@ else ifeq ($(strip $(DEBUG_MATRIX_SCAN_RATE_ENABLE)), api)
44 OPT_DEFS += -DDEBUG_MATRIX_SCAN_RATE 44 OPT_DEFS += -DDEBUG_MATRIX_SCAN_RATE
45endif 45endif
46 46
47ifeq ($(strip $(COMMAND_ENABLE)), yes)
48 SRC += $(QUANTUM_DIR)/command.c
49 OPT_DEFS += -DCOMMAND_ENABLE
50endif
51
52AUDIO_ENABLE ?= no 47AUDIO_ENABLE ?= no
53ifeq ($(strip $(AUDIO_ENABLE)), yes) 48ifeq ($(strip $(AUDIO_ENABLE)), yes)
54 ifeq ($(PLATFORM),CHIBIOS) 49 ifeq ($(PLATFORM),CHIBIOS)
@@ -118,12 +113,6 @@ ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
118 SRC += $(QUANTUM_DIR)/pointing_device.c 113 SRC += $(QUANTUM_DIR)/pointing_device.c
119endif 114endif
120 115
121ifeq ($(strip $(PROGRAMMABLE_BUTTON_ENABLE)), yes)
122 OPT_DEFS += -DPROGRAMMABLE_BUTTON_ENABLE
123 SRC += $(QUANTUM_DIR)/programmable_button.c
124 SRC += $(QUANTUM_DIR)/process_keycode/process_programmable_button.c
125endif
126
127VALID_EEPROM_DRIVER_TYPES := vendor custom transient i2c spi 116VALID_EEPROM_DRIVER_TYPES := vendor custom transient i2c spi
128EEPROM_DRIVER ?= vendor 117EEPROM_DRIVER ?= vendor
129ifeq ($(filter $(EEPROM_DRIVER),$(VALID_EEPROM_DRIVER_TYPES)),) 118ifeq ($(filter $(EEPROM_DRIVER),$(VALID_EEPROM_DRIVER_TYPES)),)
@@ -419,21 +408,6 @@ ifeq ($(strip $(TERMINAL_ENABLE)), yes)
419 OPT_DEFS += -DUSER_PRINT 408 OPT_DEFS += -DUSER_PRINT
420endif 409endif
421 410
422ifeq ($(strip $(WPM_ENABLE)), yes)
423 SRC += $(QUANTUM_DIR)/wpm.c
424 OPT_DEFS += -DWPM_ENABLE
425endif
426
427ifeq ($(strip $(ENCODER_ENABLE)), yes)
428 SRC += $(QUANTUM_DIR)/encoder.c
429 OPT_DEFS += -DENCODER_ENABLE
430endif
431
432ifeq ($(strip $(VELOCIKEY_ENABLE)), yes)
433 OPT_DEFS += -DVELOCIKEY_ENABLE
434 SRC += $(QUANTUM_DIR)/velocikey.c
435endif
436
437ifeq ($(strip $(VIA_ENABLE)), yes) 411ifeq ($(strip $(VIA_ENABLE)), yes)
438 DYNAMIC_KEYMAP_ENABLE := yes 412 DYNAMIC_KEYMAP_ENABLE := yes
439 RAW_ENABLE := yes 413 RAW_ENABLE := yes
@@ -442,16 +416,6 @@ ifeq ($(strip $(VIA_ENABLE)), yes)
442 OPT_DEFS += -DVIA_ENABLE 416 OPT_DEFS += -DVIA_ENABLE
443endif 417endif
444 418
445ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes)
446 OPT_DEFS += -DDYNAMIC_KEYMAP_ENABLE
447 SRC += $(QUANTUM_DIR)/dynamic_keymap.c
448endif
449
450ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
451 OPT_DEFS += -DDIP_SWITCH_ENABLE
452 SRC += $(QUANTUM_DIR)/dip_switch.c
453endif
454
455VALID_MAGIC_TYPES := yes lite 419VALID_MAGIC_TYPES := yes lite
456BOOTMAGIC_ENABLE ?= no 420BOOTMAGIC_ENABLE ?= no
457ifneq ($(strip $(BOOTMAGIC_ENABLE)), no) 421ifneq ($(strip $(BOOTMAGIC_ENABLE)), no)
@@ -602,54 +566,12 @@ ifeq ($(strip $(UNICODE_COMMON)), yes)
602 SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c 566 SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c
603endif 567endif
604 568
605SPACE_CADET_ENABLE ?= yes
606ifeq ($(strip $(SPACE_CADET_ENABLE)), yes)
607 SRC += $(QUANTUM_DIR)/process_keycode/process_space_cadet.c
608 OPT_DEFS += -DSPACE_CADET_ENABLE
609endif
610
611MAGIC_ENABLE ?= yes 569MAGIC_ENABLE ?= yes
612ifeq ($(strip $(MAGIC_ENABLE)), yes) 570ifeq ($(strip $(MAGIC_ENABLE)), yes)
613 SRC += $(QUANTUM_DIR)/process_keycode/process_magic.c 571 SRC += $(QUANTUM_DIR)/process_keycode/process_magic.c
614 OPT_DEFS += -DMAGIC_KEYCODE_ENABLE 572 OPT_DEFS += -DMAGIC_KEYCODE_ENABLE
615endif 573endif
616 574
617GRAVE_ESC_ENABLE ?= yes
618ifeq ($(strip $(GRAVE_ESC_ENABLE)), yes)
619 SRC += $(QUANTUM_DIR)/process_keycode/process_grave_esc.c
620 OPT_DEFS += -DGRAVE_ESC_ENABLE
621endif
622
623ifeq ($(strip $(DYNAMIC_MACRO_ENABLE)), yes)
624 SRC += $(QUANTUM_DIR)/process_keycode/process_dynamic_macro.c
625 OPT_DEFS += -DDYNAMIC_MACRO_ENABLE
626endif
627
628ifeq ($(strip $(COMBO_ENABLE)), yes)
629 SRC += $(QUANTUM_DIR)/process_keycode/process_combo.c
630 OPT_DEFS += -DCOMBO_ENABLE
631endif
632
633ifeq ($(strip $(KEY_OVERRIDE_ENABLE)), yes)
634 SRC += $(QUANTUM_DIR)/process_keycode/process_key_override.c
635 OPT_DEFS += -DKEY_OVERRIDE_ENABLE
636endif
637
638ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
639 SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
640 OPT_DEFS += -DTAP_DANCE_ENABLE
641endif
642
643ifeq ($(strip $(KEY_LOCK_ENABLE)), yes)
644 SRC += $(QUANTUM_DIR)/process_keycode/process_key_lock.c
645 OPT_DEFS += -DKEY_LOCK_ENABLE
646endif
647
648ifeq ($(strip $(LEADER_ENABLE)), yes)
649 SRC += $(QUANTUM_DIR)/process_keycode/process_leader.c
650 OPT_DEFS += -DLEADER_ENABLE
651endif
652
653ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes) 575ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
654 SRC += $(QUANTUM_DIR)/process_keycode/process_auto_shift.c 576 SRC += $(QUANTUM_DIR)/process_keycode/process_auto_shift.c
655 OPT_DEFS += -DAUTO_SHIFT_ENABLE 577 OPT_DEFS += -DAUTO_SHIFT_ENABLE
@@ -678,11 +600,6 @@ ifeq ($(strip $(JOYSTICK_ENABLE)), yes)
678 endif 600 endif
679endif 601endif
680 602
681DIGITIZER_ENABLE ?= no
682ifneq ($(strip $(DIGITIZER_ENABLE)), no)
683 SRC += $(QUANTUM_DIR)/digitizer.c
684endif
685
686USBPD_ENABLE ?= no 603USBPD_ENABLE ?= no
687VALID_USBPD_DRIVER_TYPES = custom vendor 604VALID_USBPD_DRIVER_TYPES = custom vendor
688USBPD_DRIVER ?= vendor 605USBPD_DRIVER ?= vendor