summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-03-11 15:28:14 +0900
committertmk <nobody@nowhere>2013-03-11 15:28:46 +0900
commitef8439bddb2d7fe5fd95faf2b6bebd8235acf160 (patch)
tree4af03a20658cb7e6cd43f9c65dfa002f1b544332 /common.mk
parentd055e0633e36e97802d60554f6002e47021ba5fd (diff)
Add build option BOOTMAGIC_ENABLE
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 2735f5becf..f9faf2f95b 100644
--- a/common.mk
+++ b/common.mk
@@ -10,12 +10,16 @@ SRC += $(COMMON_DIR)/host.c \
$(COMMON_DIR)/print.c \
$(COMMON_DIR)/debug.c \
$(COMMON_DIR)/bootloader.c \
- $(COMMON_DIR)/bootmagic.c \
- $(COMMON_DIR)/eeconfig.c \
$(COMMON_DIR)/util.c
# Option modules
+ifdef BOOTMAGIC_ENABLE
+ SRC += $(COMMON_DIR)/bootmagic.c
+ SRC += $(COMMON_DIR)/eeconfig.c
+ OPT_DEFS += -DBOOTMAGIC_ENABLE
+endif
+
ifdef MOUSEKEY_ENABLE
SRC += $(COMMON_DIR)/mousekey.c
OPT_DEFS += -DMOUSEKEY_ENABLE