diff options
Diffstat (limited to 'common_features.mk')
| -rw-r--r-- | common_features.mk | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common_features.mk b/common_features.mk index 15b7b464fd..8f41fb96a8 100644 --- a/common_features.mk +++ b/common_features.mk | |||
| @@ -481,18 +481,15 @@ ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes) | |||
| 481 | SRC += $(QUANTUM_DIR)/dip_switch.c | 481 | SRC += $(QUANTUM_DIR)/dip_switch.c |
| 482 | endif | 482 | endif |
| 483 | 483 | ||
| 484 | VALID_MAGIC_TYPES := yes full lite | 484 | VALID_MAGIC_TYPES := yes lite |
| 485 | BOOTMAGIC_ENABLE ?= no | 485 | BOOTMAGIC_ENABLE ?= no |
| 486 | ifneq ($(strip $(BOOTMAGIC_ENABLE)), no) | 486 | ifneq ($(strip $(BOOTMAGIC_ENABLE)), no) |
| 487 | ifeq ($(filter $(BOOTMAGIC_ENABLE),$(VALID_MAGIC_TYPES)),) | 487 | ifeq ($(filter $(BOOTMAGIC_ENABLE),$(VALID_MAGIC_TYPES)),) |
| 488 | $(error BOOTMAGIC_ENABLE="$(BOOTMAGIC_ENABLE)" is not a valid type of magic) | 488 | $(error BOOTMAGIC_ENABLE="$(BOOTMAGIC_ENABLE)" is not a valid type of magic) |
| 489 | endif | 489 | endif |
| 490 | ifneq ($(strip $(BOOTMAGIC_ENABLE)), full) | 490 | ifneq ($(strip $(BOOTMAGIC_ENABLE)), no) |
| 491 | OPT_DEFS += -DBOOTMAGIC_LITE | 491 | OPT_DEFS += -DBOOTMAGIC_LITE |
| 492 | QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/bootmagic_lite.c | 492 | QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/bootmagic_lite.c |
| 493 | else | ||
| 494 | OPT_DEFS += -DBOOTMAGIC_ENABLE | ||
| 495 | QUANTUM_SRC += $(QUANTUM_DIR)/bootmagic/bootmagic_full.c | ||
| 496 | endif | 493 | endif |
| 497 | endif | 494 | endif |
| 498 | COMMON_VPATH += $(QUANTUM_DIR)/bootmagic | 495 | COMMON_VPATH += $(QUANTUM_DIR)/bootmagic |
