2016-02-16 10:07:00 +00:00
|
|
|
# List of all the ChibiOS/NIL kernel files, there is no need to remove the files
|
|
|
|
# from this list, you can disable parts of the kernel by editing chconf.h.
|
|
|
|
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
|
|
|
|
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/chmempools.c \
|
|
|
|
${CHIBIOS}/os/common/oslib/src/chheap.c
|
|
|
|
endif
|
2013-09-01 08:19:24 +00:00
|
|
|
|
|
|
|
# Required include directories
|
2016-02-16 10:07:00 +00:00
|
|
|
KERNINC := ${CHIBIOS}/os/nil/include \
|
|
|
|
${CHIBIOS}/os/common/oslib/include
|