aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/rt.mk
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-08-02 14:25:05 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-08-02 14:25:05 +0000
commit40b6d76453be91a5b8998c19db80ccd57b5b1653 (patch)
tree4c72363680f260f43cfc78077c2b06f3d74682d4 /os/rt/rt.mk
parent9058939dbe67670b079204d3b1ae337cf7d3cf60 (diff)
downloadChibiOS-40b6d76453be91a5b8998c19db80ccd57b5b1653.tar.gz
ChibiOS-40b6d76453be91a5b8998c19db80ccd57b5b1653.tar.bz2
ChibiOS-40b6d76453be91a5b8998c19db80ccd57b5b1653.zip
Added to the Makefiles the ability to change the default build, dependencies and configuration directories.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10350 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/rt.mk')
-rw-r--r--os/rt/rt.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/os/rt/rt.mk b/os/rt/rt.mk
index 4aa74e141..d4c4cac29 100644
--- a/os/rt/rt.mk
+++ b/os/rt/rt.mk
@@ -1,7 +1,13 @@
# List of all the ChibiOS/RT 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"))
+
+# Configuration files directory
+ifeq ($(CONFDIR),)
+ CONFDIR = .
+endif
+
+CHCONF := $(strip $(shell cat $(CONFDIR)/chconf.h | egrep -e "\#define"))
KERNSRC := $(CHIBIOS)/os/rt/src/chsys.c \
$(CHIBIOS)/os/rt/src/chdebug.c \