Ouss4 commented on issue #2206:
URL: 
https://github.com/apache/incubator-nuttx/issues/2206#issuecomment-721277220


   > You mean common right? Yes this was missing, thank you a lot for help :D
   
   Sorry, yes I meant `common`.  Is everything building now?
   
   > Note that I would prefer configure.sh to deal with this.
   
   I'm also not sure I understand this.  `configure.sh` already deals with 
them, provided that everything is set correctly.
   From the user's perspective, in-tree and out-of-tree boards are, for the 
most part, handled the same way.
   I think what we agree on is that some config parts aren't obvious and lack 
documentation. 
   
   > On the other hand, there's of course some editing to be done for 
converting an in-tree board to an out-of-tree board: many macro names will 
change (depending on the board name), header files (and includes to them), 
Kconfig and Makefile depending on ARCH_BOARD_CUSTOM instead of the 
board-dependant symbol. 
   
   Note, that most of that has been refactored in tools/Config.mk.
   
   > All of this could indeed by made by a script, but I would generalize this 
to a "new-board.sh" script (since copying an in-tree board to create another 
in-tree board is also relatively common).
   
   FYI, there is this: 
https://github.com/apache/incubator-nuttx/blob/master/tools/initialconfig.c, 
however, I failed to make it work last time I tried.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to