diff options
Diffstat (limited to 'os/hal/hal.mk')
-rw-r--r-- | os/hal/hal.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/os/hal/hal.mk b/os/hal/hal.mk index 991a0c2df..7d7db63aa 100644 --- a/os/hal/hal.mk +++ b/os/hal/hal.mk @@ -3,11 +3,15 @@ ifeq ($(USE_SMART_BUILD),yes)
# Configuration files directory
-ifeq ($(CONFDIR),)
- CONFDIR = .
+ifeq ($(HALCONFDIR),)
+ ifeq ($(CONFDIR),)
+ HALCONFDIR = .
+ else
+ HALCONFDIR := $(CONFDIR)
+ endif
endif
-HALCONF := $(strip $(shell cat $(CONFDIR)/halconf.h | egrep -e "\#define"))
+HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define"))
HALSRC := $(CHIBIOS)/os/hal/src/hal.c \
$(CHIBIOS)/os/hal/src/hal_st.c \
|