diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /lib/chibios/os/oslib/oslib.mk |
Diffstat (limited to 'lib/chibios/os/oslib/oslib.mk')
-rw-r--r-- | lib/chibios/os/oslib/oslib.mk | 57 |
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. | ||
3 | ifeq ($(USE_SMART_BUILD),yes) | ||
4 | |||
5 | # Configuration files directory | ||
6 | ifeq ($(CHCONFDIR),) | ||
7 | ifeq ($(CONFDIR),) | ||
8 | CHCONFDIR = . | ||
9 | else | ||
10 | CHCONFDIR := $(CONFDIR) | ||
11 | endif | ||
12 | endif | ||
13 | |||
14 | CHLIBCONF := $(strip $(shell cat $(CHCONFDIR)/chconf.h | egrep -e "\#define")) | ||
15 | |||
16 | LIBSRC := | ||
17 | ifneq ($(findstring CH_CFG_USE_MAILBOXES TRUE,$(CHLIBCONF)),) | ||
18 | LIBSRC += $(CHIBIOS)/os/oslib/src/chmboxes.c | ||
19 | endif | ||
20 | ifneq ($(findstring CH_CFG_USE_MEMCORE TRUE,$(CHLIBCONF)),) | ||
21 | LIBSRC += $(CHIBIOS)/os/oslib/src/chmemcore.c | ||
22 | endif | ||
23 | ifneq ($(findstring CH_CFG_USE_HEAP TRUE,$(CHLIBCONF)),) | ||
24 | LIBSRC += $(CHIBIOS)/os/oslib/src/chmemheaps.c | ||
25 | endif | ||
26 | ifneq ($(findstring CH_CFG_USE_MEMPOOLS TRUE,$(CHLIBCONF)),) | ||
27 | LIBSRC += $(CHIBIOS)/os/oslib/src/chmempools.c | ||
28 | endif | ||
29 | ifneq ($(findstring CH_CFG_USE_PIPES TRUE,$(CHLIBCONF)),) | ||
30 | LIBSRC += $(CHIBIOS)/os/oslib/src/chpipes.c | ||
31 | endif | ||
32 | ifneq ($(findstring CH_CFG_USE_OBJ_CACHES TRUE,$(CHLIBCONF)),) | ||
33 | LIBSRC += $(CHIBIOS)/os/oslib/src/chobjcaches.c | ||
34 | endif | ||
35 | ifneq ($(findstring CH_CFG_USE_DELEGATES TRUE,$(CHLIBCONF)),) | ||
36 | LIBSRC += $(CHIBIOS)/os/oslib/src/chdelegates.c | ||
37 | endif | ||
38 | ifneq ($(findstring CH_CFG_USE_FACTORY TRUE,$(CHLIBCONF)),) | ||
39 | LIBSRC += $(CHIBIOS)/os/oslib/src/chfactory.c | ||
40 | endif | ||
41 | else | ||
42 | LIBSRC := $(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 | ||
50 | endif | ||
51 | |||
52 | # Required include directories | ||
53 | LIBINC := $(CHIBIOS)/os/oslib/include | ||
54 | |||
55 | # Shared variables | ||
56 | ALLCSRC += $(LIBSRC) | ||
57 | ALLINC += $(LIBINC) | ||