aboutsummaryrefslogtreecommitdiffstats
path: root/os/lib/lib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'os/lib/lib.mk')
-rw-r--r--os/lib/lib.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/os/lib/lib.mk b/os/lib/lib.mk
index 75b9fc3c3..7780318d2 100644
--- a/os/lib/lib.mk
+++ b/os/lib/lib.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
-CHLIBCONF := $(strip $(shell cat $(CONFDIR)/chconf.h | egrep -e "\#define"))
+CHLIBCONF := $(strip $(shell cat $(CHCONFDIR)/chconf.h | egrep -e "\#define"))
LIBSRC :=
ifneq ($(findstring CH_CFG_USE_MAILBOXES TRUE,$(CHLIBCONF)),)