mk: link core to library archive instead of .o file

Do not link base and core libraries into on large relocatable .o file,
which is linked later to core - causing long link times. Create an
independent library archive out of the base and core libraries that can
be linked faster.

issue #4027
This commit is contained in:
Sebastian Sumpf
2021-02-19 15:23:49 +01:00
committed by Norman Feske
parent 64165d829e
commit f68e655312
16 changed files with 49 additions and 33 deletions

View File

@ -2,6 +2,6 @@ include $(REP_DIR)/etc/board.conf
TARGET := foc-$(BOARD)
LIBS := core-foc
CORE_OBJ := core-foc-$(BOARD).o
CORE_LIB := core-foc-$(BOARD).a
include $(BASE_DIR)/src/core/target.inc