Re: external board build failure (stm32 specific)

2021-05-20 Thread Sebastien Lorquet
Thats because the stm32l4 boards dont have a common folder. Same for stm32f7 The problem is specific to stm32 (f4 and others). But it's significant because it's one of the most used stm32 product families. I guess the common folder should be avoided. Sebastien Le 20/05/2021 à 15:46, Daniel

Re: external board build failure

2021-05-20 Thread Abdelatif Guettouche
> Also I woud advise against this common dir in boards, since it prevents users from creating custom boards from built-in ones. We can still create a custom board from an in-tree board that has the common dir. We just have to either include the common dir or remove it and adapt the makefiles as we

Re: external board build failure

2021-05-20 Thread Daniel Pereira Carvalho
I've just tested the external board build following these simple steps. 1 - Clone nuttx and nuttx-apps on base dir 2 - Created a new dir called board $ mkir board $ cd board 3 - Copied nucleo-l432kc board directory $ cp -r ../nuttx/boards/arm/stm32l4/nucleo-l432kc/ ./ 4 - Configure nu

Re: external board build failure

2021-05-20 Thread Alan Carvalho de Assis
I agree, it should a good idea if it could be turned into a Documentation page! BR, Alan On 5/20/21, Sebastien Lorquet wrote: > :o > > it worked. > > How am I supposed to guess this? > > Your email should be copied verbatim in the official documentation > somewhere under "how to create and buil

Re: external board build failure

2021-05-20 Thread Sebastien Lorquet
:o it worked. How am I supposed to guess this? Your email should be copied verbatim in the official documentation somewhere under "how to create and build a custom board" Also I woud advise against this common dir in boards, since it prevents users from creating custom boards from built-in

Re: external board build failure

2021-05-20 Thread Abdelatif Guettouche
> Rename Make.defs to Makefile To be clear, here I'm referring to ../boards/nucleo-f446re/src/Make.defs On Thu, May 20, 2021 at 2:27 PM Abdelatif Guettouche wrote: > > I just copied the nucleo-fe446re board without the common directory. > > Here are the steps I took: > Add the correct custom boa

Re: external board build failure

2021-05-20 Thread Abdelatif Guettouche
I just copied the nucleo-fe446re board without the common directory. Here are the steps I took: Add the correct custom board CONFIGs to nsh/defconfig (and remove some of the old ones) Rename Make.defs to Makefile Add include $(TOPDIR)/boards/Board.mk to the end of the file. ./tools/configure.sh .

Re: external board build failure

2021-05-20 Thread Abdelatif Guettouche
(It looks like we dropped the list somehow, I'm bringing it back...) > There is no way this common file is going into my custom board. If you don't want it; just remove it. But you'll have to adapt your Make.defs file. Mainly adding "include $(TOPDIR)/boards/Board.mk" at the end. Other small th

Re: external board build failure

2021-05-20 Thread Abdelatif Guettouche
There is this issue that has more details, as well: https://github.com/apache/incubator-nuttx/issues/2206 On Thu, May 20, 2021 at 12:44 PM Abdelatif Guettouche wrote: > > Hi, > > Is it possible to share the defconfig? I just tried with an old one > (based on STM32) and I have a clean build. > Th

Re: external board build failure

2021-05-20 Thread Abdelatif Guettouche
Hi, Is it possible to share the defconfig? I just tried with an old one (based on STM32) and I have a clean build. The relevant configs that need to be correctly set are: CONFIG_ARCH_BOARD_CUSTOM=y CONFIG_ARCH_BOARD_CUSTOM_DIR="../boards/stm32/board-dir" CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y CON

external board build failure

2021-05-20 Thread Sebastien Lorquet
Hello, I have to update the nuttx in our project from pre-apache to last version. We would like to use the external board feature. As a test I copied the nucleo-f446re folder in boards/arm to somewhere else (sibling to apps and nuttx), renamed it, and pointed to it in the configuration. make