]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Fix build files for mbed
authortmk <nobody@nowhere>
Tue, 17 Jun 2014 17:22:59 +0000 (02:22 +0900)
committertmk <nobody@nowhere>
Wed, 30 Jul 2014 05:07:43 +0000 (14:07 +0900)
.gitignore
keyboard/mbed_onekey/Makefile
protocol/mbed/HIDKeyboard.cpp [moved from keyboard/mbed_onekey/HIDKeyboard.cpp with 100% similarity]
protocol/mbed/HIDKeyboard.h [moved from keyboard/mbed_onekey/HIDKeyboard.h with 100% similarity]
protocol/mbed/mbed_driver.cpp [moved from keyboard/mbed_onekey/mbed_driver.cpp with 100% similarity]
protocol/mbed/mbed_driver.h [moved from keyboard/mbed_onekey/mbed_driver.h with 100% similarity]
tool/mbed/common.mk [moved from keyboard/mbed_onekey/common.mk with 100% similarity]
tool/mbed/gcc.mk [moved from keyboard/mbed_onekey/gcc.mk with 100% similarity]
tool/mbed/mbed.mk [moved from keyboard/mbed_onekey/mbed.mk with 97% similarity]

index c25d41d2386b2d7b9977ca7321a15bed6aece68e..b79d72b7c7ae72142099d4e3b9efa6d3e54d7f99 100644 (file)
@@ -8,3 +8,5 @@
 *.map
 *.sym
 tags
+build/
+*.bak
index e686f424e6fb521d8d3349b00a26db93908125bb..d0d1148ce231ab335ef5021fab4dfa999878843b 100644 (file)
@@ -1,7 +1,4 @@
-# This file was automagically generated by mbed.org. For more information, 
-# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
-
-PROJECT = USBKeyboard_HelloWorld
+PROJECT = mbed_onekey
 
 TMK_DIR = ../..
 MBED_DIR = ./mbed-sdk
@@ -14,8 +11,6 @@ vpath %.cpp .:$(MBED_DIR):$(TMK_DIR)
 OBJDIR = ./build
 
 OBJECTS = \
-       $(OBJDIR)/./HIDKeyboard.o \
-       $(OBJDIR)/./mbed_driver.o \
        $(OBJDIR)/./main.o
 
 CONFIG_H = config.h
@@ -33,6 +28,6 @@ LIBRARIES =
 MOUSEKEY_ENABLE = yes
 
 
-include mbed.mk
-include common.mk
-include gcc.mk
+include $(TMK_DIR)/tool/mbed/mbed.mk
+include $(TMK_DIR)/tool/mbed/common.mk
+include $(TMK_DIR)/tool/mbed/gcc.mk
similarity index 100%
rename from keyboard/mbed_onekey/gcc.mk
rename to tool/mbed/gcc.mk
similarity index 97%
rename from keyboard/mbed_onekey/mbed.mk
rename to tool/mbed/mbed.mk
index 962a05e6e5eb2ba532e045831ccb78465a370bde..0f12ee2af318310e9d5ae71c7113de2fcc47ac58 100644 (file)
@@ -89,4 +89,11 @@ INCLUDE_PATHS += \
        -I$(MBED_DIR)/libraries/USBDevice/USBMSD \
        -I$(MBED_DIR)/libraries/USBDevice/USBMIDI
 
+OBJECTS += \
+       $(OBJDIR)/protocol/mbed/mbed_driver.o \
+       $(OBJDIR)/protocol/mbed/HIDKeyboard.o \
+
+INCLUDE_PATHS += \
+       -I$(TMK_DIR)/protocol/mbed
+
 LINKER_SCRIPT = $(MBED_DIR)/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld