From 40b6d76453be91a5b8998c19db80ccd57b5b1653 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 2 Aug 2017 14:25:05 +0000 Subject: 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 --- os/rt/rt.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'os/rt') 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 \ -- cgit v1.2.3