aboutsummaryrefslogtreecommitdiff
path: root/tool/mbed/common.mk
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-06-18 02:22:59 +0900
committertmk <nobody@nowhere>2014-07-30 14:07:43 +0900
commit80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3 (patch)
tree803fe5b419419607146b6ba1db69d24486b1494e /tool/mbed/common.mk
parente81c70149ecf73256f8bb7d77cefc07f2b91d2be (diff)
downloadqmk_firmware-80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3.tar.gz
qmk_firmware-80c3ff5fa03429f1e4ea15032f665ceb88c9b8c3.zip
Fix build files for mbed
Diffstat (limited to 'tool/mbed/common.mk')
-rw-r--r--tool/mbed/common.mk79
1 files changed, 79 insertions, 0 deletions
diff --git a/tool/mbed/common.mk b/tool/mbed/common.mk
new file mode 100644
index 000000000..1bd7d6edb
--- /dev/null
+++ b/tool/mbed/common.mk
@@ -0,0 +1,79 @@
1COMMON_DIR = common
2OBJECTS += \
3 $(OBJDIR)/$(COMMON_DIR)/action.o \
4 $(OBJDIR)/$(COMMON_DIR)/action_tapping.o \
5 $(OBJDIR)/$(COMMON_DIR)/action_macro.o \
6 $(OBJDIR)/$(COMMON_DIR)/action_layer.o \
7 $(OBJDIR)/$(COMMON_DIR)/action_util.o \
8 $(OBJDIR)/$(COMMON_DIR)/host.o \
9 $(OBJDIR)/$(COMMON_DIR)/keymap.o \
10 $(OBJDIR)/$(COMMON_DIR)/keyboard.o \
11 $(OBJDIR)/$(COMMON_DIR)/util.o \
12 $(OBJDIR)/$(COMMON_DIR)/mbed/suspend.o \
13 $(OBJDIR)/$(COMMON_DIR)/mbed/timer.o \
14 $(OBJDIR)/$(COMMON_DIR)/mbed/xprintf.o \
15 $(OBJDIR)/$(COMMON_DIR)/mbed/bootloader.o \
16
17INCLUDE_PATHS += \
18 -I$(TMK_DIR)/$(COMMON_DIR)
19
20CC_FLAGS += -include $(CONFIG_H)
21
22
23
24# Option modules
25ifdef BOOTMAGIC_ENABLE
26 $(error Not Supported)
27 OBJECTS += $(OBJDIR)/$(COMMON_DIR)/bootmagic.o
28 OBJECTS += $(OBJDIR)/$(COMMON_DIR)/mbed/eeprom.o
29 OPT_DEFS += -DBOOTMAGIC_ENABLE
30endif
31
32ifdef MOUSEKEY_ENABLE
33 OBJECTS += $(OBJDIR)/$(COMMON_DIR)/mousekey.o
34 OPT_DEFS += -DMOUSEKEY_ENABLE
35 OPT_DEFS += -DMOUSE_ENABLE
36endif
37
38ifdef EXTRAKEY_ENABLE
39 $(error Not Supported)
40 OPT_DEFS += -DEXTRAKEY_ENABLE
41endif
42
43ifdef CONSOLE_ENABLE
44 $(error Not Supported)
45 OPT_DEFS += -DCONSOLE_ENABLE
46else
47 OPT_DEFS += -DNO_PRINT
48 OPT_DEFS += -DNO_DEBUG
49endif
50
51ifdef COMMAND_ENABLE
52 $(error Not Supported)
53 SRC += $(COMMON_DIR)/command.c
54 OPT_DEFS += -DCOMMAND_ENABLE
55endif
56
57ifdef NKRO_ENABLE
58 $(error Not Supported)
59 OPT_DEFS += -DNKRO_ENABLE
60endif
61
62ifdef SLEEP_LED_ENABLE
63 $(error Not Supported)
64 SRC += $(COMMON_DIR)/sleep_led.c
65 OPT_DEFS += -DSLEEP_LED_ENABLE
66 OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
67endif
68
69ifdef BACKLIGHT_ENABLE
70 $(error Not Supported)
71 SRC += $(COMMON_DIR)/backlight.c
72 OPT_DEFS += -DBACKLIGHT_ENABLE
73endif
74
75ifdef KEYMAP_SECTION_ENABLE
76 $(error Not Supported)
77 OPT_DEFS += -DKEYMAP_SECTION_ENABLE
78 EXTRALDFLAGS = -Wl,-L$(TOP_DIR),-Tldscript_keymap_avr5.x
79endif