Skip to content

Commit 29f6845

Browse files
mteimechmerlin
authored andcommitted
Fix LIB_SRC insert position (#5731)
The insertion point for `$(patsubst %.c,%.clib,$(LIB_SRC))` must be after all normal `SRC += ..` . I modified it to be so. Because LIB_SRC and SRC are assumed to be used in pairs. Similarly, QUANTUM_LIB_SRC and QUANTUM_SRC are assumed to be used in pairs.
1 parent 6a59198 commit 29f6845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_keyboard.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ ifneq ("$(wildcard $(KEYMAP_PATH)/config.h)","")
324324
endif
325325

326326
# # project specific files
327-
SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
328327
SRC += $(KEYBOARD_SRC) \
329328
$(KEYMAP_C) \
330329
$(QUANTUM_SRC)
@@ -343,6 +342,7 @@ include $(TMK_PATH)/protocol.mk
343342
include $(TMK_PATH)/common.mk
344343
include bootloader.mk
345344

345+
SRC += $(patsubst %.c,%.clib,$(LIB_SRC))
346346
SRC += $(patsubst %.c,%.clib,$(QUANTUM_LIB_SRC))
347347
SRC += $(TMK_COMMON_SRC)
348348
OPT_DEFS += $(TMK_COMMON_DEFS)

0 commit comments

Comments
 (0)