Thank you. It works now.

Added.
CONFIG_ARCH_BOARD_CUSTOM=y
CONFIG_ARCH_BOARD_CUSTOM_NAME="xxx"
CONFIG_ARCH_BOARD_CUSTOM_DIR="../board"
CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y

Are these documented somewhere? I couldn't find anything searching
throughout the documentation. Maybe my search terms were wrong.
Also, this feature seems to be missing from ./configure.sh -h

Regards


On Fri, Jul 17, 2020 at 5:07 PM Gregory Nutt <spudan...@gmail.com> wrote:

> On 7/17/2020 7:52 AM, Pavel Ionut wrote:
> > Hello,
> >
> > As i read in some posts and scrolled through configure.sh, it should be
> > possible to have a board definition outside the nuttx/boards/** location.
> >
> > My current setup is:
> > apps - (submodule)
> > nuttx - (submodule)
> > board - Makefile
> >            - Make.defs
> >            - defconfig
> >
> > However, if I do
> > cd nuttx
> > ./tools/configure.sh ../board
> > I get some errors, as it seems it still tries to get some files from
> > boards/<arch>/**
> >
> > LN: include/arch/board to
> > /<some_path>/nuttx/boards/<inexistent_board>/include
> > No directory at /<some_path>/nuttx/boards/<inexistent_board>/include
> > tools/Makefile.unix:267: recipe for target 'include/arch/board' failed
> >
> > Regards
> >
> You did not define CONFIG_ARCH_BOARD_CUSTOM or CONFIG_ARCH_BOARD_CUSTOM_DIR
>
> This causes the wrong definition of BOARD_DIR in tools/Config.mk
>
> 140 ifeq ($(CONFIG_ARCH_BOARD_CUSTOM),y)<-- This was not defined
> 141 ifeq ($(CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH),y)
> 142   BOARD_DIR ?=
>
> $(TOPDIR)$(DELIM)$(CONFIG_ARCH_BOARD_CUSTOM_DIR)$(DELIM)$(CONFIG_ARCH_BOARD)
> 143 else
> 144   BOARD_DIR ?=
> $(CONFIG_ARCH_BOARD_CUSTOM_DIR)$(DELIM)$(CONFIG_ARCH_BOARD)
> 145 endif
> 146 else
> 147   BOARD_DIR ?=
> $(TOPDIR)$(DELIM)boards$(DELIM)$(CONFIG_ARCH)$(DELIM)$(CONFIG_ARCH_CHIP)$(DELIM)$(CONFIG_ARCH_BOARD)<--
>
> This was used
> 148 endif
>
> which, in turn causes the link to fail tools/Makefile.unix:
>
> 266 include/arch/board: include/arch
> 267         @echo "LN: include/arch/board to $(BOARD_DIR)/include"
> 268         $(Q) $(DIRLINK) $(BOARD_DIR)/include include/arch/board <--
> This fails
>
>

Reply via email to