Please check the common/Make.defs file in-tree of the board you based your
custom board on. There is a new variable introduced.
(Sorry, writing from my phone. I'll try to send a direct link later.)

On Thu, Mar 3, 2022, 07:10 Petro Karashchenko <petro.karashche...@gmail.com>
wrote:

> Hi,
>
> Do you want to use board common code? There where some code tree
> restructurings to eliminate code duplication. There is an option to
> enable/disable common code in menu config. Please try to use it and
> feedback if it helps you.
>
> Best regards,
> Petro
>
>
> On Thu, Mar 3, 2022, 12:06 AM Daniel Pereira Carvalho <daniel...@gmail.com
> >
> wrote:
>
> > Hi guys,
> >
> > I am having problems building custom boards outside of the Nuttx folder
> > tree. Usually I use the following folder structure.
> >
> > |-> apps
> > |-> my-folder
> >    |-> my-apps
> >       |-> custom-app
> >    |-> my-boards
> >       |-> custom-board
> > |-> nuttx
> >
> > To build my apps I just need to create a symbolic link called external
> > inside apps folder. To create a new custom board I start copying a
> similar
> > board (e.g nucleo-g431kb) to my-boards folder and make the following
> > changes
> >
> > *remove from defconfig:*
> > CONFIG_ARCH_BOARD="nucleo-g431kb"
> > CONFIG_ARCH_BOARD_NUCLEO_G431KB=y
> >
> > *add on defconfig:*
> > CONFIG_ARCH_BOARD_CUSTOM=y
> > CONFIG_ARCH_BOARD_CUSTOM_DIR="../my-folder/my-boards/custom-board"
> > CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y
> > CONFIG_ARCH_BOARD_CUSTOM_NAME="custom-board"
> >
> > *Rename src/Make.defs to src/Makefile and append the line *
> > include $(TOPDIR)/boards/Board.mk at the end of file.
> >
> > This works well for me up to Nuttx version 10.2.0 but now when I try to
> > make I got the errors
> >
> > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools'
> > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools'
> > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/tools'
> > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/tools'
> > Create version.h
> > make[1]: Entering directory '/home/daniel/nuttx-workspace/nuttx/boards'
> > make[2]: Entering directory
> > '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common'
> > Makefile:23: board/Make.defs: No such file or directory
> > make[2]: *** No rule to make target 'board/Make.defs'.  Stop.
> > make[2]: Leaving directory
> > '/home/daniel/nuttx-workspace/nuttx/boards/arm/stm32/common'
> > make[1]: *** [Makefile:79: context] Error 2
> > make[1]: Leaving directory '/home/daniel/nuttx-workspace/nuttx/boards'
> > make: *** [tools/Unix.mk:425: boards/.context] Error 2
> >
> > Does anyone know how to fix this problem?
> >
> > Thanks
> >
> > Daniel Pereira de Carvalho
> >
>

Reply via email to