aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/oslib/oslib.mk
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /lib/chibios/os/oslib/oslib.mk
Diffstat (limited to 'lib/chibios/os/oslib/oslib.mk')
-rw-r--r--lib/chibios/os/oslib/oslib.mk57
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/chibios/os/oslib/oslib.mk b/lib/chibios/os/oslib/oslib.mk
new file mode 100644
index 000000000..e9fe2db9c
--- /dev/null
+++ b/lib/chibios/os/oslib/oslib.mk
@@ -0,0 +1,57 @@
1# List of all the ChibiOS/LIB files, there is no need to remove the files
2# from this list, you can disable parts of the kernel by editing chlibconf.h.
3ifeq ($(USE_SMART_BUILD),yes)
4
5# Configuration files directory
6ifeq ($(CHCONFDIR),)
7 ifeq ($(CONFDIR),)
8 CHCONFDIR = .
9 else
10 CHCONFDIR := $(CONFDIR)
11 endif
12endif
13
14CHLIBCONF := $(strip $(shell cat $(CHCONFDIR)/chconf.h | egrep -e "\#define"))
15
16LIBSRC :=
17ifneq ($(findstring CH_CFG_USE_MAILBOXES TRUE,$(CHLIBCONF)),)
18LIBSRC += $(CHIBIOS)/os/oslib/src/chmboxes.c
19endif
20ifneq ($(findstring CH_CFG_USE_MEMCORE TRUE,$(CHLIBCONF)),)
21LIBSRC += $(CHIBIOS)/os/oslib/src/chmemcore.c
22endif
23ifneq ($(findstring CH_CFG_USE_HEAP TRUE,$(CHLIBCONF)),)
24LIBSRC += $(CHIBIOS)/os/oslib/src/chmemheaps.c
25endif
26ifneq ($(findstring CH_CFG_USE_MEMPOOLS TRUE,$(CHLIBCONF)),)
27LIBSRC += $(CHIBIOS)/os/oslib/src/chmempools.c
28endif
29ifneq ($(findstring CH_CFG_USE_PIPES TRUE,$(CHLIBCONF)),)
30LIBSRC += $(CHIBIOS)/os/oslib/src/chpipes.c
31endif
32ifneq ($(findstring CH_CFG_USE_OBJ_CACHES TRUE,$(CHLIBCONF)),)
33LIBSRC += $(CHIBIOS)/os/oslib/src/chobjcaches.c
34endif
35ifneq ($(findstring CH_CFG_USE_DELEGATES TRUE,$(CHLIBCONF)),)
36LIBSRC += $(CHIBIOS)/os/oslib/src/chdelegates.c
37endif
38ifneq ($(findstring CH_CFG_USE_FACTORY TRUE,$(CHLIBCONF)),)
39LIBSRC += $(CHIBIOS)/os/oslib/src/chfactory.c
40endif
41else
42LIBSRC := $(CHIBIOS)/os/oslib/src/chmboxes.c \
43 $(CHIBIOS)/os/oslib/src/chmemcore.c \
44 $(CHIBIOS)/os/oslib/src/chmemheaps.c \
45 $(CHIBIOS)/os/oslib/src/chmempools.c \
46 $(CHIBIOS)/os/oslib/src/chpipes.c \
47 $(CHIBIOS)/os/oslib/src/chobjcaches.c \
48 $(CHIBIOS)/os/oslib/src/chdelegates.c \
49 $(CHIBIOS)/os/oslib/src/chfactory.c
50endif
51
52# Required include directories
53LIBINC := $(CHIBIOS)/os/oslib/include
54
55# Shared variables
56ALLCSRC += $(LIBSRC)
57ALLINC += $(LIBINC)