diff options
author | Joel Challis <git@zvecr.com> | 2021-10-17 22:37:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 22:37:48 +0100 |
commit | bd2f8ab88a8d1598cde47d3238ae8a49f1d7fbf9 (patch) | |
tree | d029505cd77fbf9a549017dbe28ef181632c226b /common_features.mk | |
parent | bb80b2a40cd37042b25c721033c531f8c8d0cb16 (diff) | |
download | qmk_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.mk | 83 |
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 |
45 | endif | 45 | endif |
46 | 46 | ||
47 | ifeq ($(strip $(COMMAND_ENABLE)), yes) | ||
48 | SRC += $(QUANTUM_DIR)/command.c | ||
49 | OPT_DEFS += -DCOMMAND_ENABLE | ||
50 | endif | ||
51 | |||
52 | AUDIO_ENABLE ?= no | 47 | AUDIO_ENABLE ?= no |
53 | ifeq ($(strip $(AUDIO_ENABLE)), yes) | 48 | ifeq ($(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 |
119 | endif | 114 | endif |
120 | 115 | ||
121 | ifeq ($(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 | ||
125 | endif | ||
126 | |||
127 | VALID_EEPROM_DRIVER_TYPES := vendor custom transient i2c spi | 116 | VALID_EEPROM_DRIVER_TYPES := vendor custom transient i2c spi |
128 | EEPROM_DRIVER ?= vendor | 117 | EEPROM_DRIVER ?= vendor |
129 | ifeq ($(filter $(EEPROM_DRIVER),$(VALID_EEPROM_DRIVER_TYPES)),) | 118 | ifeq ($(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 |
420 | endif | 409 | endif |
421 | 410 | ||
422 | ifeq ($(strip $(WPM_ENABLE)), yes) | ||
423 | SRC += $(QUANTUM_DIR)/wpm.c | ||
424 | OPT_DEFS += -DWPM_ENABLE | ||
425 | endif | ||
426 | |||
427 | ifeq ($(strip $(ENCODER_ENABLE)), yes) | ||
428 | SRC += $(QUANTUM_DIR)/encoder.c | ||
429 | OPT_DEFS += -DENCODER_ENABLE | ||
430 | endif | ||
431 | |||
432 | ifeq ($(strip $(VELOCIKEY_ENABLE)), yes) | ||
433 | OPT_DEFS += -DVELOCIKEY_ENABLE | ||
434 | SRC += $(QUANTUM_DIR)/velocikey.c | ||
435 | endif | ||
436 | |||
437 | ifeq ($(strip $(VIA_ENABLE)), yes) | 411 | ifeq ($(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 |
443 | endif | 417 | endif |
444 | 418 | ||
445 | ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes) | ||
446 | OPT_DEFS += -DDYNAMIC_KEYMAP_ENABLE | ||
447 | SRC += $(QUANTUM_DIR)/dynamic_keymap.c | ||
448 | endif | ||
449 | |||
450 | ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes) | ||
451 | OPT_DEFS += -DDIP_SWITCH_ENABLE | ||
452 | SRC += $(QUANTUM_DIR)/dip_switch.c | ||
453 | endif | ||
454 | |||
455 | VALID_MAGIC_TYPES := yes lite | 419 | VALID_MAGIC_TYPES := yes lite |
456 | BOOTMAGIC_ENABLE ?= no | 420 | BOOTMAGIC_ENABLE ?= no |
457 | ifneq ($(strip $(BOOTMAGIC_ENABLE)), no) | 421 | ifneq ($(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 |
603 | endif | 567 | endif |
604 | 568 | ||
605 | SPACE_CADET_ENABLE ?= yes | ||
606 | ifeq ($(strip $(SPACE_CADET_ENABLE)), yes) | ||
607 | SRC += $(QUANTUM_DIR)/process_keycode/process_space_cadet.c | ||
608 | OPT_DEFS += -DSPACE_CADET_ENABLE | ||
609 | endif | ||
610 | |||
611 | MAGIC_ENABLE ?= yes | 569 | MAGIC_ENABLE ?= yes |
612 | ifeq ($(strip $(MAGIC_ENABLE)), yes) | 570 | ifeq ($(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 |
615 | endif | 573 | endif |
616 | 574 | ||
617 | GRAVE_ESC_ENABLE ?= yes | ||
618 | ifeq ($(strip $(GRAVE_ESC_ENABLE)), yes) | ||
619 | SRC += $(QUANTUM_DIR)/process_keycode/process_grave_esc.c | ||
620 | OPT_DEFS += -DGRAVE_ESC_ENABLE | ||
621 | endif | ||
622 | |||
623 | ifeq ($(strip $(DYNAMIC_MACRO_ENABLE)), yes) | ||
624 | SRC += $(QUANTUM_DIR)/process_keycode/process_dynamic_macro.c | ||
625 | OPT_DEFS += -DDYNAMIC_MACRO_ENABLE | ||
626 | endif | ||
627 | |||
628 | ifeq ($(strip $(COMBO_ENABLE)), yes) | ||
629 | SRC += $(QUANTUM_DIR)/process_keycode/process_combo.c | ||
630 | OPT_DEFS += -DCOMBO_ENABLE | ||
631 | endif | ||
632 | |||
633 | ifeq ($(strip $(KEY_OVERRIDE_ENABLE)), yes) | ||
634 | SRC += $(QUANTUM_DIR)/process_keycode/process_key_override.c | ||
635 | OPT_DEFS += -DKEY_OVERRIDE_ENABLE | ||
636 | endif | ||
637 | |||
638 | ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) | ||
639 | SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c | ||
640 | OPT_DEFS += -DTAP_DANCE_ENABLE | ||
641 | endif | ||
642 | |||
643 | ifeq ($(strip $(KEY_LOCK_ENABLE)), yes) | ||
644 | SRC += $(QUANTUM_DIR)/process_keycode/process_key_lock.c | ||
645 | OPT_DEFS += -DKEY_LOCK_ENABLE | ||
646 | endif | ||
647 | |||
648 | ifeq ($(strip $(LEADER_ENABLE)), yes) | ||
649 | SRC += $(QUANTUM_DIR)/process_keycode/process_leader.c | ||
650 | OPT_DEFS += -DLEADER_ENABLE | ||
651 | endif | ||
652 | |||
653 | ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes) | 575 | ifeq ($(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 |
679 | endif | 601 | endif |
680 | 602 | ||
681 | DIGITIZER_ENABLE ?= no | ||
682 | ifneq ($(strip $(DIGITIZER_ENABLE)), no) | ||
683 | SRC += $(QUANTUM_DIR)/digitizer.c | ||
684 | endif | ||
685 | |||
686 | USBPD_ENABLE ?= no | 603 | USBPD_ENABLE ?= no |
687 | VALID_USBPD_DRIVER_TYPES = custom vendor | 604 | VALID_USBPD_DRIVER_TYPES = custom vendor |
688 | USBPD_DRIVER ?= vendor | 605 | USBPD_DRIVER ?= vendor |