diff options
author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2018-12-15 14:31:56 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-12-14 21:31:56 -0800 |
commit | 8f790948e5f7ed62b2c56e1a6aa63dae89d5c860 (patch) | |
tree | 5d934ecae5855bf3f907b0ad485e78b42d9c228a /build_keyboard.mk | |
parent | a49d98e665d934c318894cfc9d9813adacd08f11 (diff) | |
download | qmk_firmware-8f790948e5f7ed62b2c56e1a6aa63dae89d5c860.tar.gz qmk_firmware-8f790948e5f7ed62b2c56e1a6aa63dae89d5c860.zip |
Refactor quantum/split_common/i2c.c, quantum/split_common/serial.c (#4522)
* add temporary compile test shell script
* Extended support of SKIP_VERSION to make invariant compile results during testing.
* build_keyboard.mk, tmk_core/rules.mk: add LIB_SRC, QUANTUM_LIB_SRC support
Support compiled object enclosed in library.
e.g.
```
LIB_SRC += xxxx.c
xxxx.c --> xxxx.o ---> xxxx.a
```
* remove 'ifdef/ifndef USE_I2C' from quantum/split_common/{i2c|serial}.c
* add SKIP_DEBUG_INFO into tmk_core/rules.mk
When SKIP_DEBUG_INFO=yes is specified, do not use the -g option at compile time.
* tmk_core/rules.mk: Library object need -fno-lto
* add SKIP_DEBUG_INFO=yes
* remove temporary compile test shell script
* add '#define SOFT_SERIAL_PIN D0' to keyboards/lets_split/rev?/config.h
* quantum/split_common/serial.c: Changed not to use USE_I2C.
Diffstat (limited to 'build_keyboard.mk')
-rw-r--r-- | build_keyboard.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build_keyboard.mk b/build_keyboard.mk index d225fe821..b639b92d3 100644 --- a/build_keyboard.mk +++ b/build_keyboard.mk | |||
@@ -34,6 +34,10 @@ $(error MASTER does not have a valid value(left/right)) | |||
34 | endif | 34 | endif |
35 | endif | 35 | endif |
36 | 36 | ||
37 | ifdef SKIP_VERSION | ||
38 | OPT_DEFS += -DSKIP_VERSION | ||
39 | endif | ||
40 | |||
37 | # Determine which subfolders exist. | 41 | # Determine which subfolders exist. |
38 | KEYBOARD_FOLDER_PATH_1 := $(KEYBOARD) | 42 | KEYBOARD_FOLDER_PATH_1 := $(KEYBOARD) |
39 | KEYBOARD_FOLDER_PATH_2 := $(patsubst %/,%,$(dir $(KEYBOARD_FOLDER_PATH_1))) | 43 | KEYBOARD_FOLDER_PATH_2 := $(patsubst %/,%,$(dir $(KEYBOARD_FOLDER_PATH_1))) |
@@ -278,6 +282,7 @@ ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","") | |||
278 | endif | 282 | endif |
279 | 283 | ||
280 | # # project specific files | 284 | # # project specific files |
285 | SRC += $(patsubst %.c,%.clib,$(LIB_SRC)) | ||
281 | SRC += $(KEYBOARD_SRC) \ | 286 | SRC += $(KEYBOARD_SRC) \ |
282 | $(KEYMAP_C) \ | 287 | $(KEYMAP_C) \ |
283 | $(QUANTUM_SRC) | 288 | $(QUANTUM_SRC) |
@@ -296,6 +301,7 @@ include $(TMK_PATH)/protocol.mk | |||
296 | include $(TMK_PATH)/common.mk | 301 | include $(TMK_PATH)/common.mk |
297 | include bootloader.mk | 302 | include bootloader.mk |
298 | 303 | ||
304 | SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC)) | ||
299 | SRC += $(TMK_COMMON_SRC) | 305 | SRC += $(TMK_COMMON_SRC) |
300 | OPT_DEFS += $(TMK_COMMON_DEFS) | 306 | OPT_DEFS += $(TMK_COMMON_DEFS) |
301 | EXTRALDFLAGS += $(TMK_COMMON_LDFLAGS) | 307 | EXTRALDFLAGS += $(TMK_COMMON_LDFLAGS) |