build: move library related code to lib/
Cleanup main Makefile and remove all library related code to lib/ to better support the increasing number of libraries and to keep the main Makefile clean from library dependencies. Jira: ZEP-308 Change-Id: Id83cf309020604b8eab8d80cad0021905d5b5f7a Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
0b2c44a771
commit
083a7ad0df
2 changed files with 15 additions and 15 deletions
14
Makefile
14
Makefile
|
@ -577,20 +577,6 @@ endif
|
|||
export COMPILER
|
||||
endif
|
||||
|
||||
ifdef CONFIG_QMSI_LIBRARY
|
||||
LIB_INCLUDE_DIR += -L$(CONFIG_QMSI_INSTALL_PATH:"%"=%)/lib
|
||||
ALL_LIBS += qmsi
|
||||
endif
|
||||
|
||||
ifdef CONFIG_MINIMAL_LIBC
|
||||
ZEPHYRINCLUDE += -I$(srctree)/lib/libc/minimal/include
|
||||
endif
|
||||
|
||||
ifdef CONFIG_NEWLIB_LIBC
|
||||
ZEPHYRINCLUDE += $(TOOLCHAIN_CFLAGS)
|
||||
ALL_LIBS += m c
|
||||
endif
|
||||
|
||||
QEMU_BIN_PATH ?= /usr/bin
|
||||
QEMU = $(QEMU_BIN_PATH)/$(QEMU_$(ARCH))
|
||||
|
||||
|
|
16
lib/Makefile
16
lib/Makefile
|
@ -1,4 +1,18 @@
|
|||
|
||||
ifeq ($(CONFIG_TINYCRYPT),y)
|
||||
ifdef CONFIG_TINYCRYPT
|
||||
ZEPHYRINCLUDE += -I$(srctree)/lib/crypto/tinycrypt/include
|
||||
endif
|
||||
|
||||
ifdef CONFIG_QMSI_LIBRARY
|
||||
LIB_INCLUDE_DIR += -L$(CONFIG_QMSI_INSTALL_PATH:"%"=%)/lib
|
||||
ALL_LIBS += qmsi
|
||||
endif
|
||||
|
||||
ifdef CONFIG_MINIMAL_LIBC
|
||||
ZEPHYRINCLUDE += -I$(srctree)/lib/libc/minimal/include
|
||||
endif
|
||||
|
||||
ifdef CONFIG_NEWLIB_LIBC
|
||||
ZEPHYRINCLUDE += $(TOOLCHAIN_CFLAGS)
|
||||
ALL_LIBS += m c
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue