summaryrefslogtreecommitdiff
path: root/nuttx/Makefile.unix
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-16 10:42:54 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-16 10:42:54 -0600
commita40df14d66e0608caef06170985b654e7a89743d (patch)
tree45fba22704439a3860a0f7015891619bdb04cd1b /nuttx/Makefile.unix
parent41bc327c19c9b05329ccd00b8b5c650e698c2a00 (diff)
downloadpx4-nuttx-a40df14d66e0608caef06170985b654e7a89743d.tar.gz
px4-nuttx-a40df14d66e0608caef06170985b654e7a89743d.tar.bz2
px4-nuttx-a40df14d66e0608caef06170985b654e7a89743d.zip
You can again specify the default board sub-directory when CONFIG_ARCH_BOARD_CUSTOM is used
Diffstat (limited to 'nuttx/Makefile.unix')
-rw-r--r--nuttx/Makefile.unix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/Makefile.unix b/nuttx/Makefile.unix
index 273024f6d..d76c34859 100644
--- a/nuttx/Makefile.unix
+++ b/nuttx/Makefile.unix
@@ -63,7 +63,12 @@ KDEFINE = ${shell $(TOPDIR)/tools/define.sh "$(CC)" __KERNEL__}
ARCH_DIR = arch/$(CONFIG_ARCH)
ARCH_SRC = $(ARCH_DIR)/src
ARCH_INC = $(ARCH_DIR)/include
-BOARD_DIR = configs/$(CONFIG_ARCH_BOARD)
+
+ifeq ($(CONFIG_ARCH_BOARD_CUSTOM),y)
+ BOARD_DIR = $(CONFIG_ARCH_BOARD_CUSTOM_DIR)
+else
+ BOARD_DIR = configs/$(CONFIG_ARCH_BOARD)
+endif
# Add-on directories. These may or may not be in place in the
# NuttX source tree (they must be specifically installed)