Top-level Makefiles: Check if CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH is enabled
This commit is contained in:
parent
4a7e28ba96
commit
b669d080db
@ -72,9 +72,13 @@ ARCH_SRC = $(ARCH_DIR)/src
|
||||
ARCH_INC = $(ARCH_DIR)/include
|
||||
|
||||
ifeq ($(CONFIG_ARCH_BOARD_CUSTOM),y)
|
||||
BOARD_DIR = $(CONFIG_ARCH_BOARD_CUSTOM_DIR)
|
||||
ifeq ($(CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH),y)
|
||||
BOARD_DIR = $(TOPDIR)$(DELIM)$(CONFIG_ARCH_BOARD_CUSTOM_DIR)
|
||||
else
|
||||
BOARD_DIR = $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)
|
||||
BOARD_DIR = $(CONFIG_ARCH_BOARD_CUSTOM_DIR)
|
||||
endif
|
||||
else
|
||||
BOARD_DIR = $(TOPDIR)$(DELIM)configs$(DELIM)$(CONFIG_ARCH_BOARD)
|
||||
endif
|
||||
|
||||
# CONFIG_APPS_DIR can be over-ridden from the command line or in the .config file.
|
||||
|
@ -65,9 +65,13 @@ ARCH_SRC = $(ARCH_DIR)\src
|
||||
ARCH_INC = $(ARCH_DIR)\include
|
||||
|
||||
ifeq ($(CONFIG_ARCH_BOARD_CUSTOM),y)
|
||||
BOARD_DIR = $(CONFIG_ARCH_BOARD_CUSTOM_DIR)
|
||||
ifeq ($(CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH),y)
|
||||
BOARD_DIR = $(TOPDIR)$(DELIM)$(CONFIG_ARCH_BOARD_CUSTOM_DIR)
|
||||
else
|
||||
BOARD_DIR = $(TOPDIR)${DELIM}configs$(DELIM)$(CONFIG_ARCH_BOARD)
|
||||
BOARD_DIR = $(CONFIG_ARCH_BOARD_CUSTOM_DIR)
|
||||
endif
|
||||
else
|
||||
BOARD_DIR = $(TOPDIR)$(DELIM)configs$(DELIM)$(CONFIG_ARCH_BOARD)
|
||||
endif
|
||||
|
||||
# CONFIG_APPS_DIR can be over-ridden from the command line or in the .config file.
|
||||
|
Loading…
Reference in New Issue
Block a user