From b470e1ae0feb1d173465f8083248ad4324755592 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 5 Jan 2019 15:49:50 +0000 Subject: Improved search of configuration files. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12529 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/rt/rt.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'os/rt') diff --git a/os/rt/rt.mk b/os/rt/rt.mk index 8816a61e5..14a4d3cc0 100644 --- a/os/rt/rt.mk +++ b/os/rt/rt.mk @@ -3,11 +3,15 @@ ifeq ($(USE_SMART_BUILD),yes) # Configuration files directory -ifeq ($(CONFDIR),) - CONFDIR = . +ifeq ($(CHCONFDIR),) + ifeq ($(CONFDIR),) + CHCONFDIR = . + else + CHCONFDIR := $(CONFDIR) + endif endif -CHCONF := $(strip $(shell cat $(CONFDIR)/chconf.h | egrep -e "\#define")) +CHCONF := $(strip $(shell cat $(CHCONFDIR)/chconf.h | egrep -e "\#define")) KERNSRC := $(CHIBIOS)/os/rt/src/chsys.c \ $(CHIBIOS)/os/rt/src/chdebug.c \ -- cgit v1.2.3