You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/07/30 05:10:40 UTC
[incubator-nuttx] 02/02: tools/Config.mk: Unquote the custom board
path before using it in Makefile functions.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit e79298bc349b46a8c0e11c838daf7e7a977e1817
Author: Ouss4 <ab...@gmail.com>
AuthorDate: Wed Jul 29 17:01:52 2020 +0100
tools/Config.mk: Unquote the custom board path before using it in
Makefile functions.
---
tools/Config.mk | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/Config.mk b/tools/Config.mk
index 2b43c26..eea069a 100644
--- a/tools/Config.mk
+++ b/tools/Config.mk
@@ -138,10 +138,11 @@ endif
# Process board-specific directories
ifeq ($(CONFIG_ARCH_BOARD_CUSTOM),y)
+ CUSTOM_DIR = $(patsubst "%",%,$(CONFIG_ARCH_BOARD_CUSTOM_DIR))
ifeq ($(CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH),y)
- BOARD_DIR ?= $(TOPDIR)$(DELIM)$(CONFIG_ARCH_BOARD_CUSTOM_DIR)
+ BOARD_DIR ?= $(TOPDIR)$(DELIM)$(CUSTOM_DIR)
else
- BOARD_DIR ?= $(CONFIG_ARCH_BOARD_CUSTOM_DIR)
+ BOARD_DIR ?= $(CUSTOM_DIR)
endif
else
BOARD_DIR ?= $(TOPDIR)$(DELIM)boards$(DELIM)$(CONFIG_ARCH)$(DELIM)$(CONFIG_ARCH_CHIP)$(DELIM)$(CONFIG_ARCH_BOARD)