Skip to content

Commit 375b20f

Browse files
committed
core: Fix common.mk for build options
1 parent 394fdff commit 375b20f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

common.mk

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,70 +17,70 @@ SRC += $(COMMON_DIR)/host.c \
1717

1818

1919
# Option modules
20-
ifdef UNIMAP_ENABLE
20+
ifeq (yes,$(strip $(UNIMAP_ENABLE)))
2121
SRC += $(COMMON_DIR)/unimap.c
2222
OPT_DEFS += -DUNIMAP_ENABLE
2323
else
24-
ifdef ACTIONMAP_ENABLE
24+
ifeq (yes,$(strip $(ACTIONMAP_ENABLE)))
2525
SRC += $(COMMON_DIR)/actionmap.c
2626
OPT_DEFS += -DACTIONMAP_ENABLE
2727
else
2828
SRC += $(COMMON_DIR)/keymap.c
2929
endif
3030
endif
3131

32-
ifdef BOOTMAGIC_ENABLE
32+
ifeq (yes,$(strip $(BOOTMAGIC_ENABLE)))
3333
SRC += $(COMMON_DIR)/bootmagic.c
3434
SRC += $(COMMON_DIR)/avr/eeconfig.c
3535
OPT_DEFS += -DBOOTMAGIC_ENABLE
3636
endif
3737

38-
ifdef MOUSEKEY_ENABLE
38+
ifeq (yes,$(strip $(MOUSEKEY_ENABLE)))
3939
SRC += $(COMMON_DIR)/mousekey.c
4040
OPT_DEFS += -DMOUSEKEY_ENABLE
4141
OPT_DEFS += -DMOUSE_ENABLE
4242
endif
4343

44-
ifdef EXTRAKEY_ENABLE
44+
ifeq (yes,$(strip $(EXTRAKEY_ENABLE)))
4545
OPT_DEFS += -DEXTRAKEY_ENABLE
4646
endif
4747

48-
ifdef CONSOLE_ENABLE
48+
ifeq (yes,$(strip $(CONSOLE_ENABLE)))
4949
OPT_DEFS += -DCONSOLE_ENABLE
5050
else
5151
OPT_DEFS += -DNO_PRINT
5252
OPT_DEFS += -DNO_DEBUG
5353
endif
5454

55-
ifdef COMMAND_ENABLE
55+
ifeq (yes,$(strip $(COMMAND_ENABLE)))
5656
SRC += $(COMMON_DIR)/command.c
5757
OPT_DEFS += -DCOMMAND_ENABLE
5858
endif
5959

60-
ifdef NKRO_ENABLE
60+
ifeq (yes,$(strip $(NKRO_ENABLE)))
6161
OPT_DEFS += -DNKRO_ENABLE
6262
endif
6363

64-
ifdef USB_6KRO_ENABLE
64+
ifeq (yes,$(strip $(USB_6KRO_ENABLE)))
6565
OPT_DEFS += -DUSB_6KRO_ENABLE
6666
endif
6767

68-
ifdef KEYBOARD_LOCK_ENABLE
68+
ifeq (yes, $(strip $(KEYBOARD_LOCK_ENABLE)))
6969
OPT_DEFS += -DKEYBOARD_LOCK_ENABLE
7070
endif
7171

72-
ifdef SLEEP_LED_ENABLE
72+
ifeq (yes,$(strip $(SLEEP_LED_ENABLE)))
7373
SRC += $(COMMON_DIR)/avr/sleep_led.c
7474
OPT_DEFS += -DSLEEP_LED_ENABLE
7575
OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
7676
endif
7777

78-
ifdef BACKLIGHT_ENABLE
78+
ifeq (yes,$(strip $(BACKLIGHT_ENABLE)))
7979
SRC += $(COMMON_DIR)/backlight.c
8080
OPT_DEFS += -DBACKLIGHT_ENABLE
8181
endif
8282

83-
ifdef KEYMAP_SECTION_ENABLE
83+
ifeq (yes,$(strip $(KEYMAP_SECTION_ENABLE)))
8484
OPT_DEFS += -DKEYMAP_SECTION_ENABLE
8585

8686
ifeq ($(strip $(MCU)),atmega32u2)

0 commit comments

Comments
 (0)