diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-03-13 09:52:55 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-03-13 09:52:55 +0000 |
commit | 7d11f36c4837c16ae0213627c5cd9588522b4335 (patch) | |
tree | 7bbe0813bc3640bf0feb728f429caae3e22b6340 /os/nil/nil.mk | |
parent | bb88c523426b52141c20b622305dd631f2c7a22d (diff) | |
download | ChibiOS-7d11f36c4837c16ae0213627c5cd9588522b4335.tar.gz ChibiOS-7d11f36c4837c16ae0213627c5cd9588522b4335.tar.bz2 ChibiOS-7d11f36c4837c16ae0213627c5cd9588522b4335.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11723 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/nil/nil.mk')
-rw-r--r-- | os/nil/nil.mk | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/os/nil/nil.mk b/os/nil/nil.mk index f3d144199..0d6350f56 100644 --- a/os/nil/nil.mk +++ b/os/nil/nil.mk @@ -3,34 +3,16 @@ ifeq ($(USE_SMART_BUILD),yes)
CHCONF := $(strip $(shell cat chconf.h | egrep -e "\#define"))
KERNSRC := ${CHIBIOS}/os/nil/src/ch.c
-ifneq ($(findstring CH_CFG_USE_MAILBOXES TRUE,$(CHCONF)),)
-KERNSRC += $(CHIBIOS)/os/common/oslib/src/chmboxes.c
-endif
-ifneq ($(findstring CH_CFG_USE_MEMCORE TRUE,$(CHCONF)),)
-KERNSRC += $(CHIBIOS)/os/common/oslib/src/chmemcore.c
-endif
-ifneq ($(findstring CH_CFG_USE_HEAP TRUE,$(CHCONF)),)
-KERNSRC += $(CHIBIOS)/os/common/oslib/src/chheap.c
-endif
-ifneq ($(findstring CH_CFG_USE_MEMPOOLS TRUE,$(CHCONF)),)
-KERNSRC += $(CHIBIOS)/os/common/oslib/src/chmempools.c
-endif
-ifneq ($(findstring CH_CFG_USE_FACTORY TRUE,$(CHCONF)),)
-KERNSRC += $(CHIBIOS)/os/common/oslib/src/chfactory.c
-endif
else
-KERNSRC := ${CHIBIOS}/os/nil/src/ch.c \
- $(CHIBIOS)/os/common/oslib/src/chmboxes.c \
- $(CHIBIOS)/os/common/oslib/src/chmemcore.c \
- $(CHIBIOS)/os/common/oslib/src/chheap.c \
- $(CHIBIOS)/os/common/oslib/src/chmempools.c \
- $(CHIBIOS)/os/common/oslib/src/chfactory.c
+KERNSRC := ${CHIBIOS}/os/nil/src/ch.c
endif
# Required include directories
-KERNINC := ${CHIBIOS}/os/nil/include \
- ${CHIBIOS}/os/common/oslib/include
+KERNINC := ${CHIBIOS}/os/nil/include
# Shared variables
ALLCSRC += $(KERNSRC)
ALLINC += $(KERNINC)
+
+# OS Library
+include $(CHIBIOS)/os/lib/lib.mk
|