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/hal/ports/STM32/STM32L0xx/platform.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'os/hal/ports/STM32/STM32L0xx/platform.mk') diff --git a/os/hal/ports/STM32/STM32L0xx/platform.mk b/os/hal/ports/STM32/STM32L0xx/platform.mk index 204462468..41c606479 100644 --- a/os/hal/ports/STM32/STM32L0xx/platform.mk +++ b/os/hal/ports/STM32/STM32L0xx/platform.mk @@ -11,11 +11,15 @@ PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \ 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")) else endif -- cgit v1.2.3